Repository navigation
runner, substrate, e2e: address review follow-ups from #620–#622 - #624
Merged
Merged
Conversation
Follow up on the non-blocking review comments from #620, #621 and #622: - Only record `<workspace>/.ax/launcher-done` when the launcher exits with status 0, so a failed launcher run is retried when the sandbox is resumed. - Fall back to `<os.TempDir>/ax-run` when `Config.RunDir` is empty and `/run/ax` cannot be created (for example when a container image sets a non-root `USER`). - Start the task command or launcher (or skip it via `launcher-done`) before marking `/readyz?check=workspace` ready, so callers waiting on `ax resume` never race the start of a launcher run. - Reuse `${REGISTRY_ADDR}/ax-task-runner:base` (with `/usr/local/bin/ax-task-runner` removed) for `ax-e2e-launcher:e2e` so `hack/setup-e2e-kind.sh` avoids an extra Docker Hub pull. - Document on `substrate.MountRunnerVolume` that enabling `--runner-volume-image` sets the container command on all AX-managed templates, leaves user-managed `ate_actor_template` references untouched, and still expects `/bin/sh` and `git` in pure images when workspace setup (`spec.setup`) runs. Part of #493.
mayawang
approved these changes
Nov 17, 2026
mayawang
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for picking these up, LGTM. Non-blocking: the TempDir fallback (/tmp/ax-run) is a shared, predictable path; since it only applies to non-root images it's low risk, but MkdirTemp would avoid any pre-created dir games.
aprajitaarora13
added a commit
that referenced
this pull request
Nov 18, 2026
Follow up on the non-blocking review comment on #624: - Use `os.MkdirTemp("", "ax-run-*")` instead of a shared, predictable `/tmp/ax-run` path when `Config.RunDir` is empty and `/run/ax` is not writable by a non-root container user. - Pass `a.cfg.RunDir` directly in `runner/pull.go` so pull-mode tasks get the same non-root fallback. - Update `TestRun_FallsBackWhenDefaultRunDirUnwritable` to isolate `TMPDIR` and verify a unique `ax-run-*` directory is created. Part of #493.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses the non-blocking review comments from #620, #621, and #622:
<workspace>/.ax/launcher-donewhen the launcher exits with status0(err == nil), so a failed launcher run is retried when the sandbox is resumed.USERfallback (runner: hand the task to the image's launcher as files #621): WhenConfig.RunDiris empty and/run/axcannot be created (for example when a container image runs as a non-root user), fall back to<os.TempDir>/ax-run./readyz?check=workspace(test/e2e: run a pure image with a launcher on the mounted runner #622): Start the task command or launcher (or skip it vialauncher-done) before flippingSetWorkspaceReady(true), so callers waiting onax resumenever race the start of a launcher run.ax-e2e-launcher:e2efrom${REGISTRY_ADDR}/ax-task-runner:base(with/usr/local/bin/ax-task-runnerremoved) rather than pullingpython:3.12-slima second time.--runner-volume-imageconstraints (controller, substrate: mount the runner from a read-only image volume #620): Document onsubstrate.MountRunnerVolumethat enabling--runner-volume-imageoverrides the container command on all AX-managed templates (so images using a custom runner binary likeDockerfile.claude-codemust migrate to/usr/local/bin/ax-harnessfirst), leaves user-managedate_actor_templatereferences untouched, and still expects/bin/shandgitin pure images when workspace setup (spec.setup) runs.Part of #493.