Skip to content

Commit d5c8c18

Browse files
authored
remove the 'version' section from the health checks (#305)
- remove the 'version' section from the health checks --- - [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR. <details> <summary>Contribution guidelines:</summary><br> - See our [contributor guide](https://github.com/dart-lang/.github/blob/main/CONTRIBUTING.md) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Contributions to our repos should follow the [Dart style guide](https://dart.dev/guides/language/effective-dart) and use `dart format`. - Most changes should add an entry to the changelog and may need to [rev the pubspec package version](https://github.com/dart-lang/sdk/blob/main/docs/External-Package-Maintenance.md#making-a-change). - Changes to packages require [corresponding tests](https://github.com/dart-lang/.github/blob/main/CONTRIBUTING.md#Testing). Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback. </details>
1 parent 2d58550 commit d5c8c18

File tree

11 files changed

+134
-188
lines changed

11 files changed

+134
-188
lines changed

.github/workflows/dart.yml

Lines changed: 46 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/health.yaml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ name: Health
2121
# uses: dart-lang/ecosystem/.github/workflows/health.yaml@main
2222
# with:
2323
# sdk: beta
24-
# checks: "version,changelog,license,coverage,breaking,do-not-submit,leaking"
25-
# fail_on: "version,changelog,do-not-submit"
24+
# checks: "changelog,license,coverage,breaking,do-not-submit,leaking"
25+
# fail_on: "changelog,do-not-submit"
2626
# warn_on: "license,coverage,breaking,leaking"
2727
# coverage_web: false
2828
# upload_coverage: false
@@ -52,17 +52,17 @@ on:
5252
# Restrict the checks to any subset of version, changelog, and license if
5353
# needed.
5454
checks:
55-
description: What to check for in the PR health check - any subset of "version,changelog,license,coverage,breaking,do-not-submit,leaking"
56-
default: "version,changelog,license,coverage,breaking,do-not-submit,leaking"
55+
description: What to check for in the PR health check - any subset of "changelog,license,coverage,breaking,do-not-submit,leaking"
56+
default: "changelog,license,coverage,breaking,do-not-submit,leaking"
5757
type: string
5858
required: false
5959
fail_on:
60-
description: Which checks should lead to failure - any subset of "version,changelog,license,coverage,breaking,do-not-submit,leaking"
61-
default: "version,changelog,do-not-submit"
60+
description: Which checks should lead to failure - any subset of "changelog,license,coverage,breaking,do-not-submit,leaking"
61+
default: "changelog,do-not-submit"
6262
type: string
6363
required: false
6464
warn_on:
65-
description: Which checks should not fail, but only warn - any subset of "version,changelog,license,coverage,breaking,do-not-submit,leaking"
65+
description: Which checks should not fail, but only warn - any subset of "changelog,license,coverage,breaking,do-not-submit,leaking"
6666
default: "license,coverage,breaking,leaking"
6767
type: string
6868
required: false
@@ -113,19 +113,6 @@ on:
113113
required: false
114114

115115
jobs:
116-
version:
117-
if: ${{ contains(inputs.checks, 'version') }}
118-
uses: ./.github/workflows/health_base.yaml
119-
with:
120-
sdk: ${{ inputs.sdk }}
121-
check: version
122-
fail_on: ${{ inputs.fail_on }}
123-
warn_on: ${{ inputs.warn_on }}
124-
local_debug: ${{ inputs.local_debug }}
125-
use-flutter: ${{ inputs.use-flutter }}
126-
ignore_packages: ${{ inputs.ignore_packages }}
127-
checkout_submodules: ${{ inputs.checkout_submodules }}
128-
129116
changelog:
130117
if: ${{ contains(inputs.checks, 'changelog') }}
131118
uses: ./.github/workflows/health_base.yaml
@@ -210,7 +197,7 @@ jobs:
210197
checkout_submodules: ${{ inputs.checkout_submodules }}
211198

212199
comment:
213-
needs: [version, changelog, license, coverage, breaking, do-not-submit, leaking]
200+
needs: [changelog, license, coverage, breaking, do-not-submit, leaking]
214201
if: always()
215202
# These permissions are required for us to create comments on PRs.
216203
permissions:

.github/workflows/health_base.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ on:
1616
required: false
1717
type: string
1818
check:
19-
description: What to check for in the PR health check - any of "version,changelog,license,coverage,breaking,do-not-submit,leaking"
19+
description: What to check for in the PR health check - any of "changelog,license,coverage,breaking,do-not-submit,leaking"
2020
type: string
2121
required: true
2222
fail_on:
23-
description: Which checks should lead to failure - any subset of "version,changelog,license,coverage,breaking,do-not-submit,leaking"
24-
default: "version,changelog,do-not-submit"
23+
description: Which checks should lead to failure - any subset of "changelog,license,coverage,breaking,do-not-submit,leaking"
24+
default: "changelog,do-not-submit"
2525
type: string
2626
required: false
2727
warn_on:
28-
description: Which checks should not fail, but only warn - any subset of "version,changelog,license,coverage,breaking,do-not-submit,leaking"
28+
description: Which checks should not fail, but only warn - any subset of "changelog,license,coverage,breaking,do-not-submit,leaking"
2929
default: "license,coverage,breaking,leaking"
3030
type: string
3131
required: false

.github/workflows/health_internal.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
local_debug: true
1313
coverage_web: false
1414
upload_coverage: false
15-
checks: version,changelog,license,coverage,breaking,do-not-submit,leaking
16-
fail_on: version,changelog,do-not-submit
15+
checks: changelog,license,coverage,breaking,do-not-submit,leaking
16+
fail_on: changelog,do-not-submit
1717
warn_on: license,coverage,breaking,leaking
1818
ignore_license: 'pkgs/firehose/test_data'
1919
ignore_coverage: 'pkgs/firehose/bin,pkgs/firehose/test_data'

pkgs/firehose/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.10.0
2+
3+
- Remove the `version` pubspec checks (these largely duplicate the feedback
4+
provided by publishing automation).
5+
16
## 0.9.3
27

38
- Do not check Dart SDK in PR Health breaking check.

0 commit comments

Comments
 (0)