You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "Astro-Han (via GitHub)" <gi...@apache.org> on 2026/08/31 09:16:25 UTC

[PR] ci: run the ASF npm workflow policy once per pipeline [maka]

Astro-Han opened a new pull request, #4343:
URL: https://github.com/apache/maka/pull/4343

   ## What
   
   `npm run check:asf-npm` (`node --test scripts/asf-npm-workflow-policy.test.mjs`) ran twice in the same core CI job: once as its own step, and again inside `npm run check:release`. Same suite, same tree, no added signal. This drops the copy inside `check:release`.
   
   ## Why this side
   
   - **Same job, so no fail-fast argument.** `ci.yml` has exactly one job (`test`); both invocations are steps in it.
   - **The standalone step covers strictly more.** It has no `if:` and runs before `actions/setup-node`, so it gates every change with no install. The `Release contracts` step is gated on `steps.plan.outputs.release_contract == 'true'` and runs after `npm ci` + `npm run build` — dropping the standalone step would leave the check unrun on most PRs.
   - **The standalone step is a codified contract.** `scripts/ci-test-plan.test.mjs` asserts `Verify ASF npm preflight policy` exists, precedes `setup-node`, and carries neither `if:` nor `continue-on-error`. Removing it would mean rewriting that test.
   - **Non-CI callers lose nothing real.** `scripts/package-macos-arm64.mjs:98` and `scripts/package-windows-x64.mjs:115` call `check:release`, but the suite only asserts on the contents of `.github/workflows/asf-npm-candidate.yml` — a workflow-file contract with no bearing on the packaged macOS/Windows app. No test asserts that `check:release` bundles it.
   
   ## Verification
   
   - `npm run check:asf-npm` — pass
   - `node --test scripts/ci-test-plan.test.mjs scripts/asf-source-workflow-policy.test.mjs` — 51 pass, 0 fail


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] ci: run the ASF npm workflow policy once per pipeline [maka]

Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han commented on PR #4343:
URL: https://github.com/apache/maka/pull/4343#issuecomment-5476340929

   Superseded by #4344. This PR was closed automatically when the branch was renamed from `claude/heuristic-cohen-0c3e9f` to `ci/dedupe-asf-npm-policy-check` to match the repository's `<type>/<description>` convention; the commit is unchanged.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] ci: run the ASF npm workflow policy once per pipeline [maka]

Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han closed pull request #4343: ci: run the ASF npm workflow policy once per pipeline
URL: https://github.com/apache/maka/pull/4343


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org