Repository navigation
Reduce network calls and improve tests - #12904
Merged
ChengShi-1 merged 5 commits intoNov 23, 2026
Merged
ChengShi-1 merged 5 commits into
ChengShi-1 merged 5 commits into
Conversation
The one prod change is use of local DataCite schema files by preference
pdurbin
approved these changes
Nov 12, 2026
pdurbin
left a comment
Member
There was a problem hiding this comment.
Tests are passing and I don't see any red flags. Approving.
Contributor
|
For QA, I ran the full unit suite and verified that related tests pass in Docker with networking disabled. Approved. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it: We have several non-IT tests that fail when the network isn't accessible, the siteUrl isn't set, or all temporary directories aren't created. This PR fixes those tests.
The non-test changes in the PR are to address network issues when retrieving XML schema (DataCite) or JSON-LD contexts (for Linked Data Notification): code and local copies of the relevant artifacts have been added and Dataverse will now try to use the local copy in preference to trying to access these files on the internet. (I know we've had reports of these network calls failing in the past, not sure if there are issues. The XMLValidatorTest was disabled due to these outages but is now enabled since it can use the local xsd files.)
Which issue(s) this PR closes:
Special notes for your reviewer: Some old tests still used DataCite v3 - those have been updated. Most of the files in the PR are just downloads of the relevant xsd or JSON-LD files from the internet.
Suggestions on how to test this:Nominally, our automated tests cover all the changes. I have verified that the changes here fix the test issues seen when running in a docker container with no internet access. If someone wants to repeat that test, I can provide details on the setup.
Does this PR introduce a user interface change? If mockups are available, please link/include them here:
Is there a release notes update needed for this change?:
Additional documentation: