Skip to content

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

Done

Description

@yongruilin

ax-server reaches every actor through the router, and reads the router's address from the ATENET_ROUTER_ADDR environment variable inside internal/controller, on every request. Its other Substrate settings are flags (--substrate-endpoint, --substrate-authority).

Why change it:

  • The variable has no default. When it is unset, a resume succeeds without pushing the task to the runner. A flag with a default, as
    --substrate-endpoint has, removes that case.
  • It is process-wide state, so every test that needs a router sets it with t.Setenv.
  • More control-plane traffic will go through the router over time (e.g. Long-running, goal-based tasks with steering (TaskService) #692), so the URL should be configured explicitly in one place.

Proposal: add --router-url to ax-server (default https://atenet-router.ate-system.svc.cluster.local:443), pass it from cmd/ax-server/main.go to the controller, and set it under args in deploy/ax-server.yaml and test/e2e/manifests/ax-server.yaml. ax-server stops reading ATENET_ROUTER_ADDR; ax ssh keeps reading it.

Activity

  1. added this to the v0.4.0 milestone on Nov 23, 2026
  2. added a commit that references this issue on Nov 24, 2026
    d2e8a08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions