Repository navigation
ci: deduplicate PR flow unit suites and scope protected-safety concurrency - #2596
Conversation
Independent adversarial review: REQUEST CHANGESFrom: Grok Live head checked with Blocking
Non-blocking
Required checksThe branch protection contexts are Protected-safety-review concurrency: the group is still keyed per PR. Tests (at this head, on the box)
CI at review time
GeneralityThe changes are CI-only, with no app-specific code. |
…r boundary check first, restore desktop-replay safety-core
|
@grok Addressed your blocking item and both non-blocking improvements at
|
Independent adversarial review: REQUEST CHANGESFrom: Grok This is a re-review of my REQUEST CHANGES at 56259d8. I checked the live head with Blocking
Non-blocking
Required checks and gate
Tests run at this head (on the box)
Generality gateCI-only, with no app-specific code. Gate item 2 (fix the class, not the instance) is not met yet. The proof covers the directories where importers were already known, not every path the deny-list excludes. CI at this head
|
…roof to all packages/{flow,capture}/**/*.py
|
@grok Addressed your re-review blocking item + non-blocking #4:
|
|
From: Gemini |
Independent adversarial review: APPROVEFrom: Grok I checked the live head with The previous blocking item is fixed.
Tests at this exact head (tree extracted with CI at this head:
Generality gate: this is path-based CI selection, with no app- or customer-specific logic. The rule depends only on file extension and folder. Limits: I didn't rerun the full Flow suite locally; I relied on the exact-head CI shards above. I didn't merge, push or rerun anything. |
Phase 2 CI Efficiency Overhaul building on #2587 (estimated -50% to -65% PR runner-minutes on typical Flow PRs while preserving full post-merge coverage and all required status checks):
Summary
.github/workflows/packages.yml):flow-unitalready runs all 4 shards ofpackages/flow/tests/(producingflow-unit-junit-*forvalidate_claims.py) plus the 21 core encrypted-at-rest rollback/checkpoint/key/durable tests on shard 1.scope'sflow_at_restPR selector to paths that can affect encryption-at-rest, storage, durability, sealing, test harness, lockfiles,packages/types/, or.github/workflows/packages.yml, so unrelated Flow PRs (e.g. Chrome extension, CLI, compiler, UI read-back, local-state probes) skip the duplicate 4-shardflow-default-at-restrun (~60 runner-min saved per PR).flow-default-at-restonpushtomain(2 shards viaflow_unit_shards) and updatedpackages-gate(not_in_queue,not_in_nightly) so every merged Flow commit still runs the full encrypted-at-rest suite post-merge, while required checks (ci,packages-gate) never hang or drop..github/workflows/desktop-replay.ymland.github/workflows/link-check.yml:packages/flow/openadapt_flow/**glob indesktop-replay.ymlwith the specific desktop/backend/runtime/compiler/governance/storage modules exercised by the Windows/FreeRDP/GTK replay jobs.!**/CHANGELOG.md,!.github/**/*.md,!legacy/**/*.md) tolink-check.ymlso PRs touching only ignored Markdown files don't spin up a runner.Protected safety reviewconcurrency thrashing (.github/workflows/protected-safety-review.yml):concurrency.groupexplicitly per PR/issue/merge_group (protected-safety-review-${{ github.event.pull_request.number || github.event.issue.number || github.event.merge_group.head_sha || github.ref }}) withcancel-in-progress: falseso rapidissue_comment+pull_request_targetevents on the same PR serialize cleanly instead of cancelling each other.Verification
yaml.safe_load.pytest tests/test_ci_efficiency_gating.py tests/test_nightly.py tests/test_pinned_apt_action.py tests/test_protected_safety_review.py -k 'ci_efficiency or nightly or pinned_apt or workflow_uses_trusted_main'(59 passed).ruff check,ruff format,python3 scripts/build_capabilities.py --check-pr origin/main, andgitleaks protect --staged --redactall passed.