GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||
GeezerVison is showing github.com — add --require-spec to check-prerequisites by HuzaifaChaudary · Pull Request #4367 · github/spec-kit Conversation
|
| file | change |
|---|---|
scripts/bash/check-prerequisites.sh |
--require-spec |
scripts/powershell/check-prerequisites.ps1 |
-RequireSpec |
scripts/python/check_prerequisites.py |
--require-spec |
templates/commands/analyze.md |
passes the flag in sh ps and py |
templates/commands/converge.md |
passes the flag in sh ps and py |
test_python_require_spec_matches_bash covers three states across bash and python:
it fails on main with ERROR: Unknown option '--require-spec'.
| check | result |
|---|---|
new test on main |
fails |
| new test with the change | passes |
| full suite before | 10 failed, 7135 passed |
| full suite after | 10 failed, 7137 passed |
| new failures introduced | none, i diffed the two failure lists |
ruff check scripts tests |
all checks passed |
the 10 pre existing failures are the composed template parity tests and are unrelated to this.
disclaimer: this contribution was prepared with the assistance of an ai agent. i reproduced the gap first, checked which callers actually read the spec, and ran the parity suite locally before opening this.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
the script resolves FEATURE_SPEC and reports it but never checks that the file is there, so analyze and converge pass the prerequisite check and then fail later reading a spec that does not exist, without the run specify first guidance the script gives for every other artifact the flag is opt in so nothing changes for callers that do not read the spec. analyze and converge pass it because they do added to all three script variants because the parity tests compare their help text and error output against each other
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
analyze and converge read spec.md so the py runner needs the same guard as sh and ps. the python script already had the flag but no caller passed it so the python variant kept the old late failure.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The PowerShell script cannot parse, and its new behavior lacks parity coverage.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
the require spec line got duplicated over the require tasks line and the second copy lost its leading hash, so line 14 was executable powershell sitting above CmdletBinding and the whole script stopped parsing. every test_ps_ test failed on ci because of it. parser says 2 errors before and none after: line 20 unexpected attribute CmdletBinding line 21 unexpected token param also add the powershell half of the require spec parity test, which is what would have caught this.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
both findings were right and both are fixed in the parse break. exactly as described. the that is why every the missing powershell coverage. added worth saying plainly that this test is what would have caught the break, and i did not write it the first time. the bash and python halves passed the whole way through. local run after the fix, with pwsh 7.5.2: the two are same two, same way. they were also in the ubuntu 3.13 failure list, so on ci they may well have been collateral from the parse break, but either way they fail without this branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The opt-in validation is consistently implemented and covered across all three script variants.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thank you! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Disclosure, which I should have added when I opened this and did not. Per CONTRIBUTING.md, "AI contributions in Spec Kit": this contribution was made with AI assistance. Claude Code was used for the code change, the tests, the documentation edits, and for writing the pull request description, working from my direction and with the results checked and run locally before each push. Apologies for the late disclosure. I read the issue and the labels before starting but not the contributing guide, which is my mistake. Happy to answer anything about the change directly. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* add --require-spec to check-prerequisites the script resolves FEATURE_SPEC and reports it but never checks that the file is there, so analyze and converge pass the prerequisite check and then fail later reading a spec that does not exist, without the run specify first guidance the script gives for every other artifact the flag is opt in so nothing changes for callers that do not read the spec. analyze and converge pass it because they do added to all three script variants because the parity tests compare their help text and error output against each other * pass require spec in the py script line too analyze and converge read spec.md so the py runner needs the same guard as sh and ps. the python script already had the flag but no caller passed it so the python variant kept the old late failure. * restore the options comments in the powershell script the require spec line got duplicated over the require tasks line and the second copy lost its leading hash, so line 14 was executable powershell sitting above CmdletBinding and the whole script stopped parsing. every test_ps_ test failed on ci because of it. parser says 2 errors before and none after: line 20 unexpected attribute CmdletBinding line 21 unexpected token param also add the powershell half of the require spec parity test, which is what would have caught this.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: check-prerequisites.sh never validates spec.md although it resolves and exports FEATURE_SPEC
There was an error while loading. Please reload this page.