Repository navigation
fleet-queue: align repo-task-v1 schema kind/repo enums with the validator - #13195
Merged
Merged
Conversation
…ator The published packet schema listed 4 kinds and 8 repos while the validator (canonical) accepts 6 kinds and 9 repos: second_pass and feature_slice carry dedicated payload rules in validate.rs, and dezren39/nix is a deliberate grandfather for pre-rename dedupe keys. Add the missing values to repo-task-v1.schema.json and a lockstep test (schema_enums_match_validator) that fails if they drift again.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 41 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
3 tasks
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.
Fixes #13177.
What
pkgs/fleet/repo-task-v1.schema.jsondisagreed with the queue validator on two enums:kind: schema listed 4; the validator accepts 6 (addssecond_pass,feature_slice).repo: schema listed 8; the validator accepts 9 (adds legacydezren39/nix).Canonical side: the validator
second_passandfeature_sliceare intentional —validate.rscarries dedicated payload rules for both (thereviewobject requirement for second_pass, thesliceobject requirement for feature_slice, plus their dedupe families).dezren39/nixis a deliberate grandfather, documented atFLEET_REPOS: the repo was renamed todezren39/darwin-nix, and in-flight tasks carry dedupe keys with the old name that must keep validating.So the schema is aligned to the validator, not the other way round.
Change
kindenum gainssecond_pass,feature_slice;repoenum gainsdezren39/nix(both in the validator's order).validate::tests::schema_enums_match_validatorreads the schema file and asserts both enums equalKINDS/FLEET_REPOSexactly, so the two cannot drift apart again silently.Verification (laptop, local cargo route)
cargo test -p fleet-queue --features client,queue-broker→ 550 passed / 0 failed (lib) plus integration binaries green, exit 0.cargo fmt --checkon the touched file is clean (the crate has pre-existing fmt drift in unrelated files; untouched).{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-23T10:34:42Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": null, "model": null, "lane_start_issues": [], "workspace_ref": null, "auth_subject": "archer", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.