E2E teardown safety net broken #2914

Closed
opened 2026-06-15 06:02:31 +00:00 by gitea-actions · 1 comment

The weekly sanity run (E2E_INTENTIONAL_FAILURE=1) did not exit as expected. This means one of:

  • poisoning did not actually cause failure (test harness regression), OR
  • teardown left an orphan org (leak detection caught a real bug)

Run: https://git.moleculesai.app/molecule-ai/molecule-core/actions/runs/368865

This is higher priority than a canary failure — the whole E2E safety net cannot be trusted until this is resolved.

The weekly sanity run (E2E_INTENTIONAL_FAILURE=1) did not exit as expected. This means one of: - poisoning did not actually cause failure (test harness regression), OR - teardown left an orphan org (leak detection caught a real bug) Run: https://git.moleculesai.app/molecule-ai/molecule-core/actions/runs/368865 This is higher priority than a canary failure — the whole E2E safety net cannot be trusted until this is resolved.
Member

Investigated run 368865 / job 505463. The failure is NOT a harness regression or a teardown leak — the job exits with rc=2 because the admin token is rejected by staging CP (401 invalid admin auth token) before the harness can provision the org.

Root cause: secrets.CP_STAGING_ADMIN_API_TOKEN is either unset or stale in the org secret store. The workflow correctly detects an empty value and fails early; when the value is present-but-invalid, the workspace create call returns 401.

This is an operator/secret-rotation issue, not a code change. Once the secret is restored, the sanity run should resume its normal failure modes (rc=1 clean-failure or rc=4 leak).

Investigated run 368865 / job 505463. The failure is NOT a harness regression or a teardown leak — the job exits with rc=2 because the admin token is rejected by staging CP (`401 invalid admin auth token`) before the harness can provision the org. Root cause: `secrets.CP_STAGING_ADMIN_API_TOKEN` is either unset or stale in the org secret store. The workflow correctly detects an empty value and fails early; when the value is present-but-invalid, the workspace create call returns 401. This is an operator/secret-rotation issue, not a code change. Once the secret is restored, the sanity run should resume its normal failure modes (rc=1 clean-failure or rc=4 leak).
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#2914