Skip to content

Conversation

@dcamron
Copy link
Member

@dcamron dcamron commented Sep 21, 2022

These tolerance bumps allow tests to pass in an osx-arm64 environment with testing Matplotlib. Some of the artifacts do seem non-spurious, notably across some contours and barbs. A shallow debug dive into Matplotlib's quiver/barb Python code didn't yield any immediate value differences in paths, lengths, etc. Here is probably the worst offender, in test_nws_layout; notice the edge of the farthest line on the barb:

baseline
result

We should hopefully aim to see this resolved and trim these tolerances again in the future.

With matplotlib/matplotlib#23852 and
conda-forge/matplotlib-feedstock#329, we can now run image tests on
osx-arm64 platforms with a testing install of Matplotlib. There are
some artifacts across architecture. Burying these in test tolerance
allows tests to pass in a fully osx-arm64 environment. Ideally to be
reduced in the future.
@dcamron dcamron added Type: Maintenance Updates and clean ups (but not wrong) Area: Tests Affects tests Area: Plots Pertains to producing plots labels Sep 21, 2022
@dcamron dcamron added this to the September 2022 milestone Sep 21, 2022
@dcamron dcamron requested review from a team and kgoebber as code owners September 21, 2022 16:56
@dcamron dcamron requested review from dopplershift and removed request for a team September 21, 2022 16:56
Copy link
Collaborator

@kgoebber kgoebber left a comment

Choose a reason for hiding this comment

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

Looks good. Reasonable bumps for images tests to accommodate osx-arm64.

@dcamron
Copy link
Member Author

dcamron commented Sep 21, 2022

Looks good. Reasonable bumps for images tests to accommodate osx-arm64.

Before we get this in, could you @kgoebber check this out and make sure these pass locally on your machine as well?

Copy link
Member

@dopplershift dopplershift left a comment

Choose a reason for hiding this comment

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

I don't love doing this, because it makes no damned sense that the images change this much just due to changing architecture. But I don't see a reasonable alternative (we are NOT going down the route of setting architecture-dependent thresholds).

Would appreciate a confirmation from @kgoebber that this works on his system so we can completely put M1 testing issues to bed.

@kgoebber
Copy link
Collaborator

kgoebber commented Sep 22, 2022

I can confirm all tests pass for the three changed files on osx-arm64 architecture.

@dcamron dcamron merged commit acf42bc into Unidata:main Sep 22, 2022
@dcamron dcamron deleted the osx-arm64-tests branch September 22, 2022 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Plots Pertains to producing plots Area: Tests Affects tests Type: Maintenance Updates and clean ups (but not wrong)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants