Skip to content

Force GMT_DATA_SERVER to static for tests by default#8932

Open
seisman wants to merge 2 commits intomasterfrom
gmt-data-server-static
Open

Force GMT_DATA_SERVER to static for tests by default#8932
seisman wants to merge 2 commits intomasterfrom
gmt-data-server-static

Conversation

@seisman
Copy link
Member

@seisman seisman commented Mar 18, 2026

Our test suites use the datasets from the "static" data server, which doesn't change frequently. However, the GMT_DATA_SERVER defaults to "oceania", so that anyone who wants to run the tests (including the CI) must explicitly set GMT_DATA_SERVER to static, otherwise he will see many surprising failures (for example, #8910 (comment)).

I think it makes more sense to set the GMT_DATA_SERVER to static by default for tests. This PR does:

  • default GMT_DATA_SERVER to static when DO_TESTS is enabled and the value is still the default oceania
  • remove the now-redundant CI-only GMT_DATA_SERVER static overrides from ci/config-gmt-unix.sh and ci/config-gmt-windows.sh

With changes in this PR, we no longer need to set GMT_DATA_SERVER to static when doing tests. Of course, if you like, you can still set GMT_DATA_SERVER to any value (not "oceania") to use a specific data server.

@seisman seisman changed the title Force static data server for tests Force GMT_DATA_SERVER to static for tests by default Mar 18, 2026
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.

1 participant