Skip to content

ax-server: take the router URL from --router-url, not ATENET_ROUTER_ADDR - #757

Merged
yongruilin merged 1 commit into
google:mainfrom
yongruilin:ax-aterouter-flag
Nov 24, 2026
Merged

yongruilin merged 1 commit into
google:mainfrom
yongruilin:ax-aterouter-flag

Conversation

@yongruilin

Copy link
Copy Markdown
Collaborator

ax-server now takes the router URL from a --router-url flag and no longer reads ATENET_ROUTER_ADDR; ax ssh still does. Fixes #710.

  • --router-url defaults to https://atenet-router.ate-system.svc.cluster.local:443, and ax-server exits at startup unless the value is an http:// or https:// URL.
  • cmd/ax-server passes the URL to TaskManager.RouterURL and NewHTTPSetupRunner. routerBaseURL, which read the variable and turned a bare host:port into a URL, is gone, and tests set the URL directly instead of with t.Setenv.
  • deploy/ax-server.yaml and test/e2e/manifests/ax-server.yaml pass the flag under args instead of setting the variable. An ax-server image from before this change exits on the unknown flag when started from the new manifest; a new one started from an old manifest uses the default.

Known pre-existing issue: TaskManager.Resume still returns success without pushing the task when the router URL is empty. After this change only tests that resume without a router reach that case.

The flag defaults to the in-cluster router address, and ax-server exits
at startup unless it is an http:// or https:// URL.
@yongruilin
yongruilin merged commit d2e8a08 into google:main Nov 24, 2026
13 checks passed
ghchinoy added a commit to ghchinoy/ax that referenced this pull request Nov 25, 2026
ghchinoy added a commit to ghchinoy/ax that referenced this pull request Nov 25, 2026
ghchinoy added a commit to ghchinoy/ax that referenced this pull request Nov 25, 2026
ghchinoy added a commit to ghchinoy/ax that referenced this pull request Nov 25, 2026
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.

ax-server: take the actor router URL from a flag, not ATENET_ROUTER_ADDR

2 participants