Skip to content

Taskcluster fails wpt-decision-task for some commits/PRs with markup in description or title #53933

@jonathan-j-lee

Description

@jonathan-j-lee

For example:

Log from sample failure:

INFO:root:SCHEDULED TASKS:
  lint
  sink-task
  wpt-chrome-dev-results
  wpt-chrome-dev-results-without-changes
  wpt-firefox-nightly-results
  wpt-firefox-nightly-results-without-changes
  wpt-firefox-nightly-stability
INFO:root:Scheduling sink-task
Traceback (most recent call last):
  File "/home/test/web-platform-tests/_venv3/lib/python3.10/site-packages/taskcluster/client.py", line 503, in _makeHttpRequest
    response.raise_for_status()
  File "/home/test/web-platform-tests/_venv3/lib/python3.10/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 406 Client Error: Not Acceptable for url: http://taskcluster/api/queue/v1/task/NZ8PVJWdRw6DLp68WYxD7A

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/test/web-platform-tests/./wpt", line 10, in <module>
    wpt.main()
  File "/home/test/web-platform-tests/tools/wpt/wpt.py", line 233, in main
    rv = script(*args, **kwargs)
  File "/home/test/web-platform-tests/tools/ci/tc/decision.py", line 408, in run
    create_tasks(queue, task_id_map)
  File "/home/test/web-platform-tests/tools/ci/tc/decision.py", line 349, in create_tasks
    queue.createTask(task_id, task_data)
  File "/home/test/web-platform-tests/_venv3/lib/python3.10/site-packages/taskcluster/generated/queue.py", line 296, in createTask
    return self._makeApiCall(self.funcinfo["createTask"], *args, **kwargs)
  File "/home/test/web-platform-tests/_venv3/lib/python3.10/site-packages/taskcluster/client.py", line 269, in _makeApiCall
    response = self._makeHttpRequest(entry['method'], _route, payload)
  File "/home/test/web-platform-tests/_venv3/lib/python3.10/site-packages/taskcluster/client.py", line 538, in _makeHttpRequest
    raise exceptions.TaskclusterRestFailure(
taskcluster.exceptions.TaskclusterRestFailure: None
[taskcluster 2025-07-22 18:32:15.418Z] === Task Finished ===
[taskcluster 2025-07-22 18:32:15.892Z] Unsuccessful task run with exit code: 1 completed in 211.936 seconds

Currently, my best guess of the root cause is that Taskcluster rejects PRs with descriptions containing potentially dangerous tags.

cc @jgraham for forwarding this issue to a Taskcluster PoC

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions