Repository navigation
fix: CodeRabbit auto-fixes for PR #783 #1280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,9 @@ expect() { # expect <wanted-exit> <label> (Debtfile content on stdin) | |
| else fail=$((fail+1)); echo " FAIL $label (wanted exit $want, got $got)"; fi | ||
| } | ||
|
|
||
| # entry <probe> <count> <ceiling> [accepted-until] — build a minimal valid | ||
| # Debtfile entry (testing-taxonomy fields included) on stdout, for piping | ||
| # into the runner under test. | ||
| entry() { # entry <probe> <count> <ceiling> [accepted-until] | ||
| cat <<EOF | ||
| ### alpha | ||
|
|
@@ -34,9 +37,8 @@ entry() { # entry <probe> <count> <ceiling> [accepted-until] | |
| - ceiling: $3 | ||
| - severity: high | ||
| - policy: remediable | ||
| - taxonomy-choice: non-default | ||
| - taxonomy-default-arm: adapt-proven-idris2-test | ||
| - taxonomy-non-default-arm: write-local-test | ||
| - taxonomy-selected-arm: write-local-test | ||
|
Comment on lines
40
to
+41
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Restore the required Useful? React with 👍 / 👎. |
||
| - taxonomy-departure-reason: the host API is not supported by the proven suite | ||
| - accepted-until: ${4:-2030-01-01} | ||
| EOF | ||
|
|
@@ -81,7 +83,7 @@ bash "$SCRIPT" --write Debtfile.a2ml >/dev/null 2>&1 || true | |
| if grep -q '^- ceiling: 2$' Debtfile.a2ml && | ||
| grep -q '^- count: 2$' Debtfile.a2ml && | ||
| grep -q '^- taxonomy-default-arm: adapt-proven-idris2-test$' Debtfile.a2ml && | ||
| grep -q '^- taxonomy-non-default-arm: write-local-test$' Debtfile.a2ml && | ||
| grep -q '^- taxonomy-selected-arm: write-local-test$' Debtfile.a2ml && | ||
| grep -q '^- taxonomy-departure-reason: the host API is not supported by the proven suite$' Debtfile.a2ml; then | ||
| pass=$((pass+1)); echo " ok --write updates measurements and preserves taxonomy-choice fields" | ||
| else | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the arm-identifier checks makes the validator accept values containing spaces or uppercase characters even though
DEBTFILE-SPEC.adocrequires[a-z0-9][a-z0-9._-]*. The existingscripts/tests/debtfile-structure-test.shcase withtaxonomy-default-arm: Adapt proven testnow returns 0 instead of 1, so the canonical shell test suite fails and malformed governance records can pass validation.Useful? React with 👍 / 👎.