Skip to content

Exempt pending changelog entries from the packages test requirement - #5167

Merged
auto-submit[bot] merged 1 commit into
mainfrom
test-exempt-pending-changelogs
Nov 4, 2026
Merged

auto-submit[bot] merged 1 commit into
mainfrom
test-exempt-pending-changelogs

Conversation

@QuncCccccc

Copy link
Copy Markdown
Contributor

Batch release packages in flutter/packages add changelog entries as YAML files under <package>/pending_changelogs/ instead of editing CHANGELOG.md. Like all .md files, CHANGELOG.md is already exempt from the test requirement, but pending changelog entries weren't. So PRs that wouldn't otherwise need tests, such as README-only or comment-only changes, got the missing-tests label and needed a manual test exemption. For example, flutter/packages#13135 only changes a README and adds a pending changelog entry.

This skips files under pending_changelogs/ in the flutter/packages test check, the same way .ci/ files are already skipped.

Fixes flutter/flutter#191744

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read the Flutter Style Guide recently, and have followed its advice.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Batch release packages in flutter/packages add changelog entries as YAML
files under `<package>/pending_changelogs/` instead of editing
`CHANGELOG.md`. Like all `.md` files, `CHANGELOG.md` is already exempt
from the test requirement, but pending changelog entries weren't. So PRs
that wouldn't otherwise need tests, such as README-only or comment-only
changes, got the `missing-tests` label and needed a manual test exemption.
For example, flutter/packages#13135 only changes a README and adds a
pending changelog entry.

This skips files under `pending_changelogs/` in the flutter/packages test
check, the same way `.ci/` files are already skipped.

Fixes flutter/flutter#191744
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Oct 16, 2026
@QuncCccccc
QuncCccccc requested a review from chunhtai October 16, 2026 23:03

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request exempts pending changelog entries for batch release packages from requiring tests and adds a corresponding test to verify this behavior. Feedback suggests removing the leading slash from the 'pending_changelogs/' check to make it more robust against relative paths.

!filename.contains('.ci/') &&
// Pending changelog entries for batch release packages. These take
// the place of CHANGELOG.md updates, which are already exempt.
!filename.contains('/pending_changelogs/') &&

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Using filename.contains('/pending_changelogs/') requires a leading slash, which might not be present if the path is relative and starts directly with pending_changelogs/ (e.g., in certain test environments or if a package is at the root level). Removing the leading slash to use filename.contains('pending_changelogs/') is more robust and consistent with other path checks in this file (like filename.contains('.ci/')).

Suggested change
!filename.contains('/pending_changelogs/') &&
!filename.contains('pending_changelogs/') &&

@chunhtai chunhtai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@QuncCccccc QuncCccccc added the autosubmit Merge PR when tree becomes green via auto submit App. label Nov 4, 2026
@auto-submit
auto-submit Bot merged commit db47c05 into main Nov 4, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App. CICD Run CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Teach Cocoon test bot about pending changelogs

2 participants