|
93 | 93 | frozen_target: ${{ steps.manifest.outputs.frozen_target }} |
94 | 94 | run_qa_smoke_ci: ${{ steps.manifest.outputs.run_qa_smoke_ci }} |
95 | 95 | run_prompt_snapshots: ${{ steps.manifest.outputs.run_prompt_snapshots }} |
| 96 | + run_sqlite_session_lifecycle: ${{ steps.manifest.outputs.run_sqlite_session_lifecycle }} |
96 | 97 | checks_fast_core_matrix: ${{ steps.manifest.outputs.checks_fast_core_matrix }} |
97 | 98 | run_plugin_contracts_shards: ${{ steps.manifest.outputs.run_plugin_contracts_shards }} |
98 | 99 | plugin_contracts_matrix: ${{ steps.manifest.outputs.plugin_contracts_matrix }} |
@@ -681,7 +682,20 @@ jobs: |
681 | 682 | eventName !== "pull_request" || |
682 | 683 | typeof changedNodeTestPlan.hasPromptSnapshotAffectingChange !== "function" || |
683 | 684 | changedNodeTestPlan.hasPromptSnapshotAffectingChange(changedPaths); |
684 | | - const runBuildArtifacts = runNodeFull && changedScopeHasBuildImpact; |
| 685 | + const supportsSqliteSessionLifecycleProof = existsSync( |
| 686 | + "test/scripts/sqlite-sessions-transcripts-flip-proof.built-cli.e2e.test.ts", |
| 687 | + ); |
| 688 | + const changedScopeHasSqliteSessionLifecycleImpact = |
| 689 | + changedPaths === null || |
| 690 | + eventName === "workflow_dispatch" || |
| 691 | + typeof changedNodeTestPlan.hasSqliteSessionLifecycleAffectingChange !== "function" || |
| 692 | + changedNodeTestPlan.hasSqliteSessionLifecycleAffectingChange(changedPaths); |
| 693 | + const runSqliteSessionLifecycle = |
| 694 | + runNodeFull && |
| 695 | + supportsSqliteSessionLifecycleProof && |
| 696 | + changedScopeHasSqliteSessionLifecycleImpact; |
| 697 | + const runBuildArtifacts = |
| 698 | + runNodeFull && (changedScopeHasBuildImpact || runSqliteSessionLifecycle); |
685 | 699 | const runQaSmokeCi = |
686 | 700 | runNodeFull && |
687 | 701 | changedScopeHasQaImpact && |
@@ -752,6 +766,7 @@ jobs: |
752 | 766 | compatibility_target: compatibilityTarget, |
753 | 767 | run_qa_smoke_ci: runQaSmokeCi, |
754 | 768 | run_prompt_snapshots: runNodeFull && changedScopeHasPromptSnapshotImpact, |
| 769 | + run_sqlite_session_lifecycle: runSqliteSessionLifecycle, |
755 | 770 | checks_fast_core_matrix: createMatrix(checksFastCoreTasks), |
756 | 771 | run_plugin_contracts_shards: runPluginContractShards, |
757 | 772 | plugin_contracts_matrix: createMatrix( |
@@ -1437,6 +1452,38 @@ jobs: |
1437 | 1452 | path: .local/gateway-watch-regression/ |
1438 | 1453 | retention-days: 7 |
1439 | 1454 |
|
| 1455 | + sqlite-session-lifecycle: |
| 1456 | + permissions: |
| 1457 | + contents: read |
| 1458 | + name: check-sqlite-session-lifecycle |
| 1459 | + needs: [preflight, build-artifacts] |
| 1460 | + if: ${{ !cancelled() && always() && needs.preflight.outputs.run_sqlite_session_lifecycle == 'true' && needs.build-artifacts.result == 'success' }} |
| 1461 | + runs-on: ${{ github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'blacksmith-8vcpu-ubuntu-2404' || 'ubuntu-24.04') }} |
| 1462 | + timeout-minutes: 20 |
| 1463 | + steps: |
| 1464 | + - *linux_node_checkout_step |
| 1465 | + - name: Setup Node environment |
| 1466 | + uses: ./.github/actions/setup-node-env |
| 1467 | + with: |
| 1468 | + install-bun: "false" |
| 1469 | + sticky-disk: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'true' || 'false' }} |
| 1470 | + use-actions-cache: ${{ github.event_name != 'workflow_dispatch' && github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'false' || 'true' }} |
| 1471 | + |
| 1472 | + - name: Download exact-run built runtime |
| 1473 | + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 |
| 1474 | + with: |
| 1475 | + name: dist-runtime-build |
| 1476 | + path: .artifacts/dist-runtime-build |
| 1477 | + |
| 1478 | + - name: Extract built runtime |
| 1479 | + run: tar --extract --file .artifacts/dist-runtime-build/dist-runtime-build.tar.zst --use-compress-program unzstd |
| 1480 | + |
| 1481 | + - name: Verify SQLite session lifecycle |
| 1482 | + env: |
| 1483 | + OPENCLAW_E2E_USE_PREBUILT_DIST: "1" |
| 1484 | + OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS: "660000" |
| 1485 | + run: node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts test/scripts/sqlite-sessions-transcripts-flip-proof.built-cli.e2e.test.ts |
| 1486 | + |
1440 | 1487 | native-i18n: |
1441 | 1488 | permissions: |
1442 | 1489 | contents: read |
@@ -2545,9 +2592,6 @@ jobs: |
2545 | 2592 | - check_name: check-plugin-sdk-api-baseline |
2546 | 2593 | group: plugin-sdk-api-baseline |
2547 | 2594 | runner: blacksmith-4vcpu-ubuntu-2404 |
2548 | | - - check_name: check-sqlite-session-flip-proof |
2549 | | - group: sqlite-session-flip-proof |
2550 | | - runner: blacksmith-8vcpu-ubuntu-2404 |
2551 | 2595 | - check_name: check-additional-extension-package-boundary |
2552 | 2596 | group: extension-package-boundary |
2553 | 2597 | # Light-run critical-path pole: cold runs spend ~100s in nine |
@@ -2774,15 +2818,6 @@ jobs: |
2774 | 2818 | plugin-sdk-api-baseline) |
2775 | 2819 | run_check "plugin-sdk:api:check" pnpm run plugin-sdk:api:check |
2776 | 2820 | ;; |
2777 | | - sqlite-session-flip-proof) |
2778 | | - if [ ! -f test/scripts/sqlite-sessions-transcripts-flip-proof.e2e.test.ts ]; then |
2779 | | - echo "[skip] SQLite sessions/transcripts flip proof is not present in this checkout" |
2780 | | - else |
2781 | | - # This lane owns a 420-second E2E case plus cold hosted-runner setup; |
2782 | | - # keep the global watchdog strict and scope compatibility headroom here. |
2783 | | - run_check "sqlite sessions/transcripts flip proof" env OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS=660000 node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts test/scripts/sqlite-sessions-transcripts-flip-proof.e2e.test.ts |
2784 | | - fi |
2785 | | - ;; |
2786 | 2821 | extension-package-boundary) |
2787 | 2822 | run_check "test:extensions:package-boundary:compile" pnpm run test:extensions:package-boundary:compile |
2788 | 2823 | run_check "test:extensions:package-boundary:canary" pnpm run test:extensions:package-boundary:canary |
@@ -3751,6 +3786,7 @@ jobs: |
3751 | 3786 | - security-fast |
3752 | 3787 | - pnpm-store-warmup |
3753 | 3788 | - build-artifacts |
| 3789 | + - sqlite-session-lifecycle |
3754 | 3790 | - native-i18n |
3755 | 3791 | - checks-ui |
3756 | 3792 | - checks-ui-e2e |
@@ -3784,6 +3820,7 @@ jobs: |
3784 | 3820 | SELECTED_RESULTS: | |
3785 | 3821 | pnpm-store-warmup=${{ needs.pnpm-store-warmup.result }} |
3786 | 3822 | build-artifacts=${{ needs.build-artifacts.result }} |
| 3823 | + sqlite-session-lifecycle=${{ needs.sqlite-session-lifecycle.result }} |
3787 | 3824 | native-i18n=${{ needs.native-i18n.result }} |
3788 | 3825 | checks-ui=${{ needs.checks-ui.result }} |
3789 | 3826 | checks-ui-e2e=${{ needs.checks-ui-e2e.result }} |
|
0 commit comments