Skip to content

[infra] Migrate to ecosystem health publish check and setup-dart publish workflow - #3774

Merged
mosuem merged 1 commit into
mainfrom
migrate-publish-workflow
Nov 30, 2026
Merged

mosuem merged 1 commit into
mainfrom
migrate-publish-workflow

Conversation

@mosuem

@mosuem mosuem commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Note

This PR was generated by an AI coding agent (Jetski) on behalf of @mosuem.

Migrates publishing validation and tag-triggered publishing to the split workflow architecture from dart-lang/ecosystem#454 (replacing the deprecated dart-lang/ecosystem/.github/workflows/publish.yaml):

  • .github/workflows/health.yaml: Add publish to checks and fail_on (preserving the previous publish.yaml behavior where publish validation failed PRs rather than only warning), carry over ignore_publish from the previous publish.yaml, and include pkgs/jni_flutter in flutter_packages.
  • .github/workflows/post_summaries.yaml: Remove Publish from workflow_run.workflows since PR publish summaries now come from Health.
  • .github/workflows/publish.yaml: Remove the pull_request trigger and delegate tag-triggered publishing (keeping the existing tags: patterns unchanged) to dart-lang/setup-dart/.github/workflows/publish.yml@40657d0d0732d6fd3809f5841380e7519e355b50 with working-directory: pkgs/{package} and use-flutter: ${{ startsWith(github.ref_name, 'jni_flutter-') }} (via dart-lang/setup-dart#207).

@github-actions github-actions Bot added the type-infra A repository infrastructure change or enhancement label Oct 31, 2026
@mosuem mosuem changed the title Migrate to ecosystem health publish check and setup-dart publish workflow [infra] Migrate to ecosystem health publish check and setup-dart publish workflow Oct 31, 2026
@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

PR Health

Publish ✔️
  • 3 already published.
  • 7 WIP (no publish necessary).

Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

This check can be disabled by tagging the PR with skip-publish-check.

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

This check can be disabled by tagging the PR with skip-changelog-check (for example, for non-user-visible changes when the package version is already at -wip).

Breaking changes ⚠️
Package Change Current Version New Version Needed Version Looking good?
hooks_runner None 2.0.0 2.0.1-wip 2.0.1-wip ✔️
jni_flutter Non-Breaking 1.1.0 1.1.0 1.1.1
Got "1.1.0" expected >= "1.1.1" (non-breaking changes --> patch)
⚠️
jni_util None 1.0.0 1.0.0 1.0.0 ✔️
data_assets None 0.20.0 0.20.1-wip 0.20.1-wip ✔️
ffi None 2.2.0 2.2.1-wip 2.2.1-wip ✔️
hooks Non-Breaking 2.2.0 2.2.1-wip 2.2.1-wip ✔️
code_assets None 2.2.0 2.2.0 2.2.0 ✔️
jni Non-Breaking 1.2.1 1.2.2-wip 1.2.2-wip ✔️
objective_c Non-Breaking 9.6.4 9.7.0-wip 9.7.0-wip ✔️
native_toolchain_c Non-Breaking 0.19.6 0.20.0-wip 0.20.0-wip ✔️
record_use Non-Breaking 1.1.1 1.1.2-wip 1.1.2-wip ✔️
web_assets None 0.0.1 0.0.2-wip 0.0.2-wip ✔️

This check can be disabled by tagging the PR with skip-breaking-check.

API leaks ✔️

The following packages contain symbols visible in the public API, but not exported by the library. Export these symbols or remove them from your publicly visible API.

Package Leaked API symbol Leaking sources

This check can be disabled by tagging the PR with skip-leaking-check.

@mosuem
mosuem requested a review from dcharkes November 20, 2026 11:20
Comment thread .github/workflows/publish.yaml Resolved
@mosuem
mosuem requested a review from dcharkes November 30, 2026 11:16

@dcharkes dcharkes left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR seems to do a bunch of different things. It's not clear to me whether they must be in the same PR or not?

  • it rolls the ecosystem version, can be a separate PR that just rolls a dep? rubberstamp lgtm
  • it changes the checks. Why? Does our team want that? Is an upstream bug fixed which caused us to disable a check? requires motivation
  • fail_on and warn_on are new? What do they do? Did everything used to fail it before? Or did ecosystem made an opinionated decision before what is a warning and an error? Did any behavior change?
  • flutter packages and ignore publish are new features that now enable us to use autopublishing again on this repo? (Don't we have a tracking bug of why we disabled autopublishing? Shouldn't that bug be linked.)
  • changing the tag can be done in a separate PR? I don't think our team uses dotted package versions. So this might not be needed at all?

@dcharkes

Copy link
Copy Markdown
Collaborator

Also, please rebase.

@mosuem

mosuem commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

This PR seems to do a bunch of different things. It's not clear to me whether they must be in the same PR or not?

  • it rolls the ecosystem version, can be a separate PR that just rolls a dep? rubberstamp lgtm

already done by dependabot, so not applicable anymore.

  • it changes the checks. Why? Does our team want that? Is an upstream bug fixed which caused us to disable a check? requires motivation

We migrated away from the firehose publishing workflow, to the general setup-dart one, meaning we now run our publishing checks as part of the health workflow.

  • fail_on and warn_on are new? What do they do? Did everything used to fail it before? Or did ecosystem made an opinionated decision before what is a warning and an error? Did any behavior change?

No behavior change really. Just making defaults explicit and accounting for the new publish check.

  • flutter packages and ignore publish are new features that now enable us to use autopublishing again on this repo? (Don't we have a tracking bug of why we disabled autopublishing? Shouldn't that bug be linked.)

done in a follow up PR #3831 .

  • changing the tag can be done in a separate PR? I don't think our team uses dotted package versions. So this might not be needed at all?

reverted.

@codecov

codecov Bot commented Nov 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.19%. Comparing base (27c74d1) to head (01dd6d3).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3774   +/-   ##
=======================================
  Coverage   86.19%   86.19%           
=======================================
  Files         324      324           
  Lines       21135    21135           
=======================================
  Hits        18218    18218           
  Misses       2917     2917           
Flag Coverage Δ
ffigen 91.75% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
code_assets 95.31% <ø> (ø)
data_assets 91.56% <ø> (ø)
ffi 100.00% <ø> (ø)
ffigen 91.84% <ø> (ø)
hooks 86.40% <ø> (ø)
hooks_runner 90.89% <ø> (ø)
jni 67.68% <ø> (ø)
jni_flutter ∅ <ø> (∅)
jni_util 25.00% <ø> (ø)
jnigen 82.72% <ø> (ø)
json_syntax_generator 42.01% <ø> (ø)
native_test_helpers 85.71% <ø> (ø)
native_toolchain_c 96.71% <ø> (ø)
objective_c 81.43% <ø> (ø)
pub_formats ∅ <ø> (∅)
record_use 81.48% <ø> (ø)
snippet_tool 66.23% <ø> (ø)
swift2objc 92.95% <ø> (ø)
swiftgen 80.41% <ø> (ø)
test_case_selector 97.28% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mosuem
mosuem merged commit 54d2439 into main Nov 30, 2026
56 checks passed
@mosuem
mosuem deleted the migrate-publish-workflow branch November 30, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-infra A repository infrastructure change or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants