[CI] Flaky test sweep (Sep–Oct 2026): root causes and fix PRs

Aperta
#2,783 101 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
5/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
cpp, java, python, rust
Ambito
ci-cd, testing

Direzione di ricerca

This is a coordination tracker for many flaky-test workstreams, not a single change, so there is no one file to start from. Read the workstream table and the protocol section, then pick an existing workstream that has no assignee and no draft PR. Its draft PR should reduce .github/workflows/pr.yaml to the failing job and repeat it. Done means a reproducer or root cause is posted here with CI run links.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

flaky

This issue coordinates a sweep of flaky CI test failures. Each workstream had a draft PR with a reduced CI matrix that repeated the failing job, so the flake could be reproduced in CI and the root cause found. Progress (reproducers, root causes, PR links, run links) is posted as comments here. The overall tracker is #2118.

Status (2026-11-03): root-causing is done for every workstream. A, B, C, G and H are fixed on main, and #2805 (J) merged. What remains is review and merge of the open fix PRs listed under Remaining; four of them (#2804, #2828, #2830, #2839) have merge conflicts with main.

Data source: pr.yaml runs from 2026-09-05 to 2026-10-10 whose failed attempts later passed on a rerun, plus nightly test.yaml failures from 2026-09-26 to 2026-10-10.

Workstreams

# Flaky failure Hits (5 weeks) Where Issue Repro PR Fix PR / status
A CLUSTER_TEST SpectralClusteringTestF.Result/N (eigensolver / label mismatch) 17 Almost always 12.2.2, arm64, ubuntu22.04, a100 #2094, #1594 #2788 (closed) Merged: #2841 (2026-10-16). #2794 closed
B Python test hangs on H100: cuvs test_cagra.py stalls, then cuvs_bench test_cli.py::test_run_command_creates_results hangs (CUVS_CAGRA_HNSWLIB_ANN_BENCH) 7 PR + nightly 6-hour timeouts h100 (oldest-deps rockylinux8, and nightly 12.9.2), once on a100 #2772, #2732 #2784 (closed) Merged: #2933 (2026-10-26), which replaced #2829 (closed)
C cuvs-lucene results missing from filtered/multi-segment searches (expected:<24> but was:<23>, Should return exactly 1 result expected:<1> but was:<0>, expected:<60> but was:<59>, Id: 1608 expected but not found) in TestMultiSegmentGPUFilterConcurrency, TestCuVSGaps.testVectorSearchWithFilterAndAlternatingDocuments, TestCuVSDeletedDocuments ~20 lucene tests, amd64 and arm64 #2736 #2785 (closed) Fixed on main by #2582 (2026-10-22). Merged: #2799 (2026-10-29, TestCuVSGaps topK cap), #2967 (2026-10-30, C++ regression test)
D cuvs-lucene IllegalStateException: Index not found for field:... (TestCuVSGaps.testVectorSearchWithAlternatingDocuments, TestCuVSVectorsFormat.testRandomWithUpdatesAndGraph, TestCuVSRandomizedVectorSearch) and TestLucene99AcceleratedHNSWVectorsFormat.testRandomExceptions UNEXPECTED: exception type ~10 lucene tests, amd64 and arm64 none #2786 (closed) Merged: #2795 (2026-10-13)
E KmeansFitBatchedTestF.Result/4 centroid mismatch 11 h100 (13.3.0) C++ tests, incl. 2026-10-06 nightly #2657 #2787 (closed) Open: #2801 (deterministic k-means fit), #2804 (balanced k-means / IVF-PQ grouping)
F NEIGHBORS_MG_TEST AnnMGTestF_float.AnnMG/5 aborts with a CUDA error in raft::copy (cudaMemcpyAsync) 1 12.2.2, amd64, rockylinux8, l4, earliest-driver, oldest-deps none #2796 (closed) Open: #2807. Also hit as AnnMG/14 (CAGRA ROUND_ROBIN, wrong neighbors, recall 0/48) on V100 in CI on 2026-11-03 (job)
G NEIGHBORS_ANN_IVF_RABITQ_TEST IvfRabitq/f32_f32_i64.build_host_input_search/1 (dim = 1) throws in the test body 1 (nightly) 13.3.0, arm64, ubuntu26.04, gh200 #2971 (closed) #2791 (closed) Merged: #2798 (2026-11-03)
H Python IVF-PQ/IVF-Flat result flakes: test_ivf_pq.py::test_build_precomputed (2/1000 neighbors swapped), test_ivf_pq[inner_product-float32-True] (recall 0.696 vs 0.7), test_filtered_ivf_flat[0.5] (recall) 3+ A100 (amd64 and arm64) #1445 (closed) #2790 (closed) Merged: #2797 (2026-11-03)
I STATS_TEST silhouetteScore.BatchedStreamPoolOrdering 2 (2026-07-11, 2026-08-03) arm64 a100 (12.2.2), gb300 (13.3.0 nightly) #2406 (closed) #2789 (closed) Already fixed on main by #2422; no PR needed
J cuvs-java JVM crashes and flakes: HnswRandomizedIT forked VM aborted (exit 134), CagraRandomized*.testResultsTopKWithRandomValues 1 + older java tests, amd64 #1048, #631, #1468 #2792 (closed) Merged: #2805 (2026-10-21, reject single-row CAGRA build). Open: #2830 (re-enable CagraRandomizedIT with a recall check), which waits on #2992 (unify prefilter handling, replacing Util.concatenate)
K IVF-RaBitQ search returns neighbors from the wrong list when a query is on a list centroid (e.g. a duplicated data row); found by G n/a (found in review) IVF-RaBitQ C++ none #2800 (closed) Open: #2802
L NEIGHBORS_TEST NNTest/NNTest_{fp32,fp16}_fused* skipped then failed on GB300 (no cuTile cubin for sm_103); found that cuTile had been silently disabled in all conda builds since #2739 (bin2c lookup) every GB300 nightly until 2026-10-08 13.3.0, arm64, ubuntu26.04, gb300 #2660 (closed), #2759 (closed) #2813 (closed) Merged: #2820 (2026-10-13; configure now fails on CUDA 13.1+ when bin2c or cuda.tile is missing). Skip fixed by #2760. #2821 closed
M Rust cargo test with default parallel test threads intermittently SIGSEGVs (e.g. ivf_flat); passes with --test-threads=1 0 in CI (0 SIGSEGVs in ~3,300 rust-build jobs since 2026-08-10) Rust tests (reporter: RTX 4000 8 GB, libcuvs 26.06) #2233 #2818 (closed) Not reproduced in 6,700 parallel iterations; no fix needed. Related bug found during the investigation: #2832 (open, cuvsRMMHostFree on a different thread)
N NEIGHBORS_ANN_IVF_FLAT_TEST AnnIVFFlatTestF_{int8,uint8}.AnnIVFFlat/2 (dim=2, cosine): filtered search returns recall 0 (or duplicated indices) 6 (2026-08-12 to 2026-09-19), 0 since mostly 12.2.2, amd64, rockylinux8, v100, earliest-driver; once h100 none #2815, bisect #2822/#2825/#2826 (closed) Fixed on main by #2249. Open: #2828 (defensive zero-norm coarse guard)
O cuvs-lucene TestCuVSRandomizedHNSWVectorSearch.testVectorSearch: Result returned was not in topK*3: 229 (CAGRA-built HNSW graph, searched on the CPU). Legitimate ANN miss, not a bug 1 (found by S); 3/1586 in the repro loop lucene tests, amd64 and arm64 none #2819 (closed) Merged: #2824 (2026-10-14, test-only)
P cuvs-lucene TestAcceleratedHNSWMultiLayerRoundTrip.testThreeLevelGraphCanBeReopenedAndSearched (BQ, dims=129): the entry-node vector must be returned for its own query. Test bug: the graph ordinal was used as the insertion id after a reordering forceMerge(1) 1 (found by S); 112/39,320 BQ iterations in the repro loop 13.3.0, amd64, rockylinux8, rtxpro6000 lucene tests none #2827 (closed) Merged: #2831 (2026-10-13, test-only)
Q NEIGHBORS_ANN_CAGRA_HALF_UINT32_TEST AnnCagraMultiPartitionTestF16_U32.Search/0 (num_partitions=1, single-cta, L2): recall 0.966 vs 0.97. The test was under-provisioned; not a library bug 1 (found by S); 0 in 60 days of nightly and PR reruns 13.3.0, arm64, ubuntu26.04, gb300 none #2838 (closed) Open: #2839 (test-only)
R C++ test jobs hitting the 6-hour limit: 86 of 89 were NEIGHBORS_DYNAMIC_BATCHING_TEST hanging after a NaN query; the other 3 were stalled artifact downloads 89 (since 2026-09-01) conda-cpp-tests, all configurations #2764 none Already fixed on main by #2729 (plus #2746 as a backstop); no PR needed
S Combined stress run (done 2026-10-12 02:00 UTC): 25 passes, 3025 test-job executions on the PR+nightly matrices with all fixes; 3 new flakes found (O, P, Q) n/a full matrix #2783 #2793 (closed) Done

Remaining

Open fix PRs, and the issues each should close when it merges:

  • A: #2841 merged; #2094 and #1594 closed
  • B: #2933 merged (replaced #2829); #2772 and #2732 closed
  • C: fixed on main by #2582; #2799 and #2967 merged; #2736 closed
  • E: #2801 and #2804, closes #2657. #2801 has changes requested: reconcile with the faster reductions in NVIDIA/raft#3176, or make determinism optional. #2804 has merge conflicts
  • F: #2807. Needs C++ review; AnnMG/14 also hit in CI on 2026-11-03 (job)
  • G: #2798 merged; #2971 closed
  • H: #2797 merged
  • J: #2805 merged; #2830 remaining (has merge conflicts; waits on #2992), closes #631, #1048 and #1468
  • K: #2802
  • M: #2832. #2233 (not reproduced) to be closed by a cuVS developer
  • N: #2828. Approved; needs a merge with main and a CI rerun
  • Q: #2839. Has merge conflicts

Other failures seen (not assigned)

  • NEIGHBORS_ANN_SCANN_TEST reconstruction error (6 hits, rtxpro6000): #2549, fixed by #2743 (merged 2026-10-14).
  • NNTest_*_fused on GB300 nightly: deterministic, not flaky. Fixed by #2760; #2660 closed.
  • AnnNNDescentTestUI8_U32 (50 hits in September): fixed by #2655 / #2708.
  • One-off hits (one each), now covered by workstreams F, G, H and J: NEIGHBORS_MG_TEST AnnMG/5 CUDA error on L4 oldest-deps (job); IvfRabitq build_host_input_search on GH200 (job); test_ivf_pq[inner_product-float32-True] recall 0.696 on A100 wheels (job); test_ivf_pq.py::test_build_precomputed on arm64 A100 (job); Java SurefireBooterForkException VM crash (job).
  • Older flaky issues with no hits in this window: #2406 (silhouetteScore, closed), #2137 (all-neighbors, closed), #1445 (test_filtered_ivf_flat, closed), #1048 / #631 (Java CagraRandomized*, covered by J).
  • Infrastructure, not test flakes: codecov upload retries, rapids-github-run-id failing to find a nightly run, conda ChecksumMismatchError, yum CUDA repo metadata downloads, sccache storage reads, and devcontainer builds.
Protocol and combined stress run (historical)
Protocol for agents
  • One draft PR per workstream, based on main. The first commit reduces .github/workflows/pr.yaml to the jobs and matrix entries that show the failure (use matrix_filter, and disable unrelated jobs), and repeats the failing job up to 4 times (or loops the test inside the job) so a flake is caught.
  • Trigger CI with /ok to test <full 40-char sha> after every push.
  • Post a comment here when a draft PR is opened, when a reproducer is confirmed, when a root cause is found, and when a fix is verified. Link CI runs.
  • CI-only changes are reverted before a fix PR is marked ready for review.
Combined stress run (workstream S)

A separate draft PR combined every fix that was ready, ran the full PR CI matrix, and kept rerunning the test jobs until 2026-10-12 02:00 UTC, to confirm the fixes and to find flakes not listed here.

  • When a workstream had a fix ready, it pushed a fix-only branch to bdice/cuvs: the fix commits on top of upstream/main, with no CI or workflow changes and no diagnostics. It then posted a comment starting with **FIX READY:** giving the workstream letter, the branch name, the head SHA, and a one-line summary.
  • When the stress run found a failure not covered by an existing workstream, it posted a comment starting with **NEW FLAKE:** with the test name, configuration, and job links, and a new workstream was assigned to it.
Lingua principale
Cuda
Stelle
902
Fork
267
Merge medio
2g 21h
PR unite (30g)
57

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NVIDIA/cuvs

Tutte le issue di NVIDIA/cuvs

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.