fix(core): bundle endpoint-inventory addon schema in priv so Elixir releases build (#3425) #3517

Merged
mfreeman451 merged 1 commit from fix/endpoint-inventory-seeder-priv-schema into staging 2026-06-02 09:06:00 +00:00
Owner

fix(core): bundle endpoint-inventory addon schema in priv so Elixir releases build (#3425)

ServiceRadar.Plugins.EndpointInventoryAddonPackageSeeder embedded its config schema
via a compile-time @external_resource File.read! of a repo-root-relative path
(../../../../../addons/endpoint-inventory/config.schema.json). That path is outside
elixir/serviceradar_core, so the bazel mix_release sandbox — which stages only
serviceradar_core/** — cannot see it. This breaks the release build of every Elixir
image that compiles serviceradar_core: serviceradar-core-elx, serviceradar-web-ng, and
serviceradar-agent-gateway. CI invocation 43010645 fails on all three with
File.Error ... addons/endpoint-inventory/config.schema.json: no such file or directory.

Fix: bundle the schema at serviceradar_core/priv/endpoint_inventory/config.schema.json
(staged into the release by the ** glob) and read it from there. The priv copy mirrors
the canonical addons/endpoint-inventory/config.schema.json; follow-up should copy it at
build time to keep a single source of truth.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

fix(core): bundle endpoint-inventory addon schema in priv so Elixir releases build (#3425) ServiceRadar.Plugins.EndpointInventoryAddonPackageSeeder embedded its config schema via a compile-time `@external_resource` `File.read!` of a repo-root-relative path (`../../../../../addons/endpoint-inventory/config.schema.json`). That path is outside `elixir/serviceradar_core`, so the bazel `mix_release` sandbox — which stages only `serviceradar_core/**` — cannot see it. This breaks the release build of every Elixir image that compiles serviceradar_core: serviceradar-core-elx, serviceradar-web-ng, and serviceradar-agent-gateway. CI invocation 43010645 fails on all three with `File.Error ... addons/endpoint-inventory/config.schema.json: no such file or directory`. Fix: bundle the schema at `serviceradar_core/priv/endpoint_inventory/config.schema.json` (staged into the release by the `**` glob) and read it from there. The priv copy mirrors the canonical `addons/endpoint-inventory/config.schema.json`; follow-up should copy it at build time to keep a single source of truth. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
fix(core): bundle endpoint-inventory addon schema in priv so Elixir releases build (#3425)
Some checks failed
Secret Scan / gitleaks (pull_request) Successful in 35s
Golang Tests / test-go (push) Successful in 1m27s
lint / lint (push) Successful in 1m33s
lint / lint (pull_request) Successful in 1m52s
Elixir Quality / Elixir Quality (pull_request) Failing after 12m42s
CI / build (pull_request) Failing after 28m13s
5f71787a94
ServiceRadar.Plugins.EndpointInventoryAddonPackageSeeder embedded its config schema
via a compile-time `@external_resource` `File.read!` of a repo-root-relative path
(`../../../../../addons/endpoint-inventory/config.schema.json`). That path is outside
`elixir/serviceradar_core`, so the bazel `mix_release` sandbox — which stages only
`serviceradar_core/**` — cannot see it. This breaks the release build of every Elixir
image that compiles serviceradar_core: serviceradar-core-elx, serviceradar-web-ng, and
serviceradar-agent-gateway. CI invocation 43010645 fails on all three with
`File.Error ... addons/endpoint-inventory/config.schema.json: no such file or directory`.

Fix: bundle the schema at `serviceradar_core/priv/endpoint_inventory/config.schema.json`
(staged into the release by the `**` glob) and read it from there. The priv copy mirrors
the canonical `addons/endpoint-inventory/config.schema.json`; follow-up should copy it at
build time to keep a single source of truth.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
mfreeman451 left a comment

lgtm

lgtm
mfreeman451 deleted branch fix/endpoint-inventory-seeder-priv-schema 2026-06-02 09:06:00 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
carverauto/serviceradar!3517
No description provided.