Skip to content

Reduce network calls and improve tests - #12904

Merged
ChengShi-1 merged 5 commits into
IQSS:developfrom
GlobalDataverseCommunityConsortium:test-improvements
Nov 23, 2026
Merged

ChengShi-1 merged 5 commits into
IQSS:developfrom
GlobalDataverseCommunityConsortium:test-improvements

Conversation

@qqmyers

@qqmyers qqmyers commented Nov 11, 2026

Copy link
Copy Markdown
Member

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:

  • 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:

@qqmyers qqmyers added the Size: 3 A percentage of a sprint. 2.1 hours. label Nov 11, 2026
@qqmyers qqmyers moved this to Ready for Review ⏩ in IQSS Dataverse Project Nov 11, 2026
@qqmyers qqmyers added this to the 6.13 milestone Nov 11, 2026
@pdurbin pdurbin self-assigned this Nov 12, 2026
@pdurbin pdurbin moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Nov 12, 2026

@pdurbin pdurbin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tests are passing and I don't see any red flags. Approving.

@github-project-automation github-project-automation Bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Nov 12, 2026
@pdurbin pdurbin removed their assignment Nov 12, 2026
@pdurbin pdurbin moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Nov 23, 2026
@ChengShi-1

Copy link
Copy Markdown
Contributor

For QA, I ran the full unit suite and verified that related tests pass in Docker with networking disabled. Approved.

@ChengShi-1
ChengShi-1 merged commit 1fe73df into IQSS:develop Nov 23, 2026
21 checks passed
@github-project-automation github-project-automation Bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project Nov 23, 2026
@ChengShi-1 ChengShi-1 removed their assignment Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Size: 3 A percentage of a sprint. 2.1 hours.

Projects

Status: Merged 🚀

Development

Successfully merging this pull request may close these issues.

3 participants