Repository navigation
ci(pub-health): keep the health comment job green under skip-changelog-check - #4372
Open
gspencergoog wants to merge 1 commit into
Open
gspencergoog wants to merge 1 commit into
gspencergoog wants to merge 1 commit into
Conversation
…g-check The comment job of the dart-lang health workflow downloads every artifact of the run and then lists the download directory. On a pull request labeled skip-changelog-check the changelog job writes no comment file and uploads nothing, so the directory is never created and the comment job fails, although the label is the documented way to skip the check. A job that runs before the health workflow now uploads a small non-Markdown placeholder artifact. The directory therefore always exists, and the placeholder is never merged into the comment text.
Contributor
|
Warning Gemini encountered an error creating the review. You can try again by commenting |
gspencergoog
marked this pull request as ready for review
November 23, 2026 17:48
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Keeps the
health / commentjob of the Pub Health workflow from failing on pull requests labeledskip-changelog-check.Changes
.github/workflows/pub_health.yml: adds a job that runs before the health workflow and uploads a one-lineplaceholder.txtartifact.Why this is needed: the comment job of the reusable
dart-lang/ecosystemhealth workflow downloads every artifact of the run intosingle-commentsand then runsls -R single-comments. With the label, the changelog job writes no comment file and uploads nothing, so the directory does not exist andlsexits 2. The check then shows red on a pull request that did what the label is for. #4093 and #4371 both merged in that state.With the placeholder, the directory always exists. The file is not Markdown, so the step that merges
*.mdfiles into the comment text never includes it.Impact & Risks
needsthe placeholder job. If that job fails, the changelog check is skipped instead of run.Health artifact placeholder, to every pull request. It runs no code from the repository and has no permissions.Testing
On this pull request, which changes no package and so needs no changelog entry:
Without the label,
health / changelogandhealth / commentpass, as they did before.With
skip-changelog-checkapplied,health / changelogandhealth / commentboth pass. Before this change,health / commentfailed with:A full rerun of the workflow run passes.