Repository navigation
ci: cut PR runner-minutes 5x-7x via xdist, caches, and path-gated suites - #2587
Conversation
Independent adversarial review: BLOCKFrom: Claude One blocker: the at-rest path gate is far narrower than the code that encryption at rest touches. A second P1 means the nightly run would most likely go red. Both fixes are YAML-only, and the exact replacement blocks are below, so this can be one push. The gate logic, CodeQL, xdist and the caches are fine or only need small changes. Line numbers refer to P1: the
|
…R-only at-rest)
|
Applied all of Claude's P1, P2, and nit fixes at
Verification: YAML parse OK, |
Independent adversarial review: APPROVEFrom: Claude This is a delta review of 5ad4901..ed5e38c. Both P1s are fixed.
Notes, none blocking:
"Evaluate protected-path evidence" shows as failed after 2s, and |
Independent adversarial review: APPROVEFrom: Grok The path gates can't skip a suite that a code change needs. Main, schedule and dispatch keep full coverage, and a skipped job can't satisfy Path gates against real changed-file listsI extracted the
Findings
Tests run (at this head)
Generality gatePass. The change is CI-only, with no engine or app-specific code. The classifier rule is path-class based (prose versus code) and applies the same way to Flow, Capture and Types. CI at review time
Decisions still required
|
Independent adversarial review: APPROVEFrom: Claude This is a re-approval after a merge from main. The only change since my APPROVE at ed5e38c is merge 4ed5149, which brings in #2590 (e04438d, the Desktop 0.32.1 bump). It touches none of this PR's files: This approval holds if CI passes. |
…requires Python 3.11 or newer (#2594) * feat: Python 3.10 reached end of life in October 2026; OpenAdapt now requires Python 3.11 or newer Replayed cleanly onto main (preserving #2587 fast CI workflow structure) with freshly regenerated uv.lock files and llms-full.txt. Co-authored-by: abrichr <richard.abrich@mldsai.com> * fix(py311): update platform-manifest, eligibility lock, cli_surface, and py311 syntax targets * style(tray): apply py311 ruff UP017/FURB162 datetime.UTC fixes * chore: restore generated llms-full.txt to match main (refresh-generated updates post-merge)
Summary
Cuts PR runner-minutes and concurrent runner pressure on GitHub Free (20 org-wide concurrent jobs) without weakening post-merge or security coverage:
flow-default-at-rest(~53.5 runner-min/PR saved on non-encryption PRs, frees 4 concurrent runners):flow_at_restscope output in.github/workflows/packages.ymlmatching encryption/storage/at-rest/recorder/ledger/receipt/private_file/sealed_set/key_hierarchy/rollback/checkpoint/durable paths andpackages.yml.flow-default-at-restis skipped (while shard 1 offlow-unitstill runs the 21 core rollback/checkpoint/key/durable tests underOPENADAPT_TEST_DEFAULT_AT_REST=1).push: main,schedule, andworkflow_dispatch,flow-default-at-restruns in full (2 shards, matchingflow-unit) wheneverflowchanges.packages-gate(selects["flow-default-at-rest"] = "flow_at_rest") so skipping when selected still fails closed, while skipping when unselected passes cleanly.flow-onprem-offline(~4.3 min/PR) &flow-agent-frameworks(~2.7 min/PR) + caches:flow_onpremandflow_agent_frameworksscope outputs so these specialized jobs run on PRs touching their paths and ALWAYS run onpush: main/schedule/workflow_dispatch.uvcache onflow-onprem-offlineand added pinnedactions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9(~/.cache/ms-playwright) toflow-agent-frameworks.pytest-xdist--dist loadscopeacrossflow-unit,flow-default-at-rest, andflow-agent-frameworks:--dist loadfileto--dist loadscope(keeping-n logicalto use all 4 vCPUs) so multi-class test files distribute across workers instead of stranding large files on a single worker while module-scoped functions stay grouped.CodeQL(.github/workflows/codeql.yml) off every PR push (frees 3 concurrent runners per PR push):pull_request:trigger fromcodeql.yml, retainingpush: [main],merge_group, weeklyschedule, and addingworkflow_dispatch:.tests/test_ci_efficiency_gating.py):codeql.ymltriggers, 40-char SHA pinning across both workflows,--dist loadscope+ caches, andpackages-gateenforcement across PR / merge_group / push scenarios.Estimated Runner-Minute Savings
packages/flowPRs: ~60+ runner-min saved immediately (~53.5mflow-default-at-rest+ ~4.3mflow-onprem-offline+ ~2.7mflow-agent-frameworks+ 3CodeQLrunners freed +loadscopetail reduction onflow-unit), dropping concurrent runner burst per PR from 21+ to ~9–12 runners.Verification
packages.yml,codeql.yml): OKpython3 scripts/check_source_boundary.py: OKtest_ci_efficiency_gating.py,test_ci_required_check.py,test_flow_claims_ci.py,test_flow_shards.py,test_packages_concurrency.py,test_ci_locked_installs.py,test_file_size_ratchet.py,packages/flow/tests/test_ci_workflow_contract.py): 156 passed in 13.35spytest -n logical --dist loadscopeontests/test_rollback.py+tests/test_hosted.py: 295 passed, 1 skipped in 49.33sruff check tests/test_ci_efficiency_gating.py: All checks passedgitleaks protect --staged --no-banner: no leaks found