Repository navigation
ci: quarantine validate cross-checks gtest ids against TEST declarations - #985
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1dcc3fa575
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Scan-Build Report
Bug Summary
Filter Results by FileReports
|
|||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
The validator rejects valid quarantine entries for existing tests declared in included .inc files. It also misclassifies Java class wildcards in one-segment packages and rejects undecorated GTEST_TEST IDs.
🤖 Bits Code Review · Commit 1dcc3fa
CI Test ResultsRun: #43440872385 | Commit:
Status Overview
Legend: ✅ passed | ❌ failed | ⚪ skipped | 🚫 cancelled Summary: Total: 32 | Passed: 32 | Failed: 0 Updated: 2026-11-13 14:40:06 UTC |
❌ ErrorsYour PR has failed checks. Please review the issues below and take necessary action before merging. 🚦 4 Pipeline jobs failed
Useful? React with 👍 / 👎 This comment will be updated automatically if new data arrives.🔗 Commit SHA: 6790a6c | Docs | View more details | Give us feedback! |
…ct forms covers() cannot match rejected
…n, typed-case coverage
…pt GTEST_TEST exact ids PR review findings: the scan missed TEST declarations in .inc files (referenceChains suites); a class-wide Java id like 'a.B.*' was split at its last dot and read as gtest suite 'a'; an exact id declared with GTEST_TEST was rejected as parameterized though its report id is bare.
…-check positively Sphinx delta-review findings: an explicit --gtest-src pointing nowhere skipped the cross-check with no warning, and no test exercised the derived-default path that CI relies on.
1dcc3fa to
6790a6c
Compare
There was a problem hiding this comment.
More details
The cross-check recognizes .inc-based gtest declarations and preserves packaged Java entries, avoiding false rejections of those quarantine forms. Committed-list validation and focused declaration checks support the matching behavior.
🤖 Bits Code Review · Commit 6790a6c
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
The merge request has been interrupted because the build 1308487245130839326 took longer than expected. The current limit for the base branch 'main' is 120 minutes. Possible reasons:
|
|
❌ 39 passed, 1 failed out of 40 expected configurations Test Matrix
Failure Detailsmusl-x64-hotspot-jdk21Profiler-only: Links
|
6c5dd36
into
main
What does this PR do?:
quarantine.py validatenow cross-checks every bare-suite gtest entry's id against theTEST*(...)declarations in the gtest sources (ddprof-lib/src/test/cpp), so an id no source declares fails the PR instead of shipping a mute that never matches.Motivation:
This closes the gap the PROF-16577 pin test (#984) papered over. That pin existed because
validate()could not catch a suite name that exists only in a ticket title — the failure mode is a quarantine entry that never fires while CI shows green. The general mechanism is now in the validator:#ifdefs (nativeThreadNameRace_ut is Linux-only), and catches aTEST(wrapped across lines.errors='replace'keeps a stray non-UTF-8 byte in a comment from crashing the run.covers(), not wishes: an exact entry is compared verbatim at runtime, so a bare id for aTEST_P/TYPED_TESTcase (whose report id carries<inst>/.../<idx>decoration) and any id carrying instantiation decoration are rejected with a pointer to the class-wide<Suite>.*form, which is the only shapecovers()'s classname reduction can match.::warning::and skips; an explicit--gtest-src(the hermetic-test path) skips silently. Waived low: making the derived case fail would break every scratch-list hermetic test by construction.How to test the change?:
bash .github/scripts/tests/test_quarantine.sh— 100 cases (up from 79), including the new gtest cross-check family: declaration shapes (TEST/TEST_F/TEST_P/TYPED_TEST/GTEST_TEST), bare and decorated exact ids, class-wide and instantiation forms, trailing-dot and caseless ids, multi-line declarations, a non-UTF-8 source byte,.inc-declared cases, class-wide Java ids, the derived-tree cross-check, and the skip warnings (missing derived and missing explicit--gtest-src).python3 .github/scripts/quarantine.py validate— the committed list (15 entries) stays valid; its NativeThreadNameRaceTest entry resolves against the real sources.Review note: sphinx review rounds (standard, plus a clean fix-delta re-review) cover the full range; the three bot review comments (
.incscan, class-wide Java ids,GTEST_TESTexact ids) are fixed in c498be7 and each pinned by a hermetic case, with the delta-review's two LOW findings fixed in 6790a6c. Waived LOW findings (Java-shape heuristic and wrapper-macro limits, both documented in-code) are listed in the review marker. Test suite: 100 hermetic cases (up from 79 at the base). All counts from.github/scripts/tests/test_quarantine.shat 6790a6c.For Datadog employees: