Commit 90a12a6
authored
Restore
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'
```list_artifacts to its correct behavior (#811)1 parent 0fcf369 commit 90a12a6
File tree
2 files changed
+3
-4
lines changed- src/taskgraph/util
- test
2 files changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
180 | | - | |
| 178 | + | |
| 179 | + | |
181 | 180 | | |
182 | 181 | | |
183 | 182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
0 commit comments