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

Detailed diff in cross tests #2366

Merged
merged 11 commits into from
Sep 17, 2024

Conversation

VenelinMartinov
Copy link
Contributor

@VenelinMartinov VenelinMartinov commented Aug 27, 2024

This exposes the detailed diff in the cross-test interface for both TF and Pulumi allowing us to write tests which assert on that.

Also adds a cross-test for #1696 for the existing TestChangingMaxItems1FilterProperty. This is one of the cases where the detailed diff is load-bearing for the diff decision. The cross test verifies that TF also finds a diff here, so our core diff algorithm must be making the wrong decision.

Related to #2293

@VenelinMartinov VenelinMartinov changed the base branch from master to vvm/expand_diff_cross_tests August 27, 2024 13:11
Copy link

codecov bot commented Aug 27, 2024

Codecov Report

Attention: Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.

Project coverage is 57.65%. Comparing base (16dec78) to head (e224aac).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
pkg/tests/cross-tests/diff_check.go 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2366      +/-   ##
==========================================
- Coverage   57.66%   57.65%   -0.01%     
==========================================
  Files         369      369              
  Lines       50148    50148              
==========================================
- Hits        28918    28914       -4     
- Misses      19650    19654       +4     
  Partials     1580     1580              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Base automatically changed from vvm/expand_diff_cross_tests to master August 28, 2024 09:35
@VenelinMartinov VenelinMartinov marked this pull request as ready for review August 30, 2024 11:59
@VenelinMartinov VenelinMartinov changed the title Detailed diff cross test Detailed diff in cross tests Aug 30, 2024
Copy link
Member

@iwahbe iwahbe left a comment

Choose a reason for hiding this comment

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

LGTM

@VenelinMartinov VenelinMartinov merged commit 4d6cd87 into master Sep 17, 2024
11 checks passed
@VenelinMartinov VenelinMartinov deleted the vvm/collection_only_detailed_diff_cross_test branch September 17, 2024 10:07
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v3.91.0.

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.

3 participants