-
Notifications
You must be signed in to change notification settings - Fork 361
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
Cache data are stored in the wrong directory if GMT_DATA_SERVER is set via environmental variable or via "gmt set" #8437
Comments
It might be that, but I've added this line in
and I see that in my .gmt the static files are under I also don't understand why ou Linux CI tests consistently fail the texture tests while those pass on Win and Mac (they fail for me too due to different grids/images/PSs) |
I don't think it will work. As I understand it, currently the only solution is setting
For unknown reasons, the Linux CI (sometimes the Windows CI) fails to download some files from the GMT data server, thus the tests may fail. Hopefully, PR #8426 can solve the issue temporarily. |
Yes, you are right |
But in the latest CI run, all tests pass on Windows (https://github.com/GenericMappingTools/gmt/actions/runs/8614489245/job/23608035110) except the known failures. |
Yes, I saw it but Linux had those failures I mentioned. And both Win and Mac passed all the tests, despite the issue with the |
Here are the failures in the latest Linux CI run (https://github.com/GenericMappingTools/gmt/actions/runs/8630998725/job/23658513524?pr=8426) in PR #8426:
|
When GMT is built with the default
GMT_DATA_SERVER
settings, the default data server isoceania
.For testing, we want to use the
static
data server, so that the GMT tests won't fail due to updates of cache files or remote files. This can be done by either setting the environmental variableGMT_DATA_SERVER
or via CLI option--GMT_DATA_SERVER=static
, but it doesn't work well.Now running
gmt which
to download a remote file. The debug messages are long, but the most important messages are shown below:As you can see, GMT tries to download from the static data server, but save the file into
~/.gmt/server/
rather than~/.gmt/static/server
.The same thing happens when set
GMT_DATA_SERVER
configuration:Similarly,
gmt_hash_server.txt
is downloaded to~/.gmt/gmt_hash_server.txt
, but GMT tries to read it in~/.gmt/server/gmt_hash_server.txt
.I think this explains why @joa-quim has trouble using the static server #8425 (comment).
The text was updated successfully, but these errors were encountered: