Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

ci(native): classify heartbeat-finalize's smoke-scope condition for event parity, and teach the native-lock distribution test the non-matrix watcher job

garrytand3ffcf55d1d6
diff --git a/.github/workflows/native-locks.yml b/.github/workflows/native-locks.yml
index 05daab818e..94501ba3a0 100644
--- a/.github/workflows/native-locks.yml
+++ b/.github/workflows/native-locks.yml
@@ -206,6 +206,8 @@ jobs:
# post timed out), so its diag/native-heartbeat/<cell> status stays pending on a job that passed. This Linux job runs
# after every cell and posts success, naming the cell's real conclusion and last heartbeat, on any cell context still
# pending (scripts/native/heartbeat-finalize.ts). Nothing on a fork's pull request, whose token cannot write.
+ # Named exception: PR scope reduction, covered by scope=full runs (docs/TESTING.md#event-parity); scope=smoke runs
+ # no darwin-x64 cell, so there is nothing to finalize.
heartbeat-finalize:
name: darwin-x64 heartbeat finalize
needs: [native]
diff --git a/test/scripts/native-lock-prebuilds.test.ts b/test/scripts/native-lock-prebuilds.test.ts
index dea5c64a3e..4498bf5386 100644
--- a/test/scripts/native-lock-prebuilds.test.ts
+++ b/test/scripts/native-lock-prebuilds.test.ts
@@ -80,6 +80,10 @@ describe('native lock distribution integrity', () => {
expect(job.steps.some(step => step.run?.includes('test/openclaw-context-engine-native.serial.test.ts'))).toBe(true);
continue;
}
+ if (name === 'heartbeat-finalize') {
+ expect(job.steps.some(step => step.run === 'bun scripts/native/heartbeat-finalize.ts')).toBe(true);
+ continue;
+ }
if (name === 'windows-backup-console') {
expect(job.steps.some(step => step.run?.includes('Windows backup console controls:'))).toBe(true);
expect(job.steps.some(step => step.run === 'bun scripts/native/verify.ts')).toBe(true);