Skip to content

Log the build version when each component starts - #1569

Merged
Jeff Luo (JeffLuoo) merged 1 commit into
agent-substrate:mainfrom
HavenXia:version-startup-log
Sep 10, 2026
Merged

Jeff Luo (JeffLuoo) merged 1 commit into
agent-substrate:mainfrom
HavenXia:version-startup-log

Conversation

@HavenXia

@HavenXia Haven Xia (HavenXia) commented Sep 9, 2026 •

Copy link
Copy Markdown
Member

Emit one " starting" line right after the logger is up, carrying the stamped version.
atecontroller also gains the --version flag it was missing.

  • Tests pass
  • Appropriate changes to documentation are included in the PR

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.

tysm!

Every long-running binary has --version, emit one "<component> starting" line right after the logger is up, carrying the stamped version.

atecontroller also gains the --version flag it was missing.
Comment thread cmd/atecontroller/main.go

ateAPIConnSpec = pflag.String("ateapi-conn-spec", "k8s:///api.ate-system.svc:443", "")

showVersion = pflag.Bool("version", false, "Print version and exit.")

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.

What is the use case of just logging the version and then terminate the controller?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It's the exact same --version flag the other components already have (ateapi, atelet, podcertcontroller .etc). the flag was provided to allow print the version of the component.
Normal startup go through the new slog line below.

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.

ty

@JeffLuoo
Jeff Luo (JeffLuoo) merged commit c3a3f3b into agent-substrate:main Sep 10, 2026
9 checks passed
@HavenXia
Haven Xia (HavenXia) deleted the version-startup-log branch October 28, 2026 16:26
@HavenXia
Haven Xia (HavenXia) restored the version-startup-log branch October 28, 2026 16:27
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.

3 participants