Integration coverage for the CommerceKit Build → Deploy → Notify flow against the public CCv2 Sandbox, including an approval-gated synthetic deploy and cleanup dry-run. This repository executes the actual, SHA-pinned Actions and uses their real outputs; it does not replace them with test implementations.
Each scenario creates one disposable Sandbox run, runs the Build Action, passes its returned build code to Deploy, validates results and NotificationEvent v1 events, and attempts cleanup even after failure. The provider suite also delivers those events through Notify to dedicated Slack and Teams test destinations.
| Suite | Coverage | External effects |
|---|---|---|
smoke |
Rolling success and separate green ACCEPT handoff | Two disposable Sandbox runs; no provider messages |
full |
All 16 build, deployment, decision, resume, and cancellation scenarios | Disposable Sandbox runs; no provider messages |
providers |
Four representative flows through each of Slack and Teams | Eight disposable Sandbox runs and deliberate test messages |
Ordinary pull-request and main CI run offline validation only. Live suites are
manual, restricted to this repository's main, and require exact confirmation
strings. They never use real SAP credentials. Marketplace publication, Action
release tags, and package publishing are intentionally absent.
Start with setup and dispatch. The scenario reference defines expected negative outcomes and required assertions. Passing offline CI is not evidence that live Sandbox scenarios or provider delivery have passed.
The separate approval/deploy and cleanup workflows have
recorded hosted passes.
The original smoke, full and providers matrices, live Slack/Teams delivery and
dedicated hosted cancellation/timeout scenarios remain NOT RUN in that evidence.
| Workflow | Order and effect |
|---|---|
| build-approve-deploy.yml | Repository quality gate → CommerceKit check of three synthetic files → actual CCv2 Build Action → required approval → recreate the validated build in a fresh Sandbox run → actual Deploy Action |
| cleanup.yml | Create an isolated 105-build fixture → actual Cleanup Action in hardcoded dry-run → repeat and compare → verify zero target mutations → remove the run |
Both require a deliberate main-branch dispatch and
RUN-COMMERCEKIT-SANDBOX-TESTS. They have no schedule, real SAP credentials,
provider sends, publication or release steps. The approval environment is
sandbox-deploy-approval: reviewer anilkreddy, own-run approval allowed, main
only, administrator bypass disabled. Its settings are verified before the build
and again before preparing the approved deployment run.
The repository stage runs this JavaScript harness's existing pnpm quality gate;
it does not compile a customer Commerce application. CommerceKit CLI
0.1.0-preview.2 checks real supported fixture files. Only a validated build code
crosses jobs; source-run credentials are never exported or uploaded. Approval
starts a fresh synthetic run, with the source code mapped to an approved-...
fixture identifier because the Sandbox fixture API does not accept dots in keys.
See workflow setup, dispatch and limits and the dated hosted results. Future Action or Sandbox changes require their own validation; the presence of a workflow or merged source does not establish a new hosted pass.
The local reporting harness validates all five actual bundled Actions against exact published notification-contract 0.0.6. It verifies normal registry manifests/locks, installed public package bytes, reviewed sources and bundle hashes before using the local Sandbox and mocked provider fetches. Input coverage, secret masking, status icons/tables and notification/summary parity are checked without hosted dispatches, live provider sends or real SAP calls. Historical source-candidate evidence is archived separately and does not substitute for registry-backed validation.
Use Node 26.13.1 and pnpm 12.6.0, then configure local GitHub Packages read access as described in setup.
npm install --global corepack@0.36.0
corepack enable
pnpm install --frozen-lockfile
pnpm qualityNode 26 is the development and workflow-script host; it no longer bundles
Corepack, so install the pinned bootstrap shown above. The immutable CommerceKit
Action refs still execute on GitHub's Node 24 runtime. Their runtime/input
metadata is bound to the same refs in action-inputs.json; composite wrappers
do not replace that execution runtime. The opt-in local reporting replay keeps
its explicit Node 24 compatibility runner as described in reporting.
CI runs its focused offline reporting tests on Node 24 after the main Node 26
quality gate; it does not duplicate the full suite or dispatch live scenarios.
The harness reuses @commercekit-tools/notification-contract and
@commercekit-tools/ccv2-client. See the
revision and compatibility guide for the
current Action catalog, declared package versions, frozen resolutions and limits of prior
run evidence. Producer refs remain in the policy-checked composite wrappers; CLI Setup is
pinned in the build/approval workflow.
See Contributing, agent guidance, and the security policy before changing the harness.