Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,22 @@ def test_hourly_review_repair_uses_explicit_supported_image(self) -> None:
self.assertIn("labels: [self-hosted, linux, x64]", workflow)

def test_codeql_pr_uses_explicit_supported_image(self) -> None:
"""Require detect-languages, analyze-head, and the coordinator to pin Ubuntu 24.04."""
"""Require trusted-main control routing and Ubuntu fallback for all three jobs."""
workflow = CODEQL_PR.read_text(encoding="utf-8")
self.assertNotIn("runs-on: ubuntu-latest", workflow)
self.assertEqual(workflow.count("runs-on: ubuntu-24.04"), 3)
selectors = [
line.strip() for line in workflow.splitlines()
if line.strip().startswith("runs-on:")
]
self.assertEqual(len(selectors), 3)
for selector in selectors:
self.assertIn(
"github.workflow_ref == 'ContextualWisdomLab/.github/.github/workflows/codeql-pr.yml@refs/heads/main'",
selector,
)
self.assertIn('"group":"CWL central control"', selector)
self.assertIn('"labels":["self-hosted","linux","x64"]', selector)
self.assertIn("|| '\"ubuntu-24.04\"'", selector)

def test_codeql_scan_dispatch_uses_explicit_supported_image(self) -> None:
"""Require validation, scan, and attempt wake jobs in the dedicated group."""
Expand Down
Loading