ci: retry the network steps, fix the Windows Bazel cache key, cache more (including the Windows oneAPI toolkit) and shorten the long jobs #4031
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.52) × (1 − Review Confidence (0.47)).
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.02 · 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.344
Real PR Conversation Timeline
1 comments
"Review active on #4031"
general
weight: 0.35
Alexandr-Solovev
Description
One PR for the CI changes that came out of a review of the last 30 days of runs (per-job timings, failure classification, coverage matrix). Bundled to spare the runners; it can be split once capacity is back.
Network retries
Failures in 30 days on GitHub: 22 truncated Miniforge downloads (
SHA256 checksum verification failed), 40 Bazel repository fetches with 504 from github.com in one wave, 19 apt DNS failures in one outage, 3 anaconda.org 503s. On Azure 4 of the 12 failed builds were thelibgompdownload from anaconda.org inopenmp_repo, 1 was an MSYS2 mirror 500 that wasted a full build..ci/env/retry.sh:retry <command>with exponential backoff, used byapt.sh(apt-get, the Intel key, llvm.sh),tbb.sh,openblas.sh,openrng.sh(apt-get, git clone).MINIFORGE_VERSION, Renovate-managed) with its SHA256 digests; download and digest check are retried together. conda getsremote_max_retries 10/remote_backoff_factor 2(also in the conda recipe job).common:ci --experimental_repository_downloader_retries=10; the conda-forge packages ingcc.bzllist the channel CDN (conda.anaconda.org) beforeanaconda.org.repos.archiveaccepts space-separated mirrors..ci/env/bazelisk.ps1(pinned digest, 5 attempts) instead of an unpinnedInvoke-WebRequest;pacmanretries three times on Azure (retryCountOnTaskFailure) and GitHub;pip --retries 10.bazel shutdownin the disk-cache trim step no longer fails the job when the server does not stop in time (exit 36, 14 main runs); it warns and the cache is saved without the GC pass.Windows Bazel disk cache (the biggest item)
WindowsBazelon Azure took 23 min with a cache hit and 160-238 min without, and ~60% of the runs in the sample missed althoughCache@2restored the same 7.6 GB archive each time. The exec logs show why: the Windows toolchain copied the configure-timePATH(118 entries, every tool on the hosted image) into every compile and link action, and--action_env=PATHdid the same for thecmd.execopy actions. The 2026-11-13 image update moved one JDK directory and 5149 of 5149 actions missed on every PR until main itself rebuilt 2.5 days later. The toolchain now passes only the directories under the oneAPI, Visual Studio, Windows SDK, LLVM and SystemRoot roots, and the shell actions get Bazel's fixed PATH (build:windows --incompatible_strict_action_env). The first run after merge rebuilds once; after that an image update no longer invalidates the cache.WindowsBazelReleaseAllgets its own key prefix so its MD+MDd cache cannot becomeWindowsBazel's fallback.Caches
LinuxBazel,LinuxBazelCoverage,LinuxBazelGNU_OpenBLAS_rv64,WindowsBazel,WindowsBazelReleaseAll) get a--repository_cachebehindCache@2, keyed on.bazelversion,MODULE.bazelanddev/bazel/deps/*.bzllike the GitHub jobs; the MKL/TBB wheels and the conda gcc were downloaded every run.Shorter jobs
| Job | Before | Change |
|---|---|---|
| Azure
LinuxMakeLLVM_OpenBLAS_rv64| 90 min, 67 of them running ~200 examples under qemu |test.sh --examples(new option,-DEXAMPLES_LIST) runs one dense batch example per algorithm family: 22 DAAL + 18 oneAPI || Azure
LinuxBazelCoverage| 37 min compiling all ofcore_staticuncached with--spawn_strategy=local| one module (kmeans:kernel) proves the coverage flags reach the compiler || GitHub
ci-conda-recipe| 3 x 40-56 min on everymakefile/dev/makePR | gxx only on pull requests, all three compilers on main || GitHub
LinuxMakeGNU_MKL_Conda| 52 min, 21 of themonedal_dpc| no DPC++ build; the conda recipe's dpcpp leg builds oneDAL with conda icpx || GitHub
LinuxMakeDPCPP| Miniforge + daal/oneapi MPI samples with--compiler gnuon an icx build | MPI samples stay in AzureLinuxMakeGNU_MKLand the conda job |AArch64 examples were not tested
The example steps ran with
|| trueand a "designed to always pass" warning. On the last main run the clang leg onah-ubuntu_24_04-c6g_2x-50had 342 of 364 examples die with SIGILL: the build targets SVE (build.sh --optimizations sve) and Graviton2 has no SVE. The leg moves to the c7g runner and|| trueis gone frombuild-and-test. The OpenRNG leg keeps its|| truefor now:df_reg_default_dense_extratrees_batchanddf_reg_hist_dense_extratrees_batchsegfault there (static and dynamic), which is a library bug to fix separately.oneAPI Base Toolkit cache (from #4025)
Every Windows job installed the toolkit from scratch: on a main Azure run 9.7 min in
WindowsMakeVC, 9.9 min inWindowsBazeland 6.4 min inWindowsSklearnex, and 15.9 min in the GitHub MSVC job (#4025).install_basekit.batreuses an install directory when its.basekit_sourcefile names the same installer URL and component list, andsetvars.batandcompiler\latest\binare present. Otherwise it removes the directory and installs as before, so a stale or broken cache costs only the restore.$(ONEAPI_DIR)($(Pipeline.Workspace)\oneapi) behindCache@2, keyed on the OS,WINDOWS_BASEKIT_URLandWINDOWS_DPCPP_COMPONENTS; the%TEMP%\oneapireferences andTBBROOTfollow. The three jobs share one entry.oneapiunder a key hashed from the same twoci.ymllines and saves it from main only (one entry of about 2 GB; the repository uses about 7.3 GB of its 10 GB).nightly-build.ymlis unchanged: scikit-learn-intelex depends on its steps and artifacts (.github/AGENTS.md).To check after merge: the first run saves the entry, the next one logs "Reusing the oneAPI Base Toolkit" and the cache size stays near the 2 GB of the
intel_oneapi_basekitartifact (a larger entry means thelatestlinks were stored as copies).Checked locally
bazel build --nobuild --config=ci //cpp/daal:core_static //dev/bazel/tests:allloads the changed.bazelrcand toolchain files;bash -non the scripts; the workflows and the pipeline parse; actionlint reports the same findings asmain; editorconfig-checker andcheck_comment_blocks.pypass. The Windows toolchain change can only be verified by the AzureWindowsBazelrun: the exec-log action digests must stay identical across two image versions.---
<details>
<summary>Checklist:</summary>
Completeness and readability
Testing
Performance
</details>
🤖 Generated with Claude Code