ci: reduce CI duration from 1h15m to 43m #20270
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #20270"
general
weight: 0.35
GWphua
Summary
Re-orchestrate the CI jobs and remove redundant build work to reduce the time
required to validate a change.
Current job dependencies
Before this change, the workflow was effectively:
The
docker-testsjob hadneeds: [unit-tests], so it waited for the completeunit-test reusable workflow, including distribution validation, before it could
start.
After this change:
The unit-test and Docker-test workflows run independently. The timeline job
remains reporting-only and waits for both workflows.
Key problems
validate-distjob and transferredthrough an artifact before Docker testing.
required
embedded-testsmodule and its dependencies.compilation.
Changes
.github/scripts/validate-distto.github/scripts/build-distand runit in the Docker job.
-T1Cfor the distribution build.BUILD_FROM_SOURCE=false.handoff.
embedded-testsand its dependencieswith
-pl embedded-tests -am.Measured outcome
Successful upstream master baseline
The baseline is commit
e9db64b6e97c974975321f51085936f9c27e13f9on theApache Druid
masterbranch. All three relevant workflows completedsuccessfully:
The complete upstream CI window was 1h15m55s. The Docker job started
40m18s after the Unit & Integration workflow began because of the existing
dependency.
Current branch benchmark
The current branch benchmark is the successful run for commit
3361d2d50b8024b8cbf72bd53b18b9f5c7b07ac6:The complete CI window was 43m15s. The Docker job started 3s after the
Unit & Integration workflow and completed successfully. All relevant checks
were green.
| Metric | Successful upstream
master| Current branch benchmark | Difference || --- | ---: | ---: | ---: |
| Complete CI window | 1h15m55s | 43m15s | 32m40s faster |
| Docker job runtime | 35m27s | 34m40s | 47s faster |
| Docker job start delay | 40m18s | 3s | 40m15s earlier |
| CodeQL workflow | 30m41s | 23m04s | 7m37s faster |
For the current Docker job, the key steps were:
| Docker step | Duration |
| --- | ---: |
| Build the Druid distribution | 12m34s |
| Build the Docker image | 2m25s |
| Run Docker tests | 19m01s |
The Docker job is slightly longer because it now performs the host distribution
build, but the job becomes available immediately instead of waiting for the
unit-test workflow.
CodeQL breakdown
| CodeQL job | Successful upstream
master| Current branch benchmark | Difference || --- | ---: | ---: | ---: |
| Analyze (JavaScript) | 6m46s | 1m39s | 5m07s faster |
| Analyze (Python) | 6m41s | 1m08s | 5m33s faster |
| Analyze (Java) | 30m37s | 23m00s | Not attributed to this change |
The JavaScript and Python improvements result from skipping Java setup and
Maven compilation for interpreted-language analysis. The Java timing
difference is not an intended optimization.
Same-workflow
-T1CcomparisonCompared with the preceding no-
-T1Cbenchmark:| Metric | No
-T1C| Current branch | Improvement || --- | ---: | ---: | ---: |
| Distribution build | 29m25s | 12m34s | 16m51s faster |
| Docker job | 50m15s | 34m40s | 15m35s faster |
| End-to-end workflow | 55m43s | 43m15s | 12m28s faster |
These are single-run measurements and can vary with GitHub Actions runner
scheduling.
CI duration visualization
!Master branch - Critical execution path
!PR #20270 - Critical execution path
Validation
git diff --checkbuild-distandrun_docker-tests