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

Replace SSSP link to legacy MC Archive #110

Merged
merged 4 commits into from
Dec 9, 2021
Merged

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Dec 8, 2021

Fixes #109

The cli.test_install:test_install_family_url test was using a link to
the legacy version of the Materials Cloud Archive which has now been
taken offline, causing the test to fail. The link is updated to point to
the new server.

@sphuber sphuber force-pushed the fix/109/sssp-legacy-url branch 8 times, most recently from b45174c to b1b0fe6 Compare December 8, 2021 14:16
This will prevent the CI failing when locally things pass because on the
remote a newer version of `pylint` installs which may come with new
rules.
When the command was passed an URL it writes the retrieved content to a
temporary file on the local file system. Since the underlying
unarchiving code attempts to determine the format from the filename, it
was attempting to name the temporary file based on the the URL. This
worked for the old URL, since there (as luck would have it) the URL
ended with the filename containing the correct archive format extension.

However, this is clearly not always the case and it is in general
impossible to deduce the filename from the URL. It might not even contain
an actual filename. There is no other solution then have the user specify
the archive format with the `-f` option. It is not made required because
for the local files it might not be necessary.
@sphuber sphuber force-pushed the fix/109/sssp-legacy-url branch 2 times, most recently from eea43e0 to 28fe0be Compare December 8, 2021 16:25
The `docutils` requirement is necessary to quell the warning message
that was being raised causing the docs build to fail.
The `cli.test_install:test_install_family_url` test was using a link to
the legacy version of the Materials Cloud Archive which has now been
taken offline, causing the test to fail. The link is updated to point to
the new server.
@sphuber sphuber force-pushed the fix/109/sssp-legacy-url branch from 28fe0be to f098739 Compare December 8, 2021 16:30
@sphuber sphuber requested a review from mbercx December 8, 2021 16:32
@sphuber
Copy link
Contributor Author

sphuber commented Dec 8, 2021

Alright @mbercx , took three more problems to be solved to solve the original problem, but with this, the CI is running again

@sphuber sphuber merged commit 707a16c into master Dec 9, 2021
@sphuber sphuber deleted the fix/109/sssp-legacy-url branch December 9, 2021 10:08
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.

Remove the usage of legacy link for SSSP in tests
1 participant