Skip to content

Conversation

@jbardin
Copy link
Member

@jbardin jbardin commented Mar 3, 2025

The filtering of ephemeral marks for the planned value was incorrectly using PathsWithMark, which only reports paths containing a specific mark or not, and can't account for multiple marks on a particular path. Create a marks.RemoveAll function which allows for correct filtering.

Fixes #36603

Target Release

v1.11

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

jbardin added 3 commits March 3, 2025 13:01
RemoveAll filters marks from a set of cty.PathValueMarks, removing all
instances of the remove parameter in all paths. If a path has no
remaining marks, it is removed entirely.
PathsWithMark was incorrectly used to try and filter out ephemeral
marks, but that doesn't work when a path has multiple marks.
PathsWithMark was adding the same path multiple times if it had multiple
extra marks.
@jbardin jbardin added the 1.11-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged label Mar 3, 2025
@jbardin jbardin marked this pull request as ready for review March 3, 2025 19:42
@jbardin jbardin requested a review from a team as a code owner March 3, 2025 19:42
@jbardin jbardin merged commit 60aaaf3 into main Mar 4, 2025
14 of 16 checks passed
@jbardin jbardin deleted the jbardin/filter-ephemeral-marks branch March 4, 2025 12:54
@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2025

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

1.11-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot use variable with both ephemeral=true and sensitive=true - serialization error in state

2 participants