Skip to content

Conversation

@LNSD
Copy link
Contributor

@LNSD LNSD commented Feb 4, 2026

Centralize build metadata in service crates so controller/worker startup and tests pass build info explicitly without config coupling.

  • Add admin_api::build_info::BuildInfo and re-export it from controller service crate
  • Introduce worker::build_info::BuildInfo with serde/db conversions and remove worker_info from worker::config::Config
  • Thread BuildInfo into worker/controller startup with Into<BuildInfo> conversions
  • Add test build script and tests::testlib::build_info using vergen metadata

@LNSD LNSD requested review from Theodus and shiyasmohd February 4, 2026 17:33
@LNSD LNSD self-assigned this Feb 4, 2026
Centralize build metadata in service crates so controller/worker startup and tests pass build info explicitly without config coupling.

- Add admin_api::build_info::BuildInfo and re-export it from controller

- Introduce worker::build_info::BuildInfo with serde/db conversions and remove worker_info from worker::config::Config

- Thread BuildInfo into worker/controller startup with Into<BuildInfo> conversions

- Add test build script and tests::testlib::build_info using vergen metadata

Signed-off-by: Lorenzo Delgado <lorenzo@edgeandnode.com>
@LNSD LNSD requested a review from leoyvens February 4, 2026 17:36
@LNSD
Copy link
Contributor Author

LNSD commented Feb 4, 2026

Here’s the reverse dependency tree (crates that depend on it) after the PR:

  amp-config v0.1.0 (/home/lorenzo/code/work/amp/amp/crates/config)
  ├── ampd v0.1.0 (/home/lorenzo/code/work/amp/amp/crates/bin/ampd)
  └── tests v0.1.0 (/home/lorenzo/code/work/amp/amp/tests)

@LNSD LNSD force-pushed the lnsd/refactor-config-build-info-break-dep branch from 6f267cc to a3d10d6 Compare February 4, 2026 17:38
Copy link
Member

@Theodus Theodus left a comment

Choose a reason for hiding this comment

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

LGTM

@LNSD LNSD merged commit 5daf7bb into main Feb 4, 2026
8 checks passed
@LNSD LNSD deleted the lnsd/refactor-config-build-info-break-dep branch February 4, 2026 19:19
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