You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: move the inline cheap checks (baseline audit, Semgrep ERROR, real-ChromaDB session, promtool) into composite actions so the pre-board lane can call them #21360
The pre-board fast lane (#21359, AC4 of #18499) runs the guard tests and the generated-types check. The other cheap checks named in AC4 are inline steps of larger jobs, so the lane cannot call them without copying their definition (a second definition that drifts):
Found while reviewing the pre-board guard lane (#21361). Two more gaps to close here:
Source-reading guard tests that live inside the product trees are not run by the lane (for example autobot-backend/a2a/capability_enforcement_guard_test.py and autobot-backend/services/rag_single_definition_19280_test.py). Move them to repo_tests, or run the lane over the product trees' guard-style tests, so a head that breaks one is found before boarding.
autobot-backend/conftest.py installs about fifty sys.modules stubs at import; in the suite they leak process-wide to repo_tests modules in the same worker (the leak guard baselines them, test-infra: sys.modules leak guard has no ratchet — a new leak lands green while error mode stays unreachable #13398). The lane does not collect autobot-backend, so a repo_tests module that passes only because of a leaked stub would be a false red there. None is known; sweep for one when the lane first runs.
Scope note from #21361: the pre-board lane runs the two real-ChromaDB modules itself (no backend conftest is loaded, nothing under its roots stubs the library), so they are not lane skips and a skip of either is red. Only promtool remains suite-only in the lane's allowlist; the ChromaDB row above no longer needs a lane-side change.
Minor items from the review of #21361 (head 4b4e604); none changes the lane's verdict, so they ride here instead of that PR:
.github/workflows/dispatch-preboard-guards.yml:70-71: the header lists skip_classes as a top-level result field; build_result (pipeline-scripts/preboard_guard_lane_report.py:217-231) only emits it as checks.guards.skip_classes (already listed at header line 65). Drop line 70 or rename it.
.github/workflows/dispatch-preboard-guards.yml:123: Redis service port literal 6379:6379. Same literal in ci.yml, marker-tests.yml, coverage.yml, test-durations.yml, company-os-workflow-e2e.yml; fix once for all workflows through a shared setting, not per file.
pipeline-scripts/preboard_guard_lane_report.py:99-107: read_shards accepts any decodable JSON; a shard-meta.json that is not an object or lacks shard/splits/rc raises KeyError/TypeError in shard_problems and no result.json is written. Fails closed (the job is red, upload errors) but loses the report; record it as a problem and continue. Only the lane's own meta command writes the file, so this needs a corrupted artifact.
repo_tests/preboard_guard_lane_21359_test.py:164: "${ROOTS[@]}" is asserted anywhere in the scripts; assert it in the pytest invocation via _invocation and add a contrast pair (repo rule for workflow detectors).
repo_tests/preboard_guard_lane_observed_skips_21359_test.py:104: no allowlist-to-observed check; a stale equivalent-to-suite entry whose marker still exists keeps tolerating a future skip. Reconcile the 9 equivalent-to-suite entries with no fixture line against a current full run first, then add the reverse check (exempt covered-by-suite-only).
Activity
github-actions commentedon Nov 12, 2026
needs-structurecleared: goal milestone, matching phase label and native parent (or sub-issues) are all present (#19522).mrveiss commentedon Nov 12, 2026
Found while reviewing the pre-board guard lane (#21361). Two more gaps to close here:
autobot-backend/a2a/capability_enforcement_guard_test.pyandautobot-backend/services/rag_single_definition_19280_test.py). Move them torepo_tests, or run the lane over the product trees' guard-style tests, so a head that breaks one is found before boarding.autobot-backend/conftest.pyinstalls about fiftysys.modulesstubs at import; in the suite they leak process-wide torepo_testsmodules in the same worker (the leak guard baselines them, test-infra: sys.modules leak guard has no ratchet — a new leak lands green while error mode stays unreachable #13398). The lane does not collectautobot-backend, so arepo_testsmodule that passes only because of a leaked stub would be a false red there. None is known; sweep for one when the lane first runs.mrveiss commentedon Nov 12, 2026
Scope note from #21361: the pre-board lane runs the two real-ChromaDB modules itself (no backend conftest is loaded, nothing under its roots stubs the library), so they are not lane skips and a skip of either is red. Only promtool remains suite-only in the lane's allowlist; the ChromaDB row above no longer needs a lane-side change.
mrveiss commentedon Nov 12, 2026
Minor items from the review of #21361 (head 4b4e604); none changes the lane's verdict, so they ride here instead of that PR:
.github/workflows/dispatch-preboard-guards.yml:70-71: the header listsskip_classesas a top-level result field;build_result(pipeline-scripts/preboard_guard_lane_report.py:217-231) only emits it aschecks.guards.skip_classes(already listed at header line 65). Drop line 70 or rename it..github/workflows/dispatch-preboard-guards.yml:123: Redis service port literal6379:6379. Same literal in ci.yml, marker-tests.yml, coverage.yml, test-durations.yml, company-os-workflow-e2e.yml; fix once for all workflows through a shared setting, not per file.pipeline-scripts/preboard_guard_lane_report.py:99-107:read_shardsaccepts any decodable JSON; a shard-meta.json that is not an object or lacksshard/splits/rcraises KeyError/TypeError inshard_problemsand no result.json is written. Fails closed (the job is red, upload errors) but loses the report; record it as a problem and continue. Only the lane's ownmetacommand writes the file, so this needs a corrupted artifact.repo_tests/preboard_guard_lane_21359_test.py:164:"${ROOTS[@]}"is asserted anywhere in the scripts; assert it in the pytest invocation via_invocationand add a contrast pair (repo rule for workflow detectors).repo_tests/preboard_guard_lane_observed_skips_21359_test.py:104: no allowlist-to-observed check; a staleequivalent-to-suiteentry whose marker still exists keeps tolerating a future skip. Reconcile the 9 equivalent-to-suite entries with no fixture line against a current full run first, then add the reverse check (exemptcovered-by-suite-only).mrveiss commentedon Nov 12, 2026
Non-blocking follow-ups from the review of #21361 at c181760:
pinascancelledrather thanredin the result job (currently fails closed as red).