Skip to content

Flaky failer in taskcluster_yml pre-commit hook on Taskcluster #6731

Description

@suhaibmujahid

bugbug lint: https://community-tc.services.mozilla.com/tasks/Qsx36em7QeOoW6CyEGHKyA

taskcluster_yml..........................................................Failed
- hook id: taskcluster_yml
- exit code: 1

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repojidfffjg/py_env-python3.12/lib/python3.12/site-packages/referencing/_core.py", line 428, in get_or_retrieve
    resource = registry._retrieve(uri)
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.cache/pre-commit/repojidfffjg/py_env-python3.12/lib/python3.12/site-packages/jsonschema/validators.py", line 113, in _warn_for_remote_retrieve
    with urlopen(request) as response:  # noqa: S310
         ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/urllib/request.py", line 215, in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/urllib/request.py", line 521, in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/urllib/request.py", line 630, in http_response
    response = self.parent.error(
               ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/urllib/request.py", line 559, in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/urllib/request.py", line 492, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "/usr/local/lib/python3.12/urllib/request.py", line 639, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 503: Service Unavailable

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repojidfffjg/py_env-python3.12/lib/python3.12/site-packages/referencing/_core.py", line 682, in lookup
    retrieved = self._registry.get_or_retrieve(uri)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.cache/pre-commit/repojidfffjg/py_env-python3.12/lib/python3.12/site-packages/referencing/_core.py", line 435, in get_or_retrieve
    raise exceptions.Unretrievable(ref=uri) from error
referencing.exceptions.Unretrievable: 'https://community-tc.services.mozilla.com/schemas/queue/v1/task.json'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repojidfffjg/py_env-python3.12/lib/python3.12/site-packages/jsonschema/validators.py", line 463, in _validate_reference
    resolved = self._resolver.lookup(ref)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.cache/pre-commit/repojidfffjg/py_env-python3.12/lib/python3.12/site-packages/referencing/_core.py", line 686, in lookup
    raise exceptions.Unresolvable(ref=ref) from error
referencing.exceptions.Unresolvable: task.json#/properties/workerType

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/root/.cache/pre-commit/repojidfffjg/py_env-python3.12/bin/taskcluster_yml_validator", line 6, in <module>
    sys.exit(main())
             ^^^^^^
  File "/root/.cache/pre-commit/repojidfffjg/py_env-python3.12/lib/python3.12/site-packages/taskcluster_yml_validator/__init__.py", line 107, in main
    validate(args.tcml)
  File "/root/.cache/pre-commit/repojidfffjg/py_env-python3.12/lib/python3.12/site-packages/taskcluster_yml_validator/__init__.py", line 77, in validate
    jsonschema.validate(instance=task, schema=task_schema)
  File "/root/.cache/pre-commit/repojidfffjg/py_env-python3.12/lib/python3.12/site-packages/jsonschema/validators.py", line 1330, in validate
    error = exceptions.best_match(validator.iter_errors(instance))
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.cache/pre-commit/repojidfffjg/py_env-python3.12/lib/python3.12/site-packages/jsonschema/exceptions.py", line 475, in best_match
    best = next(errors, None)
           ^^^^^^^^^^^^^^^^^^
  File "/root/.cache/pre-commit/repojidfffjg/py_env-python3.12/lib/python3.12/site-packages/jsonschema/validators.py", line 384, in iter_errors
    for error in errors:
                 ^^^^^^
  File "/root/.cache/pre-commit/repojidfffjg/py_env-python3.12/lib/python3.12/site-packages/jsonschema/_keywords.py", line 296, in properties
    yield from validator.descend(
  File "/root/.cache/pre-commit/repojidfffjg/py_env-python3.12/lib/python3.12/site-packages/jsonschema/validators.py", line 432, in descend
    for error in errors:
                 ^^^^^^
  File "/root/.cache/pre-commit/repojidfffjg/py_env-python3.12/lib/python3.12/site-packages/jsonschema/_keywords.py", line 275, in ref
    yield from validator._validate_reference(ref=ref, instance=instance)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.cache/pre-commit/repojidfffjg/py_env-python3.12/lib/python3.12/site-packages/jsonschema/validators.py", line 465, in _validate_reference
    raise exceptions._WrappedReferencingError(err) from err
jsonschema.exceptions._WrappedReferencingError: Unresolvable: task.json#/properties/workerType

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions