Skip to content

ci(pub-health): keep the health comment job green under skip-changelog-check - #4372

Open
gspencergoog wants to merge 1 commit into
a2ui-project:mainfrom
gspencergoog:ci/pub-health-comment-skip-label
Open

gspencergoog wants to merge 1 commit into
a2ui-project:mainfrom
gspencergoog:ci/pub-health-comment-skip-label

Conversation

@gspencergoog

Copy link
Copy Markdown
Collaborator

Summary

Keeps the health / comment job of the Pub Health workflow from failing on pull requests labeled skip-changelog-check.

Changes

  • .github/workflows/pub_health.yml: adds a job that runs before the health workflow and uploads a one-line placeholder.txt artifact.

Why this is needed: the comment job of the reusable dart-lang/ecosystem health workflow downloads every artifact of the run into single-comments and then runs ls -R single-comments. With the label, the changelog job writes no comment file and uploads nothing, so the directory does not exist and ls exits 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 *.md files into the comment text never includes it.

Impact & Risks

  • This works around the upstream workflow instead of fixing it. The step is the same at the latest upstream commit, so bumping the pinned hash would not help.
  • The health workflow now needs the placeholder job. If that job fails, the changelog check is skipped instead of run.
  • Adds one check, Health artifact placeholder, to every pull request. It runs no code from the repository and has no permissions.
  • No change for pull requests without the label: the changelog job still uploads its comment file, and the comment job merges it as before.

Testing

On this pull request, which changes no package and so needs no changelog entry:

  1. Without the label, health / changelog and health / comment pass, as they did before.

  2. With skip-changelog-check applied, health / changelog and health / comment both pass. Before this change, health / comment failed with:

    $ ls -R single-comments
    ls: cannot access 'single-comments': No such file or directory
  3. A full rerun of the workflow run passes.

…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.
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

@gspencergoog gspencergoog added the skip-changelog-check Use for noop PRs to skip CHANGELOG updates. label Nov 23, 2026
@gspencergoog
gspencergoog marked this pull request as ready for review November 23, 2026 17:48

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog-check Use for noop PRs to skip CHANGELOG updates.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant