Skip to content

fix: don't merge into the added layers when rendering the Harness plan - #2896

Open
aozmekik wants to merge 1 commit into
canonical:mainfrom
aozmekik:harness-render-copies
Open

aozmekik wants to merge 1 commit into
canonical:mainfrom
aozmekik:harness-render-copies

Conversation

@aozmekik

Copy link
Copy Markdown

Fixes #2894 (the repeated lists part).

_render_services, _render_checks and _render_log_targets stored the first layer's object and merged later layers into it, so each render appended merged lists again. This copies the object first, as the ops.testing container already does.

test_add_layer_merge_keeps_layers_unchanged fails on main (['a', 'b', 'b'] != ['a', 'b']) and passes here; tox -e lint and tox -e unit pass.

This branch has not been deployed

No deployments
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.

Harness plan doesn't match Pebble's when merging layers: repeated list entries and a lost check level

1 participant