Generic reusable-workflow behavior belongs upstream in the
control-plane-flow CI automation guide.
Use this repo note only as the canary checklist for
react-webpack-rails-tutorial.
After regenerating the generated cpflow-* wrappers, run:
bin/conductor-exec bin/test-cpflow-github-flowWhen testing an unreleased upstream control-plane-flow checkout, pass that
checkout's bin/cpflow:
bin/conductor-exec bin/test-cpflow-github-flow ruby /path/to/control-plane-flow/bin/cpflowUse an immutable upstream commit SHA, not a branch:
bin/pin-cpflow-github-ref <40-character-control-plane-flow-commit-sha>
bin/conductor-exec bin/test-cpflow-github-flow ruby /path/to/control-plane-flow/bin/cpflowLeave CPFLOW_VERSION unset while testing a commit SHA. After the upstream PR
ships in a release tag, repin wrappers to that tag. Use v5.1.1 for the
promotion-hardening and release-runner timeout fixes; use immutable commit SHAs
only for future unreleased upstream PR tests.
- Open or reuse a same-repository PR.
- Comment exactly
+review-app-deploy. - Confirm the deploy job checks out the expected upstream Control Plane Flow
source selected by the generated wrapper's
uses:ref. - Confirm
Setup environment,Check if review app exists,Build Docker image, andDeploy to Control Planeall pass. - Open the review-app URL from the PR comment and verify it returns HTTP 200.
Comment-triggered workflows run from the repository default branch. If you are testing edits to a workflow file before merging, manually dispatch the PR branch workflow:
gh workflow run cpflow-deploy-review-app.yml --ref <branch> -f pr_number=<pr-number>ERROR: Unknown API token format. Please re-run 'cpln profile login' or set the correct CPLN_TOKEN env variable.
The workflow can read CPLN_TOKEN_STAGING, but the secret value is not a valid
Control Plane service-account token. Rotate the GitHub secret and rerun the
deploy.
Pushes redeploy only after the review app already exists. Create the first one
with an exact +review-app-deploy PR comment.
Comment-triggered runs use workflow files from master. For PR-branch workflow
edits, use workflow_dispatch as shown above or merge first and test with a
real review-app deploy.