Skip to content

runner, substrate, e2e: address review follow-ups from #620–#622 - #624

Merged
aprajitaarora13 merged 1 commit into
mainfrom
aprajitaarora/prebuilt-5-review-followups
Nov 18, 2026
Merged

aprajitaarora13 merged 1 commit into
mainfrom
aprajitaarora/prebuilt-5-review-followups

Conversation

@aprajitaarora13

Copy link
Copy Markdown
Collaborator

Addresses the non-blocking review comments from #620, #621, and #622:

Part of #493.

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 mayawang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
aprajitaarora13 merged commit 18223db into main Nov 18, 2026
10 checks passed
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.
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.

2 participants