Skip to content

fix(ci): exempt desktop e2e flow definitions from the changelog gate - #11040

Merged
kodjima33 merged 1 commit into
mainfrom
watchdog/changelog-gate-e2e-flow-exemption
Aug 3, 2026
Merged

kodjima33 merged 1 commit into
mainfrom
watchdog/changelog-gate-e2e-flow-exemption

Conversation

@kodjima33

@kodjima33 kodjima33 commented Aug 3, 2026 •

Copy link
Copy Markdown
Collaborator

Bug

Repo Checks and Release Eligibility went red on main at d962001 (#11039). #11039 changed exactly one file — desktop/macos/e2e/flows/notifications-settings.yaml, adding a covers: entry — and carried the no-changelog-needed label, so its PR run was green.

Root cause

desktop-changelog-entry also runs on the post-merge push lane, where there is no PR and the no-changelog-needed label cannot be honored. The script already documents this (see the comment above EXEMPT_DESKTOP_PATH_PREFIXES, added after #10374/#10387): never-user-facing desktop paths must be exempt by path, or a legitimate change to them reddens main with no author able to satisfy the gate. desktop/macos/e2e/ was missing from that set.

This is FC-push-gate-internal-path-scope, and the fix is its documented canonical prevention — extend the exemption set plus its test, in the same two artifacts the class names.

Fix

  • check-desktop-changelog.py: add desktop/macos/e2e/ to EXEMPT_DESKTOP_PATH_PREFIXES. E2E flow definitions and their docs are harness test artifacts, exactly like the already-exempt desktop/macos/tests/ and Desktop/Tests/; nothing under desktop/macos/e2e/ ships in the app.
  • test_desktop_changelog.py: add the regression case that would have caught this.

Product source (Desktop/Sources/*.swift, non-generated) still requires a fragment — that assertion is already in the same test and still passes.

What I tested

Against the exact invocation that is failing on main right now (base/head = the #11039 merge push):

$ python3 .github/scripts/check-desktop-changelog.py --base 275a4886291a --head d962001223d9
# before: exit 1 — "FAIL: desktop changes require an unreleased changelog fragment."
#                  Changed desktop files: desktop/macos/e2e/flows/notifications-settings.yaml
# after:  exit 0 — "No desktop changes require a changelog entry."

$ python3 .github/scripts/test_desktop_changelog.py
Ran 4 tests in 0.003s — OK

make preflight green on this branch.

Failure-Class: FC-push-gate-internal-path-scope

🤖 automated by hourly watchdog — tested and merged

Review in cubic

`desktop-changelog-entry` also runs on the post-merge push lane, where the
`no-changelog-needed` PR label cannot be honored, so any never-user-facing
desktop path must be exempt by path. `desktop/macos/e2e/` was not, so #11039 —
which only added a `covers:` entry to an e2e flow YAML — turned Repo Checks and
Release Eligibility red on main after merge.

E2E flow definitions and their docs are harness test artifacts, exactly like the
already-exempt `desktop/macos/tests/` and `Desktop/Tests/`; nothing under
`desktop/macos/e2e/` ships in the app.

Verified against the real failing invocation (base/head = the #11039 merge push):
  python3 .github/scripts/check-desktop-changelog.py \
    --base 275a488 --head d962001
  before: exit 1, "desktop changes require an unreleased changelog fragment"
  after:  exit 0, "No desktop changes require a changelog entry."
python3 .github/scripts/test_desktop_changelog.py -> Ran 4 tests, OK
(regression case added to the exemption test)

Failure-Class: FC-push-gate-internal-path-scope

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@kodjima33
kodjima33 merged commit 57ca482 into main Aug 3, 2026
31 checks passed
@kodjima33
kodjima33 deleted the watchdog/changelog-gate-e2e-flow-exemption branch August 3, 2026 02:24
Git-on-my-level pushed a commit that referenced this pull request Aug 3, 2026
…11040)

`desktop-changelog-entry` also runs on the post-merge push lane, where the
`no-changelog-needed` PR label cannot be honored, so any never-user-facing
desktop path must be exempt by path. `desktop/macos/e2e/` was not, so #11039 —
which only added a `covers:` entry to an e2e flow YAML — turned Repo Checks and
Release Eligibility red on main after merge.

E2E flow definitions and their docs are harness test artifacts, exactly like the
already-exempt `desktop/macos/tests/` and `Desktop/Tests/`; nothing under
`desktop/macos/e2e/` ships in the app.

Verified against the real failing invocation (base/head = the #11039 merge push):
  python3 .github/scripts/check-desktop-changelog.py \
    --base 275a488 --head d962001
  before: exit 1, "desktop changes require an unreleased changelog fragment"
  after:  exit 0, "No desktop changes require a changelog entry."
python3 .github/scripts/test_desktop_changelog.py -> Ran 4 tests, OK
(regression case added to the exemption test)

Failure-Class: FC-push-gate-internal-path-scope
@undivisible undivisible added the AI label Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants