Skip to content

Normalize discovery addresses with an empty fragment - #122

Merged
j0sh merged 1 commit into
mainfrom
ja-codex/normalize-discovery-address-fragment
Dec 5, 2026
Merged

j0sh merged 1 commit into
mainfrom
ja-codex/normalize-discovery-address-fragment

Conversation

@j0sh

@j0sh j0sh commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

Strip a trailing # after validating an inventory address. This keeps runners from inventories with an empty fragment and emits addresses that pass the discovery schema.

Testing

  • Ran the discovery schema, inventory validation, and runner validation tests.
  • The regression test verifies that the forwarded address keeps %23 and drops the empty fragment delimiter.

Copilot AI balanced review requested due to automatic review settings December 5, 2026 08:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain for the inventory address normalization change.

No open issues 🎉

What changed in this PR

Normalizes validated inventory addresses so empty fragments do not prevent discovery schema compliance.

Changes:

  • Removes a trailing # from accepted addresses.
  • Adds regression coverage confirming %23 is preserved and normalized output passes schema validation.
File Description
discovery/​shared/​inventory.go Strips the trailing empty-fragment delimiter after validation.
discovery/​schema_test.go Tests normalization, encoded-hash preservation, and schema compliance.

Review effort: Balanced

@j0sh
j0sh temporarily deployed to docker-publish December 5, 2026 08:09 — with GitHub Actions Inactive
@j0sh
j0sh temporarily deployed to docker-publish December 5, 2026 08:09 — with GitHub Actions Inactive
@j0sh
j0sh temporarily deployed to docker-publish December 5, 2026 08:09 — with GitHub Actions Inactive
@j0sh
j0sh temporarily deployed to docker-publish December 5, 2026 08:09 — with GitHub Actions Inactive
@j0sh
j0sh merged commit c187232 into main Dec 5, 2026
13 checks passed
@j0sh
j0sh deleted the ja-codex/normalize-discovery-address-fragment branch December 5, 2026 08:43

This branch was previously deployed

1 inactive deployment
docker-publish — 0faece82 Deployed Dec 5, 2026 by j0sh via docker-pr / promote #243
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