Skip to content

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

Open

Description

@mrveiss

Problem

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):

Check Where it is defined now Refactor that makes it reusable
Hardcoded-value baseline audit (detect-hardcoded-values.sh --audit-baseline) one step of the SSOT coverage workflow a composite action holding the step; the workflow and the lane both call it
Semgrep at ERROR severity steps of the security workflow, mixed with install and SARIF upload a composite action for install plus scan (SARIF upload stays in the workflow); the lane calls it without the upload
Real-ChromaDB session one step of the python-suite shard job (shard 1 only) a composite action; in the lane's shared session those tests skip and show in skipped_tests
promtool install and AUTOBOT_REQUIRE_PROMTOOL three steps of the python-suite shard job a composite action; in the lane those tests skip today

Acceptance criteria

  • Each check above lives in one composite action called by its current workflow and by the lane.
  • The lane result lists each as a check with its own status, and skipped_tests no longer contains the ChromaDB and promtool tests.
  • The lane's own guard test asserts each check is called through its action.

Parent: #18499 (AC4); follows #21359.

Activity

  1. added
    needs-structureMissing goal milestone, matching phase label or native parent (#19522)
    on Nov 12, 2026
  2. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor

    needs-structure cleared: goal milestone, matching phase label and native parent (or sub-issues) are all present (#19522).

  3. added
    area: ci-gatesWave 0 · cluster P — CI gates & merge integrity
    phase:M4.5Delete dead copies and facades
    enhancementNew feature or request
    on Nov 12, 2026
  4. removed
    needs-structureMissing goal milestone, matching phase label or native parent (#19522)
    on Nov 12, 2026
  5. mrveiss commented on Nov 12, 2026

    @mrveiss
    OwnerAuthor

    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.
  6. mrveiss commented on Nov 12, 2026

    @mrveiss
    OwnerAuthor

    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.

  7. mrveiss commented on Nov 12, 2026

    @mrveiss
    OwnerAuthor

    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).
  8. mrveiss commented on Nov 12, 2026

    @mrveiss
    OwnerAuthor

    Non-blocking follow-ups from the review of #21361 at c181760:

    • Shorten workflow header line 14 in dispatch-preboard-guards.yml (over-long, cosmetic).
    • Consider surfacing a cancelled pin as cancelled rather than red in the result job (currently fails closed as red).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions