Repository navigation
fix(create-spec): check every verification value's severity, and accept PartialFail (MAG-3950) - #201
Open
AnnaR-prog wants to merge 1 commit into
Open
AnnaR-prog wants to merge 1 commit into
AnnaR-prog wants to merge 1 commit into
Conversation
…pt PartialFail (MAG-3950) MAG-3950 gave verifications three severities: Fail takes the url out, PartialFail switches off only the add-on or extension the check covers, Warning nothing (smart-router #580). The verifications gate still knew the older set, and read only values[0]: - a spec that sets PartialFail failed the gate; - Stop passed, though no router knows it (it reads as Fail on main, as the default with #580); - a value after the first was never checked. check_verifications.sh now checks the severity of every value: - Warning, Fail and PartialFail pass, and an absent one reports the default for where its check sits: Fail for a basic check (no add_on, no extension), PartialFail for an add-on or extension check; - PartialFail on a basic check fails: there is no smaller part to switch off, and the router reads it as Fail (MAG-4505 comment 30715 says it is rejected); - any other name fails, Stop included; - an explicit Fail on an add-on or extension check is an INFO row: on a router with #580 it makes the add-on mandatory. No spec on main changes verdict: the 11 of 156 that fail the gate fail it on the same rows, and none sets Fail on an add-on check. TESTING.md describes the gate's new rules; the self-test covers them with two new fixtures. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of MAG-3950 (the spec-side guard). The router side is smart-router #580 (severities) and #582 (retries).
Problem
MAG-3950 gave each verification a severity that says what its failure costs:
Failtakes the url out,PartialFailswitches off only the add-on or extension the check covers,Warningcosts nothing. A value that sets none takes the default for where its check sits:Failfor a basic check,PartialFailfor an add-on or extension check.The verifications gate (
check_verifications.sh) still knew the older set, and read onlyvalues[0]:PartialFailfailed the gate;Stoppassed, though no router knows it (it reads asFailtoday, and as the default with #580);Change
The gate checks the severity of every value:
Warning,Fail,PartialFailFailfor a basic check (noadd_on, noextension),PartialFailfor an add-on or extension checkPartialFailon a basic checkFail. MAG-4505 comment 30715 says it is rejectedStopincludedFailon an add-on or extension checkSafe before a router release carries #580. A router without it reads
PartialFailas an unknown name, which isFail. On an add-on check that already refuses only the add-on (MAG-3326), and on a basic check it refuses the url. So a spec that usesPartialFailbehaves the same on old routers and new ones.TESTING.mddescribes the gate's new rules.Checked
Failon an add-on or extension check, so the INFO row appears nowhere.test_check_verifications.shgets two fixtures, one passing and one failing, and asserts each row: the defaults, an explicitPartialFail, the INFO row, a basicPartialFail,Stop, and a bad value atvalues[1].PartialFailpassing;Stopaccepted;values[0];Fail;🤖 Generated with Claude Code