Add build version to /__axon/info endpoint#89
Merged
Conversation
shawnburke
reviewed
Mar 12, 2026
| tags: ${{ steps.meta.outputs.tags }} | ||
| labels: ${{ steps.meta.outputs.labels }} | ||
| build-args: | | ||
| BUILD_VERSION=${{ github.ref_name }}-${{ github.sha }} |
Collaborator
There was a problem hiding this comment.
cool will this pick up tags?
agent/server/http/axon_handler.go
Outdated
| Alias string `json:"alias"` | ||
| Handlers []string `json:"handlers"` | ||
| InstanceID string `json:"instance_id"` | ||
| Version string `json:"version"` |
Collaborator
There was a problem hiding this comment.
Maybe name "BuildVersion" for consistency?
Thread the git ref and SHA into the Docker image as AXON_BUILD_VERSION so the relay can report its version at runtime via the /__axon/info endpoint. This lets the Relay Dispatcher know which version each relay is running. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8d6cacc to
6144bcb
Compare
shawnburke
approved these changes
Mar 15, 2026
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.

Summary
versionfield to the/__axon/infoJSON response, read from theAXON_BUILD_VERSIONenv var (defaults to"dev")BUILD_VERSIONbuild arg in the DockerfileBUILD_VERSIONwhen building the imageHow it works
Test plan
/__axon/inforeturns"version": "dev"whenAXON_BUILD_VERSIONis unset/__axon/inforeturns the correct value whenAXON_BUILD_VERSIONis setBUILD_VERSIONcorrectly via--build-arg🤖 Generated with Claude Code