Repository navigation
ci(spec-lint): read the linter from foundry's spec plugin (#2240) - #2241
Conversation
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing: 1
✨ Finishing Touches
Comment |
56c49eb to
c79a10e
Compare
|
Approved: no findings at Nothing to do. Clobber: none: |
There was a problem hiding this comment.
Checked against foundry main: plugins/spec/linter/spec_lint.py and its deploy/spec-lint.yml are there and the old spec/ path is gone, so this is needed now. Three path edits, nothing else touched.
Spec lint
Advisory. None of this blocks the merge; the review decides. Advisory, and never a merge gate. Linter: |
Problem
gominimal/foundry is moving its spec linter from
spec/toplugins/spec/linter/(gominimal/foundry#158). The installed.github/workflows/spec-lint.ymlhere sparse-checks outspecand runslinter/spec/spec_lint.py. Once the move lands on foundry main that path is gone: the advisory lint would skip with only a::warning::, and foundry'sspec-driftcheck, which listsminimalinCOPY_REPOS, would go red.Change
One file,
.github/workflows/spec-lint.yml, three path edits:gominimal/foundry:plugins/spec/linter/deploy/spec-lint.ymlsparse-checkout: plugins/spec/linterlinter/plugins/spec/linter/spec_lint.pyNo behaviour change. Nothing else in the file is touched.
Known and out of scope: this installed copy already differed from foundry's source before this PR (foundry's copy carries later hardening, for example the checked changed-file read and the author-scoped comment lookup; this copy carries a local zizmor comment and a
# v3pin label). Those differences are onorigin/maintoday and are unchanged here. Reconciling them is a behaviour change and belongs in its own PR.Merge order
layout/foundry-is-organized-by-factory-stage(tracking gominimal/foundry#158). Before it lands,plugins/spec/linter/does not exist on foundry main.This PR stays a draft until the foundry layout PR has merged; mark it ready only then.
Test plan
plugins/spec/linter/deploy/spec-lint.ymlon the foundry branchlayout/foundry-is-organized-by-factory-stage(compared withdiff; the only other differences are the pre-existing ones named above).git diff origin/maintouches only.github/workflows/spec-lint.yml, 4 lines.paths, so this PR runs it. Before foundry merges, expect the::warning::the linter could not be checked outquiet path and a green job. After foundry merges, re-run it and expect the linter to run.spec-driftreports no new drift forgominimal/minimalfrom the path change.Closes #2240