Skip to content

Retry Taskcluster schema retrieval in pipeline tests - #6844

Open
ayoubdiourin7 wants to merge 1 commit into
mozilla:masterfrom
ayoubdiourin7:fix/taskcluster-schema-retries
Open

ayoubdiourin7 wants to merge 1 commit into
mozilla:masterfrom
ayoubdiourin7:fix/taskcluster-schema-retries

Conversation

@ayoubdiourin7

Copy link
Copy Markdown
Contributor

Fixes the intermittent test_jsone_validates failure caused by Taskcluster returning HTTP 503 while resolving remote JSON Schema references.
Previously, the two root schemas were downloaded with requests, but nested $ref schemas were retrieved implicitly by jsonschema using its deprecated remote retrieval path. That path did not use retry handling, so a temporary 503 caused validation to fail with Unresolvable.

This change:

  • Resolves all remote schemas through a referencing.Registry.
  • Retries and caches Taskcluster schema requests.
  • Uses Draft 2020-12 when the schema version cannot be identified.

Fixes #6840

@ayoubdiourin7
ayoubdiourin7 requested a review from a team as a code owner September 14, 2026 21:25
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.

Flaky test failure in jsonschema/validators.py

1 participant