|
| 1 | +name: V35 Canon Promotion |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + types: |
| 8 | + - opened |
| 9 | + - synchronize |
| 10 | + - reopened |
| 11 | + - ready_for_review |
| 12 | + workflow_dispatch: |
| 13 | + |
| 14 | +concurrency: |
| 15 | + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 16 | + cancel-in-progress: true |
| 17 | + |
| 18 | +permissions: |
| 19 | + contents: write |
| 20 | + pull-requests: read |
| 21 | + |
| 22 | +jobs: |
| 23 | + promote-v35: |
| 24 | + name: V35 Promotion Validation |
| 25 | + if: >- |
| 26 | + ${{ |
| 27 | + github.event_name == 'workflow_dispatch' || |
| 28 | + ( |
| 29 | + github.event.pull_request.base.ref == 'main' && |
| 30 | + github.event.pull_request.head.ref == 'version/v35' && |
| 31 | + github.event.pull_request.head.repo.full_name == github.repository |
| 32 | + ) |
| 33 | + }} |
| 34 | + runs-on: ubuntu-latest |
| 35 | + |
| 36 | + steps: |
| 37 | + - name: Checkout version branch |
| 38 | + uses: actions/checkout@v4 |
| 39 | + with: |
| 40 | + ref: ${{ github.event.pull_request.head.ref || github.ref_name }} |
| 41 | + token: ${{ github.token }} |
| 42 | + fetch-depth: 0 |
| 43 | + |
| 44 | + - name: Setup pnpm |
| 45 | + uses: pnpm/action-setup@v4 |
| 46 | + |
| 47 | + - name: Setup Node |
| 48 | + uses: actions/setup-node@v4 |
| 49 | + with: |
| 50 | + node-version: "24" |
| 51 | + cache: pnpm |
| 52 | + |
| 53 | + - name: Install dependencies |
| 54 | + run: pnpm install --frozen-lockfile |
| 55 | + |
| 56 | + - name: Validate V35 promotion readiness |
| 57 | + run: | |
| 58 | + POINTER="$(cat BITCODE_SPEC.txt)" |
| 59 | + if [ "$POINTER" = "V34" ]; then |
| 60 | + node scripts/check-bitcode-spec-family.mjs --version V35 --mode draft --current-target V34 |
| 61 | + node scripts/check-bitcode-canon-posture-drift.mjs --active-canon V34 --draft-target V35 |
| 62 | + node scripts/check-bitcode-canonical-inputs.mjs --current-target V34 |
| 63 | + node scripts/check-v35-gate1-telemetry-docs-roadmap-opening.mjs --skip-branch-check |
| 64 | + node scripts/check-v35-gate2-documentation-surface-catalog.mjs --skip-branch-check |
| 65 | + node scripts/check-v35-gate3-telemetry-taxonomy-event-schema-redaction.mjs --skip-branch-check |
| 66 | + node scripts/check-v35-gate4-public-docs-usage-guides.mjs --skip-branch-check |
| 67 | + node scripts/check-v35-gate5-dashboards-alerts-runbooks-incident-escalation.mjs --skip-branch-check |
| 68 | + node scripts/check-v35-gate6-documentation-qa-alignment-proofs.mjs --skip-branch-check |
| 69 | + node scripts/check-v35-gate7-developer-operator-testnet-rollout-guides.mjs --skip-branch-check |
| 70 | + node scripts/check-v35-gate8-telemetry-documentation-interface-integration.mjs --skip-branch-check |
| 71 | + node scripts/check-v35-gate9-local-staging-telemetry-documentation-rehearsal.mjs --skip-branch-check |
| 72 | + node scripts/check-v35-gate10-promotion-readiness.mjs --promotion-mode --skip-branch-check |
| 73 | + node scripts/promote-bitcode-canon.mjs --version V35 --commit HEAD --dry-run |
| 74 | + elif [ "$POINTER" = "V35" ]; then |
| 75 | + node scripts/check-bitcode-spec-family.mjs --version V35 --mode promoted --current-target V35 |
| 76 | + node scripts/check-bitcode-canonical-inputs.mjs --current-target V35 |
| 77 | + node scripts/check-bitcode-canon-posture-drift.mjs --active-canon V35 --draft-target V36 |
| 78 | + node scripts/check-v35-gate10-promotion-readiness.mjs --promotion-mode --skip-branch-check |
| 79 | + else |
| 80 | + echo "Unexpected BITCODE_SPEC.txt pointer: $POINTER" >&2 |
| 81 | + exit 1 |
| 82 | + fi |
| 83 | + pnpm test:qa:v28:pipeline-readback |
| 84 | + pnpm --filter @bitcode/protocol typecheck |
| 85 | + pnpm --filter @bitcode/protocol test |
| 86 | + pnpm --filter @bitcode/btd typecheck |
| 87 | + pnpm --filter @bitcode/btd test |
| 88 | + npm --prefix protocol-demonstration test |
| 89 | + npm --prefix protocol-demonstration run test:v28-mvp-qa |
| 90 | + pnpm --filter @bitcode/pipeline-asset-pack typecheck |
| 91 | + pnpm --filter @bitcode/pipeline-hosts typecheck |
| 92 | + pnpm --filter @bitcode/pipeline-asset-pack exec jest --config jest.config.cjs --passWithNoTests --forceExit |
| 93 | + pnpm --filter @bitcode/pipeline-hosts exec jest --config jest.config.cjs --passWithNoTests --forceExit |
| 94 | + pnpm --dir uapi exec jest --runTestsByPath \ |
| 95 | + tests/userDataRoute.test.ts \ |
| 96 | + tests/auxillariesWalletPane.test.tsx \ |
| 97 | + tests/auxillariesContent.access.test.tsx \ |
| 98 | + tests/auxillariesWorkspacePanels.access.test.tsx \ |
| 99 | + tests/auxillariesWorkspacePanels.test.tsx \ |
| 100 | + tests/api/auxillariesGithubConnectionRoute.test.ts \ |
| 101 | + tests/api/vcsRoutes.test.ts \ |
| 102 | + tests/auxillariesExternalsPane.test.tsx \ |
| 103 | + tests/profileStep.test.tsx \ |
| 104 | + tests/api/readReviewRoute.test.ts \ |
| 105 | + tests/api/pipelineHarnessRoute.test.ts \ |
| 106 | + tests/terminalPipelineHarnessClient.test.ts \ |
| 107 | + tests/terminalDepositReadWorkbench.test.ts \ |
| 108 | + tests/terminalTransactionQuery.test.ts \ |
| 109 | + tests/terminalTransactionReadModel.test.ts \ |
| 110 | + tests/terminalProtocolProjection.test.ts \ |
| 111 | + tests/terminalInterfaceIntegrationRegression.test.ts \ |
| 112 | + tests/terminalWalletBtcOperation.test.ts \ |
| 113 | + tests/terminalJournalReconciliation.test.ts \ |
| 114 | + tests/terminalOrganizationAuthority.test.ts \ |
| 115 | + tests/protocolCommercialBoundary.test.ts \ |
| 116 | + tests/terminalTransactionDetailCards.test.tsx \ |
| 117 | + tests/terminalTransactionDetailSnapshot.test.ts \ |
| 118 | + tests/terminalUxBrowserProof.test.tsx \ |
| 119 | + tests/bitcodeBrowserAccessibilityResponsiveProof.test.ts \ |
| 120 | + tests/pipelineExecutionLogHeader.test.tsx \ |
| 121 | + --runInBand |
| 122 | + pnpm --dir uapi exec playwright install chromium --with-deps |
| 123 | + pnpm --dir uapi run test:e2e:terminal-ux |
| 124 | + pnpm --dir uapi run test:e2e:v32-browser-proof |
| 125 | + git diff --check |
| 126 | +
|
| 127 | + - name: Promote V35 canon files |
| 128 | + if: >- |
| 129 | + ${{ |
| 130 | + github.event_name == 'pull_request' && |
| 131 | + github.event.pull_request.head.ref == 'version/v35' |
| 132 | + }} |
| 133 | + env: |
| 134 | + HEAD_BRANCH: ${{ github.event.pull_request.head.ref }} |
| 135 | + run: | |
| 136 | + if [ "$(cat BITCODE_SPEC.txt)" = "V35" ]; then |
| 137 | + echo "BITCODE_SPEC.txt already points to V35." |
| 138 | + exit 0 |
| 139 | + fi |
| 140 | + PROOF_SOURCE_COMMIT="$(git rev-parse HEAD)" |
| 141 | + npm run promote:canon -- --version V35 --commit "$PROOF_SOURCE_COMMIT" |
| 142 | + git config user.name "github-actions[bot]" |
| 143 | + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" |
| 144 | + git add \ |
| 145 | + BITCODE_SPEC.txt \ |
| 146 | + BITCODE_SPEC_V35.md \ |
| 147 | + BITCODE_SPEC_V35_DELTA.md \ |
| 148 | + BITCODE_SPEC_V35_NOTES.md \ |
| 149 | + BITCODE_SPEC_V35_PARITY_MATRIX.md \ |
| 150 | + BITCODE_SPEC_V35_PROVEN.md \ |
| 151 | + protocol-demonstration/src/canon-posture.js \ |
| 152 | + protocol-demonstration/README.md \ |
| 153 | + packages/protocol/src/canon-posture.js \ |
| 154 | + packages/protocol/data/state.json \ |
| 155 | + packages/protocol/README.md \ |
| 156 | + .bitcode |
| 157 | + git commit -m "Promote Bitcode canon to V35" |
| 158 | + git push origin "HEAD:$HEAD_BRANCH" |
0 commit comments