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

Suppress classes causing test failures #1724

Merged
merged 4 commits into from
Aug 17, 2021

Conversation

theunrepentantgeek
Copy link
Member

What this PR does / why we need it:

A very small number of ARM State classes representing OneOf conditions can't currently round trip as they override marshaling to JSON without overriding marshaling from JSON (See #1721 #1722)

We want to revisit these and fix things up as a part of implementing diff'ing (#1366), so I took a very simple approach to suppressing the test failures.

Also included, some improvements to the way the output of property tests is formatted (the default uses a 75 column wordwrap which is a bit narrow for our use).

How does this PR make you feel:
gif

@codecov-commenter
Copy link

codecov-commenter commented Aug 17, 2021

Codecov Report

Merging #1724 (d9a2a5c) into master (1def7c5) will increase coverage by 0.02%.
The diff coverage is 86.95%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1724      +/-   ##
==========================================
+ Coverage   71.06%   71.09%   +0.02%     
==========================================
  Files         226      226              
  Lines       16016    16036      +20     
==========================================
+ Hits        11381    11400      +19     
- Misses       3810     3811       +1     
  Partials      825      825              
Impacted Files Coverage Δ
.../codegen/pipeline/json_serialization_test_cases.go 77.27% <76.92%> (-0.86%) ⬇️
...ator/pkg/testcases/json_serialization_test_case.go 70.99% <100.00%> (+0.60%) ⬆️
hack/generated/pkg/genruntime/resolver.go 86.56% <0.00%> (+2.98%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1def7c5...d9a2a5c. Read the comment docs.

return false
}

// Check for types that we need to suppress - these are ARM types that don't currently round trip because they're
Copy link
Member

Choose a reason for hiding this comment

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

Might make sense to put this comment by the specific classes suppressions, and not here in the generic suppression handling?

Copy link
Member

Choose a reason for hiding this comment

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

In case there are other reasons for suppression that aren't due to OneOf

@theunrepentantgeek theunrepentantgeek merged commit 6652fb1 into master Aug 17, 2021
@theunrepentantgeek theunrepentantgeek deleted the fix/test-case-failures branch August 17, 2021 22:37
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.

4 participants