Skip to content

Surface integration cache failures and rebalance test shards - #11948

Merged
lpcox merged 2 commits into
mainfrom
copilot/fix-threat-detection-engine-error
Nov 22, 2026
Merged

lpcox merged 2 commits into
mainfrom
copilot/fix-threat-detection-engine-error

Conversation

@lpcox

@lpcox lpcox commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Integration runtime is dominated by serial image builds (~950 s median) and the Network shard (~1564 s median). Baseline build logs show zero cached steps across all three images.

  • Cache diagnostics

    • Warn on cache-export failures hidden by ignore-error=true.
    • Include export progress, capped at 100 lines per image attempt.
    • Retain existing scopes and mode=max; export-size evidence is insufficient to justify dropping intermediate-stage caches.
  • Timing visibility

    • Add slowest-first per-file durations and total test counts to all five shard summaries.
    • Handle missing or malformed Jest reports without masking test outcomes.
  • Conservative rebalance

    • Move host-tcp-services (178 s observed) to API Proxy.
    • Move topology-compose (27 s observed) to Container & Ops.
    • Preserve the 29-file union, unmatched files, check names, timeouts, retries, and serial workers.

Follow-up: Measure at least three successful post-merge main runs, including one after cache eviction. Runtime targets remain unverified: execution median ≤1800 s and build median ≤450 s.

@lpcox lpcox changed the title [WIP] Fix tooling error in threat detection engine Surface integration cache failures and rebalance test shards Nov 22, 2026
@lpcox
lpcox marked this pull request as ready for review November 22, 2026 17:23
Copilot AI adaptive review requested due to automatic review settings November 22, 2026 17:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are identified for the integration-suite diagnostics and shard redistribution changes.

No open issues 🎉

What changed in this PR

This PR improves visibility into integration-suite bottlenecks and conservatively redistributes tests across existing shards. Runtime improvements remain unverified pending post-merge measurements.

Changes:

  • Surface cache-export failures and include capped export progress while preserving cache scopes and mode=max.
  • Add slowest-first per-file timings and total test counts to all five shard summaries, handling missing or malformed reports.
  • Move two Network test files to lighter shards while preserving coverage, serial execution, and existing execution limits.
File Description
scripts/​ci/​test-integration-suite-workflow.test.ts Adds regression coverage for shard membership, timing summaries, and cache diagnostics.
.github/​workflows/​test-integration-suite.yml Adds cache warnings and timing summaries, and reassigns two test files.

Review effort: Balanced (adaptive)

@github-actions

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@lpcox Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@lpcox
lpcox merged commit b8fb947 into main Nov 22, 2026
36 of 39 checks passed
@lpcox
lpcox deleted the copilot/fix-threat-detection-engine-error branch November 22, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Workflow Runtime Optimization] 2026-11-22 - .github/workflows/test-integration-suite.yml

3 participants