test(mqttea,dpf): fold per-case error and node-label tests into tables#2708
test(mqttea,dpf): fold per-case error and node-label tests into tables#2708chet wants to merge 1 commit into
Conversation
|
@coderabbitai PTAL, thanks! |
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
🚧 Files skipped from review as they are similar to previous changes (3)
Summary by CodeRabbit
WalkthroughTest suites across the ChangesDPF and mqttea test suite consolidation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
gh pr view 2708 --repo NVIDIA/infra-controller --json title,body,files,additions,deletions,commits
echo "---FILES---"
gh pr diff 2708 --repo NVIDIA/infra-controllerLength of output: 44210
Substantive concern —
|
|
@coderabbitai Thanks for the eyes. Updated -- restored the |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
gh pr diff 2708 --repo NVIDIA/infra-controller | grep -A 30 "send_and_sync\|error_is_send\|assert_impl_all\|Send.*Sync\|JsonSerialization\|YamlSerialization" | head -80Length of output: 3809
No outstanding concerns. Resolving. (∧ᵕ᷄˳ᕗ᷅∧) [resolve] |
`mqttea`'s error tests had grown to ~38 near-identical functions. They now collapse into two tables -- one over the category predicates each error answers, one over `Display`/`source` rendering -- with the genuinely distinct constructor, equality, and `Default` tests kept as they were. The same pass drops tests that exercised the stdlib rather than our error type (the `Result`/`Option` ergonomics tests) and two timing assertions that belong in a bench, not the suite; the `Send + Sync` compile guard stays, since it pins a real property of the error type rather than stdlib behavior. `dpf`'s six `verify_node_labels_*` tests become one `check_cases_async` table seeded by a small `Seeded` enum, and two `init_config` tests go -- one duplicated the defaults table in `types.rs`, the other only re-read fields it had just set. The `dpu_phase` `Display`-matches-`as_ref` check folds into the table that already enumerates every variant. A net reduction of ~200 test lines, no production change. The predicate table asserts the full category vector per row, so coverage is a touch stronger than before; verified per crate with `cargo test`. Signed-off-by: Chet Nichols III <chetn@nvidia.com>
🔍 Container Scan Summary
Per-CVE detail lives in the per-service |
Wave 1 of the carbide-test-support integration (#2692).
mqttea's ~38 near-identical error tests collapse into two tables -- category predicates per error, andDisplay/sourcerendering -- keeping the distinct constructor, equality, andDefaulttests. Drops theSend/Synccompile-checks, theResult/Optionstdlib-ergonomics tests, and two timing assertions that belong in a bench.dpf's sixverify_node_labels_*tests become onecheck_cases_asynctable seeded by a smallSeededenum; two redundantinit_configtests and aDisplay-matches-as_refduplicate go.~230 fewer test lines, no production change; the predicate table asserts the full category vector per row, a touch stronger than the originals. Verified per crate (
cargo test: mqttea 13 + 22, dpf sdk 40, dpf types 7).Addresses #2697.