Skip to content

fix(ci): land leftover desktop-beta review fixes from #11588 - #11605

Merged
Git-on-my-level merged 3 commits into
mainfrom
fix/ci-beta-review-followup
Aug 15, 2026
Merged

Git-on-my-level merged 3 commits into
mainfrom
fix/ci-beta-review-followup

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Aug 15, 2026 •

Copy link
Copy Markdown
Member

What changed and why

#11588 squash-merged before the remaining cubic review fixes could land. This follow-up applies those fixes on current main: redact Codemagic recovery log tails, keep the qualification-reintroduction mutation test, grant the freshness monitor actions: read / checks: read, share one doctor concurrency group, and fall back when the freshness summary file is missing.

It also restores FC-qualification-swift-cache-promisor-clone to status: open (dropping dormant_since). #11588 mixed that dormant transition into the instance-fix that rewrote its prevention artifact; the class is not retired.

Product invariants affected

  • INV-AUTH-1 — recovery log redaction only; session/401 policy unchanged.
  • INV-BETA-1 — doctor permissions/concurrency and the promotion-guard mutation test; Beta identity unchanged.

How it was verified

python -m pytest -q \
  .github/scripts/test_desktop_codemagic_failure_recovery.py \
  .github/scripts/test_check_release_process_guards.py::test_desktop_promotion_guard_rejects_reintroduced_qualification_trigger

10 passed, including test_log_tail_redacts_query_tokens_github_pats_and_fence_breakers.

Tests

  • test_log_tail_redacts_query_tokens_github_pats_and_fence_breakers covers query-string tokens, GitHub PATs, and backtick fence breakers in the 200-line tail.
  • test_desktop_promotion_guard_rejects_reintroduced_qualification_trigger replaces the mutation test deleted with the qualification lane.

Failure class (fixes)

Failure-Class: none

Failure-class transition narrative

Reopen only: FC-qualification-swift-cache-promisor-clone dormant → open, dormant_since removed.

  • Violated contract: a dormant transition must be a registry-only lifecycle change, not mixed into the instance-fix that rewrote canonical_prevention_artifact.
  • Canonical guard: scripts/failure-class plus .github/failure-classes/FC-qualification-swift-cache-promisor-clone.json.
  • Evidence: ci: collapse desktop beta to signed-smoke plus hourly freshness #11588 landed status: dormant together with prevention-artifact and scope_hints edits. This PR undoes only the lifecycle mix; the instance-fix rewrite stays.

New guards (only when adding a check or ratchet)

The promotion-guard mutation test restores coverage #11588 deleted with scripts/run-release-process-guards.sh. It is not a new shared primitive: it belongs next to the other check-release-process-guards tests.

Made with Cursor

Review in cubic

Git-on-my-level and others added 2 commits August 15, 2026 00:42
…ested

Codemagic log tails could persist query tokens and GitHub PATs in durable
issues, the freshness monitor lacked Actions/checks read, and the
qualification-trigger mutation test was dropped with the old runner.

Co-authored-by: Cursor <[email protected]>

@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.

2 issues found across 5 files

Confidence score: 4/5

  • In .github/scripts/test_check_release_process_guards.py, the mutation that appends # workflow_run: as a comment appears to codify a false positive, so check_desktop_promotion_independent_of_qua... could pass while real dependency-check logic regresses; this weakens the guard’s reliability—update the test mutation/assertion to exercise an actual dependency signal instead of a commented token.
  • In .github/workflows/desktop_release_doctor.yml, sharing one concurrency group between schedule and workflow_dispatch means a manual doctor run can be blocked by an hourly run, delaying on-demand diagnostics during incidents—split concurrency keys by event (or revisit cancel-in-progress) to keep manual runs responsive.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name=".github/scripts/test_check_release_process_guards.py">

<violation number="1" location=".github/scripts/test_check_release_process_guards.py:967">
P2: The first mutation appends `# workflow_run:` as a plain YAML comment and asserts the guard still fails with "still depends on qualification". This locks in a false positive: `check_desktop_promotion_independent_of_qualification` (check-release-process-guards.py:914-916) does a raw substring scan, so a harmless comment or documentation mention of `workflow_run:`/`qualification_run_id` would block the Beta promotion/recovery CI even though a comment carries no trigger authority. The second mutation (`qualification_run_id: 1`) already proves the guard catches a real reintroduction; the comment case only cements the noisy substring match instead of making the guard YAML-aware.</violation>
</file>

<file name=".github/workflows/desktop_release_doctor.yml">

<violation number="1" location=".github/workflows/desktop_release_doctor.yml:15">
P3: Merging the concurrency groups for the hourly `schedule` (cron `23 * * * *`) and `workflow_dispatch` events now serializes manual doctor runs behind a scheduled run that is in progress. With `cancel-in-progress: false`, a queued (pending) run does not prevent a newer run of the same group from superseding it, so a `workflow_dispatch` triggered while a cron run is active will wait until the cron finishes, and could be superseded if a subsequent cron lands while it is still pending. Previously the two events had separate groups (`desktop-release-doctor-${{ github.event_name }}`) so a manual dispatch ran immediately and independently. For a diagnostic monitor the practical impact is a short queue delay, but if immediate on-demand runs are expected, keep the event name in the group instead of collapsing it.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Generic query redaction leaked `#code=` values and blanked harmless
build/arch/mode fields. Scope assignment redaction to credential-like
names, treat `#` as a delimiter, and drop the comment-only qualification
mutation that locked in a substring false positive.

Co-authored-by: Cursor <[email protected]>
@Git-on-my-level
Git-on-my-level merged commit 63c523a into main Aug 15, 2026
26 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/ci-beta-review-followup branch August 15, 2026 05:03
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