Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reusable Diagnostic comparer to tfdiags package #36385

Merged
merged 7 commits into from
Jan 22, 2025
Merged

Conversation

SarahFrench
Copy link
Member

@SarahFrench SarahFrench commented Jan 22, 2025

Follow-up to: #36316 (comment)

This PR moves diagnosticComparer from the s3 backend codebase into the tfdiags package so it can be reused elsewhere.

Any tests that compare diagnostics have been refactored to use this comparison approach.

Related: hashicorp/hcl#517

Target Release

1.12.x

CHANGELOG entry

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

@SarahFrench SarahFrench added the no-changelog-needed Add this to your PR if the change does not require a changelog entry label Jan 22, 2025
@SarahFrench SarahFrench marked this pull request as ready for review January 22, 2025 17:14
@SarahFrench SarahFrench requested review from a team as code owners January 22, 2025 17:14
radeksimko
radeksimko previously approved these changes Jan 22, 2025
Copy link
Member

@radeksimko radeksimko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it could have been a variable instead of a function but that's honestly a nitpick.

Thank you for all the cleanup! Merge at will.

@SarahFrench SarahFrench merged commit b16a509 into main Jan 22, 2025
12 checks passed
@SarahFrench SarahFrench deleted the add-diag-comparer branch January 22, 2025 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog-needed Add this to your PR if the change does not require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants