CI reliability hardening: pin tooling, improve clang-tidy cache keys, and preserve failure diagnostics
I maintainer di solito rispondono entro 1 giorno
@Cuiyus ci sta già lavorando.
Dal 6/7/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Summary
While reviewing .github/workflows/01-ci-pipeline.yml and its reusable workflows, I found several CI reliability risks that can cause flaky or hard-to-diagnose failures even when the source change is valid.
This is a proposed hardening pass rather than a claim that every item is currently failing.
Findings
1. Unpinned Python build/test tools
03-macos-linux-build.yml pins some tools but leaves these floating:
pytest
pytest-xdist
scikit-build-core
setuptools_scm
A new upstream release can change behavior without a repository change.
Suggested fix: pin tested ranges or install from a lock/constraints file shared by all runners.
2. Brittle exact Ubuntu package version
clang_tidy.yml installs:
clang-tidy=1:18.0-59~exp2
This exact archive version can disappear or differ across runner-image refreshes.
Suggested fix: install clang-tidy-18, verify clang-tidy --version, or use an LLVM setup action with an explicitly supported major version.
3. Generated-header cache key is missing toolchain/config inputs
The cache key includes third-party CMake/proto hashes and submodule commits, but not all inputs that can affect generated artifacts, such as:
- compiler identity/version;
- CMake version;
- relevant root CMake configuration;
- workflow/schema version.
A cache hit can therefore restore incompatible generated state.
Suggested fix: add compiler/CMake fingerprints and a manual cache-schema version to the key, or cache only immutable downloaded dependencies rather than generated build output.
4. Changed-file handling is unsafe for unusual filenames
The clang-tidy workflow converts changed files through whitespace-separated shell strings and xargs. Paths containing spaces, quotes, or newlines can be split incorrectly.
Suggested fix: use NUL-delimited paths throughout (-z, xargs -0) or pass a JSON array from the changed-files action into Python and launch subprocesses directly.
5. Failure diagnostics are lost after the job ends
clang-tidy logs are printed in groups, but build/test workflows do not upload structured logs, compile_commands.json, CMake logs, or test reports on failure.
Suggested fix: add if: failure() artifact uploads for:
build/compile_commands.json;- CMake configure logs;
- clang-tidy logs;
- pytest JUnit XML;
- CTest/JUnit output;
- runner/toolchain version summary.
6. No explicit timeouts
Long CMake builds, package installs, tests, or hung subprocesses can consume the full default job limit.
Suggested fix: add job- or step-level timeout-minutes and terminate child processes cleanly.
7. Repeated apt-get update
Linux build jobs run apt-get update separately for Clang and AIO installation.
Suggested fix: consolidate Linux package installation into one step to reduce network flakiness and runtime.
8. Main-branch coverage is intentionally narrow but should be explicit
On pushes to main, most platform jobs are skipped and only Linux x64 runs. If this is a cost-control decision, it would help to pair it with a scheduled full matrix and document that policy in the workflow.
Proposed validation
After the hardening patch:
- run a PR that changes C++, Python, CMake, and docs separately;
- test a cache hit and cache miss;
- intentionally trigger clang-tidy, compile, and pytest failures;
- verify diagnostic artifacts are available;
- run the full matrix on
workflow_dispatchand schedule; - confirm main pushes still follow the intended cost policy.
I can help translate this into a patch if maintainers confirm the preferred pinning and full-matrix policy.
- Lingua principale
- C++
- Stelle
- 16.3k
- Fork
- 1k
- Merge medio
- 2g 10h
- PR unite (30g)
- 32
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di alibaba/zvec
-
[Feature]: IVF_TIEREDQ index type, with a learned variable-bit codec (25–44% less index memory than `IVF_RABITQ` at equal recall)Forse già presa @richyreachy l’ha presa 7 giorni fa. Apertafeature
alibaba/zvec#909 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Support an opt-in portable x86 FastPFOR build without SSE4.1Forse già presa @egolearner l’ha presa 20 giorni fa. Aperta
alibaba/zvec#875 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[Enhance]: Reduce vector index block fragmentation caused by frequent flushesForse già presa @feihongxu0824 l’ha presa 22 giorni fa. Apertaenhancement
alibaba/zvec#869 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[Performance]:High-selectivity range filter materializes a full bitmap — `bitset_set_list` ~49% CPU, dwarfing the ANN searchForse già presa @zhourrr l’ha presa 22 giorni fa. Apertaenhancement
alibaba/zvec#868 · 13 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[Performance] Warm-query latency on small collections with query() and query_internal_ids() in v0.8.0Forse di nuovo libera @egolearner l’ha presa 33 giorni fa e non c’è nessuna pull request aperta. Aperta
alibaba/zvec#841 · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di alibaba/zvec
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
deepseek-ai/DeepEP#839 ·
I maintainer di solito rispondono entro 6 giorni
-
multilabel_margin_loss returns an unwritten scalar for an empty CPU batch with reduction='sum'Apertabot-triaged module: correctness (silent) module: cpu module: empty tensor module: loss triage review
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
stephenberry/glaze#3126 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ultravideo/kvazaar#453 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
google-ai-edge/LiteRT-LM#4783 ·
I maintainer di solito rispondono entro 1 giorno