Skip to content

Adjust test for matplotlib version failure#11717

Merged
mhvk merged 1 commit intoastropy:mainfrom
mhvk:test-matplotlib-version
May 10, 2021
Merged

Adjust test for matplotlib version failure#11717
mhvk merged 1 commit intoastropy:mainfrom
mhvk:test-matplotlib-version

Conversation

@mhvk
Copy link
Copy Markdown
Contributor

@mhvk mhvk commented May 8, 2021

Over at #11680, I had some failing tests since a new matplotlib version is out (which avoids an expected failure). Not sure if what I do here is the best.

@mhvk
Copy link
Copy Markdown
Contributor Author

mhvk commented May 8, 2021

Wow, that's bizarre, matplotlib 3.4.2 doesn't xfail, but the development version does.

@pllim
Copy link
Copy Markdown
Member

pllim commented May 10, 2021

Hmm, I see they merged matplotlib/matplotlib#18971 but we still see their dev version as Matplotlib: 3.4.2.post689+gb46e5039d.

@pllim
Copy link
Copy Markdown
Member

pllim commented May 10, 2021

But the more relevant question, do you know which matplotlib PR fixed this dpi issue and are you sure they forward-ported that PR back to master?

@pllim pllim added the testing label May 10, 2021
@pllim
Copy link
Copy Markdown
Member

pllim commented May 10, 2021

p.s. To avoid the bot from wrongly removing the label you assigned, please wait for the Triage job to complete first before you manually apply the labels defined in the bot rules. This is a known issue that has not been fixed by GitHub. Thanks!

@mhvk
Copy link
Copy Markdown
Contributor Author

mhvk commented May 10, 2021

Sorry, no idea about what the matplotlib PR is that fixed things...

@pllim
Copy link
Copy Markdown
Member

pllim commented May 10, 2021

In that case, maybe we should just revisit again in the near future until the forward-port happens. I don't think we can merge this until dev job is green again with this patch. What do you think?

@mhvk
Copy link
Copy Markdown
Contributor Author

mhvk commented May 10, 2021

Yes, makes sense. Though what do we do with tests currently failing with matplotlib 3.4.2?
Eg., https://github.com/astropy/astropy/pull/11720/checks?check_run_id=2547206829

Just skip the test for now?

@pllim
Copy link
Copy Markdown
Member

pllim commented May 10, 2021

tests currently failing with matplotlib 3.4.2?

Hmm... How about we say something like "if matplotlib >= 3.4.1 but !=3.4.2" -- that should work for both jobs? Then we can open a follow-up issue to revisit this logic in the future.

@mhvk mhvk force-pushed the test-matplotlib-version branch from 038637a to ca42a48 Compare May 10, 2021 17:46
@mhvk
Copy link
Copy Markdown
Contributor Author

mhvk commented May 10, 2021

Hmm, looks like I didn't even write the test correctly. It may be simpler than we thought. Pushed to test that...

@pllim
Copy link
Copy Markdown
Member

pllim commented May 10, 2021

RTD failure is unrelated (All Sesame queries failed.). Dev jobs passed! 👏

@mhvk
Copy link
Copy Markdown
Contributor Author

mhvk commented May 10, 2021

OK, so still a bit strange, but I guess in matplotlib dev they are simply still thinking about how to do it... Anyway, will merge this so that the tests elsewhere start passing again!

@mhvk mhvk merged commit 263ba18 into astropy:main May 10, 2021
@mhvk mhvk deleted the test-matplotlib-version branch May 10, 2021 18:42
@pllim
Copy link
Copy Markdown
Member

pllim commented May 10, 2021

Thanks!

eteq pushed a commit that referenced this pull request Jun 11, 2021
Adjust test for matplotlib version failure
@astrofrog astrofrog modified the milestones: v4.3, v4.0.6 Aug 17, 2021
astrofrog pushed a commit that referenced this pull request Aug 17, 2021
Adjust test for matplotlib version failure
astrofrog pushed a commit that referenced this pull request Aug 17, 2021
Adjust test for matplotlib version failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants