Repository navigation
ci: fix shellcheck findings and trim comments in unit-tests.yml (#1967) - #2037
Conversation
335f24a to
7ad513b
Compare
|
GOOD TO GO at
Since review I fixed the comment the review flagged in |
|
Coverage: 91.54% (unit tier, Python 3.15,
Per-file detail: the |
7ad513b to
77368b6
Compare
|
resolve conflicts |
77368b6 to
1f1921a
Compare
- lint.yml: drop the actionlint step's `continue-on-error`, so a finding fails Lint; move it below the advisory steps and run it on `!cancelled()` so a finding skips none of them and a failed setup does not skip it. Version and sha256 pin unchanged. - lint.yml: the step's comment says it blocks, why that is safe now (#2023, #2037, #2038), and that the image's shellcheck can drift. - workflows.rst: Workflow Lint no longer calls the step advisory. - test_actionlint_in_lint_1967: TestItBlocks pins the blocking shape; test_unit_tests_shellcheck_1967's docstring no longer says advisory.
|
Rebase only, no new changes: CI on the previous head |
1f1921a to
ebffa00
Compare
- lint.yml: drop the actionlint step's `continue-on-error`, so a finding fails Lint; move it below the advisory steps and run it on `!cancelled()` so a finding skips none of them and a failed setup does not skip it. Version and sha256 pin unchanged. - lint.yml: the step's comment says it blocks, why that is safe now (#2023, #2037, #2038), and that the image's shellcheck can drift. - workflows.rst: Workflow Lint no longer calls the step advisory. - test_actionlint_in_lint_1967: TestItBlocks pins the blocking shape; test_unit_tests_shellcheck_1967's docstring no longer says advisory.
|
Rebase only, no new changes: The head |
Step 5, part 2 of #1967, over unit-tests.yml: - Fix the SC2086 in pypcap-parity's "Run full test suite": split the selection with `read -ra` into an array, and do the same in integration's and project-tests' pytest steps, dropping their `shellcheck disable=SC2086`. Same words reach pytest, with no pathname expansion. - Trim comments: drop restatements of the YAML, history narration, measurements already in the issues, and rationale repeated across jobs; keep each non-obvious why, its issue ref, and the phrases tests pin. - Add test_unit_tests_shellcheck_1967.py, which runs shellcheck over every bash run: block as actionlint 1.7.12 does, skipping without shellcheck. actionlint 1.7.12 reports nothing on unit-tests.yml; the workflow tests pass.
ebffa00 to
894aebc
Compare
- lint.yml: drop the actionlint step's `continue-on-error`, so a finding fails Lint; move it below the advisory steps and run it on `!cancelled()` so a finding skips none of them and a failed setup does not skip it. Version and sha256 pin unchanged. - lint.yml: the step's comment says it blocks, why that is safe now (#2023, #2037, #2038), and that the image's shellcheck can drift. - workflows.rst: Workflow Lint no longer calls the step advisory. - test_actionlint_in_lint_1967: TestItBlocks pins the blocking shape; test_unit_tests_shellcheck_1967's docstring no longer says advisory.
|
Rebase only, no new changes: The head |
- lint.yml: drop the actionlint step's `continue-on-error`, so a finding fails Lint; move it below the advisory steps and run it on `!cancelled()` so a finding skips none of them and a failed setup does not skip it. Version and sha256 pin unchanged. - lint.yml: the step's comment says it blocks, why that is safe now (#2023, #2037, #2038), and that the image's shellcheck can drift. - workflows.rst: Workflow Lint no longer calls the step advisory. - test_actionlint_in_lint_1967: TestItBlocks pins the blocking shape; test_unit_tests_shellcheck_1967's docstring no longer says advisory.
- lint.yml: drop the actionlint step's `continue-on-error`, so a finding fails Lint; move it below the advisory steps and run it on `!cancelled()` so a finding skips none of them and a failed setup does not skip it. Version and sha256 pin unchanged. - lint.yml: the step's comment says it blocks, why that is safe now (#2023, #2037, #2038), and that the image's shellcheck can drift. - workflows.rst: Workflow Lint no longer calls the step advisory. - test_actionlint_in_lint_1967: TestItBlocks pins the blocking shape; test_unit_tests_shellcheck_1967's docstring no longer says advisory.
make pylint,make mypy,make isort)make testpasses, and a test case covers the changeWhat is the purpose of your pull request?
ci— workflows or build toolingDescription of your pull request and other information
#1967 step 5, part 2, covering
unit-tests.yml. Stacked on #2034, so review only the top commit.pypcap-parity's "Run full test suite" (its KTLO twin picks this up via the alias). The selection is split withread -raand passed as"${selection[@]}".integration's andproject-tests' versions get the same treatment, which drops two# shellcheck disable=SC2086lines.tests/project/test_unit_tests_shellcheck_1967.py, which shellchecks everyrun:block the way actionlint 1.7.12 does and skips when shellcheck is absent.Parsed before and after, the workflow is identical apart from
run:strings. Only six of those change: five carry the fix above and one is comment text in the engine cell script. actionlint 1.7.12 now reports nothing on any workflow. The new test fails on #2034's file (2 failed) and passes here.tests/projectplus every file readingunit-tests.yml:1657 passed, 71 skipped.Follow-up:
lint.ymlstill says actionlint stays advisory while findings remain, and that is no longer true.