Skip to content

test(kdl): correct fork_serde expectations (#17134 fix-forward) - #17139

Merged
dezren39 merged 1 commit into
mainfrom
xaltha/0212k-17134-fixforward
Nov 30, 2026
Merged

dezren39 merged 1 commit into
mainfrom
xaltha/0212k-17134-fixforward

Conversation

@dezren39

@dezren39 dezren39 commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Fix-forward for #17134 (PR #17137, merged 2026-11-30T09:25:51Z).

Post-merge verification (fleet-command run 46389939173, log read firsthand) ran cargo test --test fork_serde at the merged head: 5 passed, 3 failed. The three failures were defects in the new tests' expectations, not in the se.rs implementation — the rendered output in the log shows every annotation emitted correctly:

  • serializing_reserved_fields_emits_annotations: expected the quoted form label=(value-a)(value-b)"text"; the serializer renders a string that is a valid bare identifier unquoted (...text). Fragment corrected.
  • annotation_round_trip_is_a_fixed_point: failed only on re-parse of the rendered document — the children annotations abutted the last entry (text(children-a)...{), because a freshly built node carries an empty before_children. That rendering defect is already fixed on main (node.rs stringify now writes the separating space when before_children is empty and children annotations exist); with it, the round trip parses.
  • triple_shaped_document_survives_a_serde_round_trip: the issue's literal example (object)(predicate#knows)triple ... is not parseable by the fork's v2 grammar — a # cannot appear in a bare identifier (parser error at offset 9, "not identifier string"). The same subject/predicate shape is now exercised with plain identifiers, with the reason recorded in the test.

No production code changes in this PR. Lane 0212-K (xaltha), fixing forward its own merged work per Drew's rule.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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 21 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e8ae7bac-4a65-46c3-945b-1a8a7fbb3ae1
Commits

Reviewing files that changed from the base of the PR and between 05ddf3d and 76f7e33.

Files selected for processing: 1

  • pkgs/id/vendor/kdl/tests/fork_serde.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@dezren39
dezren39 merged commit b131175 into main Nov 30, 2026
2 checks passed
@dezren39
dezren39 deleted the xaltha/0212k-17134-fixforward branch November 30, 2026 09:37
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.

1 participant