Skip to content

ci(desktop): exempt desktop/macos/tests from the changelog gate (unblock main CI) - #10387

Merged
kodjima33 merged 1 commit into
mainfrom
kodjima33/changelog-exempt-desktop-tests
Jul 23, 2026
Merged

kodjima33 merged 1 commit into
mainfrom
kodjima33/changelog-exempt-desktop-tests

Conversation

@kodjima33

@kodjima33 kodjima33 commented Jul 23, 2026 •

Copy link
Copy Markdown
Collaborator

#10374's timeout bump touched a test under desktop/macos/tests/; the no-changelog-needed label only satisfied the PR run, so the post-merge push run of desktop-changelog-entry failed on the merge commit and reddened main's Desktop Swift CI, blocking auto-release from cutting a tag. Test files are never user-facing, so exempt the desktop/macos/tests/ prefix by path (durable across PR and push).

Verified: check-desktop-changelog.py --base 4d6539e1b0~1 --head 4d6539e1b0 → no changelog needed; a Desktop/Sources/*.swift change still requires one.

🤖 Generated with Claude Code

Review in cubic

#10374's timeout bump touched desktop/macos/tests/test-qualify-desktop-beta-contract.sh.
The no-changelog-needed label satisfied the PR run, but the post-merge push run
of desktop-changelog-entry re-runs with no label and demanded a fragment — so it
failed on the merge commit (run 29981338556), reddening main's Desktop Swift CI
and blocking auto-release from cutting a tag (it fails closed without that CI green).

Test files are never user-facing app changes, so exempt the desktop/macos/tests/
prefix by path (durable across PR and push), same as Backend-Rust/. Verified: the
exact failing merge diff (4d6539e) now reports no changelog needed; a
Desktop/Sources/*.swift change still requires one.
@kodjima33
kodjima33 merged commit bd78889 into main Jul 23, 2026
7 of 9 checks passed
@kodjima33
kodjima33 deleted the kodjima33/changelog-exempt-desktop-tests branch July 23, 2026 05:25
kodjima33 added a commit that referenced this pull request Jul 23, 2026
)

Regression coverage for #10387: asserts `desktop/macos/tests/` and
`qualification-swift-cache.sh` are changelog-exempt while product source
(Desktop/Sources, non-exempt scripts) still requires a changelog. Wired
via the existing `desktop-changelog-io-tests` manifest check. 🤖
Generated with [Claude Code](https://claude.com/claude-code)

<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/10388?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
Git-on-my-level pushed a commit to Git-on-my-level/omi that referenced this pull request Jul 23, 2026
…changelog exemptions

BasedHardware#10387 exempted the desktop/macos/tests/ prefix from the changelog gate but added
no regression test; qualification-swift-cache.sh's exemption was also uncovered.
Assert both are exempt (and the Backend-Rust prefix) while product source
(Desktop/Sources, a non-exempt scripts/ path) still requires a changelog, so the
exemptions cannot silently broaden. Wired via desktop-changelog-io-tests.
aryanorastar added a commit to aryanorastar/omi that referenced this pull request Jul 24, 2026
check-desktop-changelog.py exempts Backend-Rust/ and tests/ as
"never user-facing app notes", but not Desktop/Sources/Generated/.
Regenerating Sources/Generated/OmiApi.generated.swift after a backend
OpenAPI spec change therefore demands a changelog fragment, and — exactly
as the tests/ exemption comment warns (incident BasedHardware#10387) — the post-merge
push run of the gate would redden main, since the PR-only
no-changelog-needed label cannot be honored on the push lane.

Generated Swift is deterministically derived from the OpenAPI contract
and is the same directory the swift-format linter already skips. Add it
to EXEMPT_DESKTOP_PATH_PREFIXES, with a test asserting the generated file
is exempt while a hand-written Sources/*.swift still requires a changelog
(the exemption must not leak).

This is the second instance of the push-lane gate over-including internal
paths (first: BasedHardware#10387, tests/), so it registers
FC-push-gate-internal-path-scope.

Verify: python3 .github/scripts/test_desktop_changelog.py → 4 tests OK.

Failure-Class: new

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Git-on-my-level added a commit that referenced this pull request Jul 24, 2026
## What

`check-desktop-changelog.py` exempts `Backend-Rust/` and `tests/` from
the "desktop change requires a changelog fragment" rule as *never
user-facing app notes* — but it does **not** exempt
`desktop/macos/Desktop/Sources/Generated/`.

So regenerating `Sources/Generated/OmiApi.generated.swift` after a
backend OpenAPI spec change demands a changelog fragment. Worse, exactly
as the `tests/` exemption comment already documents (incident #10387):
the **post-merge push run** of this gate would redden `main`, because
the PR-only `no-changelog-needed` label can't be honored on the push
lane.

## Fix

Add `desktop/macos/Desktop/Sources/Generated/` to
`EXEMPT_DESKTOP_PATH_PREFIXES`. Generated Swift is deterministically
derived from the OpenAPI contract — the same directory the swift-format
linter already skips.

A test asserts the generated file is exempt while a hand-written
`Sources/AppDelegate.swift` still requires a changelog (the exemption
must not leak).

## Why now

The memories baseline toggle (#8728) changed the app-client OpenAPI
contract; regenerating `OmiApi.generated.swift` from it is blocked today
purely by this gate gap. This is the **second** instance of the
push-lane gate over-including internal paths (first: #10387, `tests/`),
so it registers `FC-push-gate-internal-path-scope`.

## Verification

```
python3 .github/scripts/test_desktop_changelog.py  →  Ran 4 tests  OK
# self-check: is_desktop_change_requiring_changelog(...)
#   Sources/Generated/OmiApi.generated.swift → False (exempt)
#   Sources/AppDelegate.swift                → True  (still gated)
scripts/failure-class validate ... → ok
```

Failure-Class: new


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/10481?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
undivisible pushed a commit to undivisible/omi that referenced this pull request Sep 29, 2026
…ock main CI) (BasedHardware#10387)

BasedHardware#10374's timeout bump touched a test under `desktop/macos/tests/`; the
`no-changelog-needed` label only satisfied the PR run, so the post-merge
push run of `desktop-changelog-entry` failed on the merge commit and
reddened main's Desktop Swift CI, blocking auto-release from cutting a
tag. Test files are never user-facing, so exempt the
`desktop/macos/tests/` prefix by path (durable across PR and push).

Verified: `check-desktop-changelog.py --base fabf75f~1 --head
fabf75f` → no changelog needed; a `Desktop/Sources/*.swift` change
still requires one.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
undivisible pushed a commit to undivisible/omi that referenced this pull request Sep 29, 2026
…changelog exemptions

BasedHardware#10387 exempted the desktop/macos/tests/ prefix from the changelog gate but added
no regression test; qualification-swift-cache.sh's exemption was also uncovered.
Assert both are exempt (and the Backend-Rust prefix) while product source
(Desktop/Sources, a non-exempt scripts/ path) still requires a changelog, so the
exemptions cannot silently broaden. Wired via desktop-changelog-io-tests.
undivisible pushed a commit to undivisible/omi that referenced this pull request Sep 29, 2026
…edHardware#10388)

Regression coverage for BasedHardware#10387: asserts `desktop/macos/tests/` and
`qualification-swift-cache.sh` are changelog-exempt while product source
(Desktop/Sources, non-exempt scripts) still requires a changelog. Wired
via the existing `desktop-changelog-io-tests` manifest check. 🤖
Generated with [Claude Code](https://claude.com/claude-code)

<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/10388?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
undivisible pushed a commit to undivisible/omi that referenced this pull request Sep 29, 2026
check-desktop-changelog.py exempts Backend-Rust/ and tests/ as
"never user-facing app notes", but not Desktop/Sources/Generated/.
Regenerating Sources/Generated/OmiApi.generated.swift after a backend
OpenAPI spec change therefore demands a changelog fragment, and — exactly
as the tests/ exemption comment warns (incident BasedHardware#10387) — the post-merge
push run of the gate would redden main, since the PR-only
no-changelog-needed label cannot be honored on the push lane.

Generated Swift is deterministically derived from the OpenAPI contract
and is the same directory the swift-format linter already skips. Add it
to EXEMPT_DESKTOP_PATH_PREFIXES, with a test asserting the generated file
is exempt while a hand-written Sources/*.swift still requires a changelog
(the exemption must not leak).

This is the second instance of the push-lane gate over-including internal
paths (first: BasedHardware#10387, tests/), so it registers
FC-push-gate-internal-path-scope.

Verify: python3 .github/scripts/test_desktop_changelog.py → 4 tests OK.

Failure-Class: new

Co-Authored-By: Claude Opus 4.8 <[email protected]>
undivisible pushed a commit to undivisible/omi that referenced this pull request Sep 29, 2026
…dHardware#10481)

## What

`check-desktop-changelog.py` exempts `Backend-Rust/` and `tests/` from
the "desktop change requires a changelog fragment" rule as *never
user-facing app notes* — but it does **not** exempt
`desktop/macos/Desktop/Sources/Generated/`.

So regenerating `Sources/Generated/OmiApi.generated.swift` after a
backend OpenAPI spec change demands a changelog fragment. Worse, exactly
as the `tests/` exemption comment already documents (incident BasedHardware#10387):
the **post-merge push run** of this gate would redden `main`, because
the PR-only `no-changelog-needed` label can't be honored on the push
lane.

## Fix

Add `desktop/macos/Desktop/Sources/Generated/` to
`EXEMPT_DESKTOP_PATH_PREFIXES`. Generated Swift is deterministically
derived from the OpenAPI contract — the same directory the swift-format
linter already skips.

A test asserts the generated file is exempt while a hand-written
`Sources/AppDelegate.swift` still requires a changelog (the exemption
must not leak).

## Why now

The memories baseline toggle (BasedHardware#8728) changed the app-client OpenAPI
contract; regenerating `OmiApi.generated.swift` from it is blocked today
purely by this gate gap. This is the **second** instance of the
push-lane gate over-including internal paths (first: BasedHardware#10387, `tests/`),
so it registers `FC-push-gate-internal-path-scope`.

## Verification

```
python3 .github/scripts/test_desktop_changelog.py  →  Ran 4 tests  OK
# self-check: is_desktop_change_requiring_changelog(...)
#   Sources/Generated/OmiApi.generated.swift → False (exempt)
#   Sources/AppDelegate.swift                → True  (still gated)
scripts/failure-class validate ... → ok
```

Failure-Class: new


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/10481?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant