Skip to content

e2e,ci: keep a failed run's namespaces and dump their worker logs - #654

Merged
Lior Lieberman (LiorLieberman) merged 1 commit into
agent-substrate:mainfrom
BenTheElder:e2e-keep-failed-namespaces
Jul 31, 2026
Merged

Lior Lieberman (LiorLieberman) merged 1 commit into
agent-substrate:mainfrom
BenTheElder:e2e-keep-failed-namespaces

Conversation

@BenTheElder

Copy link
Copy Markdown
Collaborator

When an e2e test failed, the evidence was deleted before anyone could read it. The suite deleted every namespace it created on the way out, taking the worker pods with it, and the workflow's post-failure dump only looked at three fixed namespaces — never the suites' randomly-named ones. So a failure inside an actor (#619: a micro-VM resume where the guest died at boot) left nothing behind but the RPC error the test printed.

Keep the namespaces when the suite failed, and dump every worker pod in every namespace, so the ateom logs — which carry the guest's console tail — reach the failed run's output.

Kept namespaces are nobody's to reclaim, and each holds a WorkerPool's worth of running pods, so they now carry an ate.dev/e2e label and hack/cleanup-e2e.sh deletes them once the logs have served their purpose. CI throws its cluster away, but a development cluster accumulates them run after run.

Fixes #<issue_number_goes_here>

Built while debugging #619

It's a good idea to open an issue first for discussion.

  • Tests pass
  • Appropriate changes to documentation are included in the PR

@bowei
Bowei Du (bowei) self-requested a review July 30, 2026 23:52
@bowei Bowei Du (bowei) self-assigned this Jul 30, 2026
@BenTheElder

Copy link
Copy Markdown
Collaborator Author

ugh, we have to fix some existing issues with new restrictions on the actions first

@BenTheElder

Copy link
Copy Markdown
Collaborator Author

#657

@LiorLieberman

Copy link
Copy Markdown
Collaborator

rebase?

When an e2e test failed, the evidence was deleted before anyone could read
it. The suite deleted every namespace it created on the way out, taking the
worker pods with it, and the workflow's post-failure dump only looked at
three fixed namespaces — never the suites' randomly-named ones. So a failure
inside an actor (agent-substrate#619: a micro-VM resume where the guest died at boot) left
nothing behind but the RPC error the test printed.

Keep the namespaces when the suite failed, and dump every worker pod in
every namespace, so the ateom logs — which carry the guest's console tail —
reach the failed run's output.

Kept namespaces are nobody's to reclaim, and each holds a WorkerPool's worth
of running pods, so they now carry an ate.dev/e2e label and hack/cleanup-e2e.sh
deletes them once the logs have served their purpose. CI throws its cluster
away, but a development cluster accumulates them run after run.
@LiorLieberman
Lior Lieberman (LiorLieberman) merged commit e4844d0 into agent-substrate:main Jul 31, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants