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

Temporarily expect failures for some grdcontour and grdview tests #503

Merged
merged 1 commit into from
Jul 5, 2020

Conversation

weiji14
Copy link
Member

@weiji14 weiji14 commented Jul 5, 2020

Description of proposed changes

Until GMT 6.1.0 is released and we can update the baseline png images properly, use pytest.mark.xfail to temporarily bypass 13 test failures on grdcontour and grdview. Refer to https://docs.pytest.org/en/stable/skipping.html for pytest documentation on xfail/skipping tests.

This should allow us to merge PRs a bit more confidently by re-enabling the "Required" CI tests that were disabled. Note that the tests will fail when run on GMT master (i.e. GMT 6.1.0), and once we set a hard requirement on GMT 6.1.0 or newer, this workaround can be removed.

Partially addresses #451, see also #498

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If adding new functionality, add an example to docstrings or tutorials.

Until GMT 6.1.0 is released and we can update the baseline png images properly, use pytest.mark.xfail to temporarily bypass 13 test failures on grdcontour and grdview.
@weiji14 weiji14 added the maintenance Boring but important stuff for the core devs label Jul 5, 2020
@weiji14 weiji14 marked this pull request as ready for review July 5, 2020 02:34
@weiji14 weiji14 mentioned this pull request Jul 5, 2020
10 tasks
Copy link
Member

@seisman seisman left a comment

Choose a reason for hiding this comment

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

LGTM.

@weiji14 weiji14 merged commit fccb45c into master Jul 5, 2020
@weiji14 weiji14 deleted the xfail_grd_tests branch July 5, 2020 04:21
weiji14 added a commit that referenced this pull request Sep 9, 2020
Removes the expected failures (xfail) pytest marks
used as a workaround in #503 to deal with grdview failures.

* Refactor test to use new check_figures_equal syntax from #590
* Refactor grdview test to use grdcut instead of load_earth_relief

The xarray based slicing isn't as precise as grdcut,
so some images were a few pixels off when plotted in 3D.

* Rename grid explicitly to xrgrid, and use kwargs to reduce code length
* Set a Transverse Mercator projection for zaxis_frame test

Otherwise GMT (fig_ref) might plot double-lined x and y axis frame,
while PyGMT (fig_test) plots a single-lined frame.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Boring but important stuff for the core devs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants