Optimize integration test matrix: isolate slow Docker build test#11579
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Optimize integration test matrix by isolating slow Docker build test
Optimize integration test matrix: isolate slow Docker build test
Jan 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
TestDockerBuild_WithMaketest takes 38.4s and was blocking the critical path in the "CLI Completion & Other" catch-all group (67.7s total). Isolating it into a dedicated parallel group reduces the critical path to ~40s (41% improvement).Changes
.github/workflows/ci.ymlTestDockerBuildpatternTestDockerBuildImpact
Original prompt
This section details on the original issue you should resolve
<issue_title>[ci-coach] Optimize integration test matrix by isolating slow Docker build test</issue_title>
<issue_description>## CI Optimization: Reduce Integration Test Critical Path by 41%
Summary
This PR optimizes the integration test matrix by isolating the slow
TestDockerBuildtests into a dedicated matrix group, reducing the critical path from 67.7s to ~40s (41% improvement).Problem Analysis
The "CLI Completion & Other" catch-all group was the slowest integration test group at 67.7s, with a single test dominating execution time:
This bottleneck blocked the critical path, preventing faster test groups from completing earlier.
Solution
Created a new dedicated matrix group for Docker build tests:
New group: "CLI Docker Build"
TestDockerBuildUpdated "CLI Completion & Other" skip pattern
TestDockerBuildto exclusionsChanges
File:
.github/workflows/ci.ymlAdded new matrix entry (after line 107):
Updated "CLI Completion & Other" skip pattern (line 111):
Expected Impact
Before:
After:
Cost-Benefit Analysis:
Validation Results
✅ YAML syntax valid: Skip pattern correctly includes TestDockerBuild
✅ Matrix count: 32 groups (31 → 32, expected)
✅ CLI groups: 14 CLI test groups (13 → 14, expected)
✅ Pattern isolation: Docker tests will run in dedicated group
Note: Full validation with
make lint && make build && make test-unit && make recompilecannot be performed in this workflow environment (no Go/Make available), but YAML structure has been verified.Testing Plan
Metrics Baseline (for comparison)
Current state (from CI run analysis):
Expected post-merge:
Analysis Methodology
This optimization was identified through systematic analysis of CI run data:
TestDockerBuild_WithMaketaking 38.43s (57% of group time)View Detailed Test Timing Analysis
CLI Completion & Other Group (67.7s total)
Top 10 slowest tests:
Test grouping:
After this PR:
References:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.