Repository navigation
fix(ci): land leftover desktop-beta review fixes from #11588 - #11605
Merged
Merged
Conversation
…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]>
Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
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, socheck_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 betweenscheduleandworkflow_dispatchmeans a manual doctor run can be blocked by an hourly run, delaying on-demand diagnostics during incidents—split concurrency keys by event (or revisitcancel-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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 monitoractions: 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-clonetostatus: open(droppingdormant_since). #11588 mixed that dormant transition into the instance-fix that rewrote its prevention artifact; the class is not retired.Product invariants affected
How it was verified
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_breakerscovers query-string tokens, GitHub PATs, and backtick fence breakers in the 200-line tail.test_desktop_promotion_guard_rejects_reintroduced_qualification_triggerreplaces 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-clonedormant→open,dormant_sinceremoved.canonical_prevention_artifact.scripts/failure-classplus.github/failure-classes/FC-qualification-swift-cache-promisor-clone.json.status: dormanttogether 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 othercheck-release-process-guardstests.Made with Cursor