Skip to content

Conversation

@Eijebong
Copy link
Contributor

@Eijebong Eijebong commented Oct 9, 2025

This fixes a regression from 384afee where list_artifacts went from listing the latest artifacts from a task to getting the task definition and returning a non existent field from it, leading to:

  File "/builds/worker/checkouts/src/taskcluster/src/target_tasks.py", line 27, in _filter_for_pr
    for artifact in list_artifacts(diff_task):
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/src/taskcluster-taskgraph/src/taskgraph/util/taskcluster.py", line 166, in list_artifacts
    return task["artifacts"]
           ~~~~^^^^^^^^^^^^^
KeyError: 'artifacts'

This fixes a regression from 384afee
where `list_artifacts` went from listing the latest artifacts from a
task to getting the task definition and returning a non existent field
from it, leading to:

```
  File "/builds/worker/checkouts/src/taskcluster/src/target_tasks.py", line 27, in _filter_for_pr
    for artifact in list_artifacts(diff_task):
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/src/taskcluster-taskgraph/src/taskgraph/util/taskcluster.py", line 166, in list_artifacts
    return task["artifacts"]
           ~~~~^^^^^^^^^^^^^
KeyError: 'artifacts'
```
@Eijebong Eijebong requested a review from a team as a code owner October 9, 2025 19:23
@Eijebong Eijebong merged commit 90a12a6 into taskcluster:main Oct 9, 2025
17 checks passed
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.

2 participants