Commit adb2bbc
committed
fix(ci): stop an env-gated all-skip package from outranking real evidence in the revert oracle
#4131 (closes #4108) correctly stops an all-skipped baseline from being
scored a pass, but `aggregate()`'s severity walk ranked ALL_SKIPPED above
PASS and ASSERTION_FAILURE unconditionally. CI's revert-oracle job installs
Python/ifcopenshell only when Python files changed, so a TS-only PR touching
even one env-gated all-skip file (e.g.
packages/export/src/ifcopenshell-schema-conformance.test.ts) now aggregates
to ALL_SKIPPED across the whole run, and verdict() falls into
BASELINE-BROKEN/exit 3 -- blocking a PR whose other packages produced real,
executed assertions that went red on revert.
Adds severityCandidates() in revert-oracle-all-skipped.mjs: when at least
one result in the run has kind PASS or ASSERTION_FAILURE, ALL_SKIPPED
entries are dropped from the severity walk (their counts/evidence still
fold into aggregate()'s totals, unfiltered). With no real evidence anywhere,
every result stays a candidate, so a single all-skipped package, or a run
where every package is all-skipped, still aggregates to ALL_SKIPPED and
still blocks -- #4108's own case is unchanged.
Verified both directions with synthetic aggregate()/verdict() calls before
fixing: a PASS-plus-ALL_SKIPPED run aggregated to ALL_SKIPPED/BASELINE-BROKEN
(exit 3) pre-fix, and to PASS/OBSERVED (exit 0) post-fix; a single- or
every-package all-skipped run stayed ALL_SKIPPED/BASELINE-BROKEN (exit 3) in
both cases.
Mutated to confirm the tests hold: reverting the aggregate() change back to
scanning `results` directly turns exactly the three new multi-package tests
red; reverting severityCandidates() to unconditionally filter ALL_SKIPPED
(dropping the single-signal guard) turns exactly the two single/every
all-skipped tests red. All other tests stayed green in both mutations.
scripts/lib/revert-oracle.mjs stays within its 528-line module-size budget
(now flush against it); the new logic lives in the existing
revert-oracle-all-skipped.mjs sibling module instead of growing the budget.
node --test scripts/lib/revert-oracle*.test.mjs: 104 -> 108 tests, all
passing.1 parent e734b0c commit adb2bbc
3 files changed
Lines changed: 90 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | | - | |
515 | | - | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
516 | 517 | | |
517 | 518 | | |
518 | 519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
953 | | - | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
954 | 957 | | |
955 | 958 | | |
956 | 959 | | |
957 | 960 | | |
958 | | - | |
| 961 | + | |
959 | 962 | | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
960 | 1020 | | |
961 | 1021 | | |
962 | 1022 | | |
| |||
0 commit comments