Skip to content

chore(release): v0.21.1 — fix --set-release artifact corruption#601

Merged
avrabe merged 1 commit into
mainfrom
release/v0.21.1
Jun 26, 2026
Merged

chore(release): v0.21.1 — fix --set-release artifact corruption#601
avrabe merged 1 commit into
mainfrom
release/v0.21.1

Conversation

@avrabe

@avrabe avrabe commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Patch release. Fixes a data-corruption P0 in v0.21.0.

The fix (#600, already on main)

rivet modify --set-release inserted the new release: key inside a trailing provenance: block, producing invalid YAML → the artifact vanished on reload. Every AI-stamped artifact has a provenance: block, so the command corrupted most artifacts it touched. The inserter now skips a field's full extent (including nested block-mapping children).

Found by dogfooding the v0.21.0 release field while planning v0.22 — a real --set-release on rivet's own requirements.yaml corrupted it.

Version bumps

  • Cargo.toml/Cargo.lock → 0.21.1
  • vscode-rivet/package.json → 0.21.1
  • CHANGELOG.md [0.21.1]

Regression test set_field_inserts_after_trailing_provenance_block guards it. docs check PASS.

🤖 Generated with Claude Code

Patch for the data-corruption bug in v0.21.0's --set-release: inserting a new
base field before a trailing provenance: block produced invalid YAML, dropping
the artifact on reload. See CHANGELOG.md [0.21.1].

@github-actions github-actions Bot 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.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Rivet Criterion Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: d81b0b9 Previous: f489a91 Ratio
store_lookup/10000 459924 ns/iter (± 10905) 366585 ns/iter (± 1098) 1.25
traceability_matrix/1000 59407 ns/iter (± 682) 45641 ns/iter (± 205) 1.30
query/10000 329282 ns/iter (± 3598) 238638 ns/iter (± 1752) 1.38

This comment was automatically generated by workflow using github-action-benchmark.

@avrabe avrabe merged commit 1e73574 into main Jun 26, 2026
27 checks passed
@avrabe avrabe deleted the release/v0.21.1 branch June 26, 2026 17:50
@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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