Repository navigation
Fix config-remote-sync writes through scalar YAML parents - #7323
Draft
ilyakuz-db wants to merge 4 commits into
Draft
ilyakuz-db wants to merge 4 commits into
ilyakuz-db wants to merge 4 commits into
Conversation
Contributor
|
Commit: Regression test reportSelected 2 changed tests (limit=20, 0 not selected) 4 tests: regression=4 unreleased=0 coverage=0 failing=0
TestAccept/bundle/config-remote-sync/null_parent/DMS=: branch ✅ | main (44f2eda) ❌ | latest (v1.23.0) ❌main (44f2eda): latest (v1.23.0): same output as main (44f2eda) TestAccept/bundle/config-remote-sync/null_parent/DMS=true: branch ✅ | main (44f2eda) ❌ | latest (v1.23.0) ❌main (44f2eda): latest (v1.23.0): TestAccept/bundle/config-remote-sync/variable_reference_parent/DMS=: branch ✅ | main (44f2eda) ❌ | latest (v1.23.0) ❌main (44f2eda): latest (v1.23.0): same output as main (44f2eda) TestAccept/bundle/config-remote-sync/variable_reference_parent/DMS=true: branch ✅ | main (44f2eda) ❌ | latest (v1.23.0) ❌main (44f2eda): latest (v1.23.0): |
Collaborator
Integration test reportCommit: 4820d19
Top 4 slowest tests (at least 2 minutes):
|
This branch has not been deployed
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.
Changes
Handle null YAML ancestors when
bundle config-remote-sync --saveadds nested fields, and skip changes beneath variable references at any ancestor depth. Preserve unrelated edits, skip reporting, and comments on implicit nulls, explicitnull, and~.Variable-reference decisions stay in resolve. Null materialization uses
yaml.Nodein patch, where each edit sees earlier edits to the file. The retry converts only actual nulls, refuses anchors and aliases, and rejects sequence creation that would require inventing preceding elements. No newdyndependency is introduced.Why
Sync could fail with
scalar can not be a containerwhen an addition traversed a null YAML node or a variable reference above the immediate parent. Applying multiple additions beneath the same null must preserve all of them.Tests
git diff --checkpass. Focused unit coverage checks scalar/anchor/sequence guards and root/sequence-item comments.go.modandgo.sumare unchanged. The exact v3.0.6 pin, full CLI suite, and real-workspace execution remain untested.This PR was written by Codex.