Skip to content

Apply deviations in two passes to fix non-deterministic errors#308

Open
sengleung wants to merge 1 commit into
openconfig:masterfrom
sengleung:fix-nondeterministic-deviations
Open

Apply deviations in two passes to fix non-deterministic errors#308
sengleung wants to merge 1 commit into
openconfig:masterfrom
sengleung:fix-nondeterministic-deviations

Conversation

@sengleung

Copy link
Copy Markdown
Contributor

Deviations are applied in two passes so that not-supported deviations do not delete nodes before add/replace/delete deviations are applied. Without this, non-deterministic errors depend on map iteration order.

The new test added not-supported and replace targeting the same node fails non-deterministically without this change.

Fixes #307.

Deviations are applied in two passes so that not-supported deviations
do not delete nodes before add/replace/delete deviations are applied.
Without this, non-deterministic errors depend on map iteration order.
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.

Modules.Process() may return non-deterministic errors from not-supported deviations

1 participant