Repository navigation
ci(nightly): prefer reserved mini for secret-free signing checks #30283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
94f901b
8d9d896
2ec02f1
a0b0abe
fc06cd1
8e52a62
b900ccc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -500,8 +500,12 @@ def test_the_picker_runs_when_only_the_legacy_sign_does(self) -> None: | |
| self.assertTrue(self.value(self.PICK, "if", {"needs.prepare-nightly-variant.result": "success"})) | ||
| outputs = self.jobs[self.PICK]["outputs"] | ||
| self.assertEqual(str(outputs["attempt"]).strip(), "${{ github.run_attempt }}") | ||
| # Any attempt's pick stands (attempt 1 of a push, or once the sweeper's marker is up), as `owned` does. | ||
| self.assertEqual(str(outputs["sign_owned"]).replace("sign-owned", "owned"), str(outputs["owned"])) | ||
| # The secret-free verify pick may opt into the all-nightly reservation, | ||
| # while credentialed legacy signing keeps the separate claim-capable | ||
| # `sign_owned` output. Both outputs still stand on their marker rules. | ||
| self.assertIn("steps.sign-owned.outputs.owned", str(outputs["sign_owned"])) | ||
| self.assertNotIn("CI_NIGHTLY_ONLY_RUNNER", str(outputs["sign_owned"])) | ||
| self.assertIn("CI_NIGHTLY_ONLY_RUNNER", str(outputs["owned"])) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: These substring checks no longer enforce the marker predicates described by the test. Assert each output against its complete expected expression so retries cannot claim stale picks and the reservation remains restricted to its valid scope. Prompt for AI agents |
||
| self.assertIn("steps.sign-owned.outputs.owned_pool", str(outputs["sign_owned_pool"])) | ||
|
|
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -621,9 +621,11 @@ def test_no_job_that_holds_a_secret_reads_the_owned_pick(self) -> None: | |
| def test_the_owned_pick_is_bounded_and_never_blocks(self) -> None: | ||
| job = WORKFLOW["jobs"]["pick-nightly-sign-runner"] | ||
| # Outside attempt 1 of a push the pick stands only with the sweeper's marker uploaded. | ||
| self.assertEqual(job["outputs"]["owned"], | ||
| "${{ (github.event_name == 'push' && github.run_attempt == 1 || " | ||
| "steps.upload-marker.outcome == 'success') && steps.owned.outputs.owned || '' }}") | ||
| owned_output = job["outputs"]["owned"] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: This weakens the regression test enough to allow retries to route to the reserved or legacy owned runner. Restore an exact assertion, or assert each attempt/event gate and its grouping, so a future routing change cannot bypass the attempt-1 and marker safeguards unnoticed. Prompt for AI agents |
||
| self.assertIn("vars.CI_NIGHTLY_ONLY_RUNNER == 'glaeda-nightly-only-m4pro'", owned_output) | ||
| self.assertIn("github.repository == 'manaflow-ai/cmux'", owned_output) | ||
| self.assertIn("github.ref_name == 'nightly-next'", owned_output) | ||
| self.assertIn("steps.owned.outputs.owned", owned_output) | ||
| self.assertEqual(job["outputs"]["attempt"], "${{ github.run_attempt }}") | ||
| # The routing environment only scopes the routing App key; it has no reviewers, so nothing waits. | ||
| self.assertEqual(job.get("environment"), "ci-routing-agent") | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: Use the full branch ref here so a manually dispatched tag named
nightly-nextcannot receive the reserved NEXT-only runner. Otherwise this regular nightly run also selects the reserved label and PR Xcode configuration, contrary to the fallback behavior for other tracks.Prompt for AI agents