You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci): classify images/fonts/binaries as inert instead of production in revert-oracle (#4140)
An image, font, or archive has no observable behaviour: no runner in this
repo compiles or executes one, so a test can neither accompany nor observe
a change to it. classifyPath put such files in `production` by default,
so the oracle ABORTed with "changes production code and adds/changes NO
test file" on branches whose only changes were of this kind — e.g. five
deleted favicon PNGs, or an archive of retained evidence files. That is a
false positive about the classifier, not a finding about the branch.
Add a narrow `inert` classification (images, fonts, a few other binary
container formats) alongside the existing `production`/`test`/`ignored`
kinds, extracted to scripts/lib/revert-oracle-inert.mjs to stay under the
module-size budget. `.json` and other formats a runner's behaviour can
depend on are deliberately excluded, so a source file with no test still
ABORTs exactly as before.
Closes#4137
Co-authored-by: Louis Trümpler <78563314+louistrue@users.noreply.github.com>
test('classifyDiff: a diff of ONLY inert files has no production entries (script-level effect: NOT APPLICABLE, same as #4024 for test-only diffs)',()=>{
0 commit comments