Page MenuHomePhabricator

WDQS unit tests should not rely on external resources
Closed, ResolvedPublic

Description

The streaming-update-common project contains a unit test (MutationEventDataJsonSerializationUnitTest), which makes a network call to https://schema.wikimedia.org to fetch a JSON schema for validation. This test fails when run in environments with network restrictions, and occasionally the request times out in CI, causing builds to fail.

As a wdqs maintainer I want to run the test suites without an access to internet so that I can build the project on restricted environments like the stats machines.

AC:

  • MutationEventDataJsonSerializationUnitTest loads the required schema from a local fixture.
  • The build passes on stat1010.eqiad.wmnet

Event Timeline

MPhamWMF moved this task from Incoming to Tech Debt on the Wikidata-Query-Service board.
trueg changed the task status from Open to In Progress.Jan 7 2026, 4:00 PM
trueg claimed this task.

Change #1224947 had a related patch set uploaded (by Trueg; author: Trueg):

[wikidata/query/rdf@master] streaming-updater-common: No network requests during test

https://gerrit.wikimedia.org/r/1224947

Change #1224947 merged by jenkins-bot:

[wikidata/query/rdf@master] streaming-updater-common: No network requests during test

https://gerrit.wikimedia.org/r/1224947