Closed Bug 1910501 Opened 10 months ago Closed 9 months ago

TypeError: 'Task' object is not subscriptable

Categories

(Firefox Build System :: Task Configuration, defect)

defect

Tracking

(firefox-esr115 unaffected, firefox-esr128 unaffected, firefox128 unaffected, firefox129 unaffected, firefox130 fixed, firefox131 fixed)

RESOLVED FIXED
131 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox128 --- unaffected
firefox129 --- unaffected
firefox130 --- fixed
firefox131 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Decision tasks are failing on the toolchains project branch with:

[task 2024-07-29T22:08:29.019Z] Traceback (most recent call last):
[task 2024-07-29T22:08:29.019Z]   File "/builds/worker/checkouts/gecko/taskcluster/mach_commands.py", line 209, in taskgraph_decision
[task 2024-07-29T22:08:29.019Z]     ret = taskgraph_commands["decision"].func(options)
[task 2024-07-29T22:08:29.019Z]   File "/builds/worker/checkouts/gecko/taskcluster/gecko_taskgraph/main.py", line 703, in decision
[task 2024-07-29T22:08:29.019Z]     taskgraph_decision(options)
[task 2024-07-29T22:08:29.019Z]   File "/builds/worker/checkouts/gecko/taskcluster/gecko_taskgraph/decision.py", line 227, in taskgraph_decision
[task 2024-07-29T22:08:29.019Z]     write_artifact("task-graph.json", tgg.morphed_task_graph.to_json())
[task 2024-07-29T22:08:29.019Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/generator.py", line 220, in morphed_task_graph
[task 2024-07-29T22:08:29.019Z]     return self._run_until("morphed_task_graph")
[task 2024-07-29T22:08:29.019Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/generator.py", line 425, in _run_until
[task 2024-07-29T22:08:29.019Z]     k, v = next(self._run)  # type: ignore
[task 2024-07-29T22:08:29.019Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/generator.py", line 399, in _run
[task 2024-07-29T22:08:29.019Z]     optimized_task_graph, label_to_taskid = optimize_task_graph(
[task 2024-07-29T22:08:29.019Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/optimize/base.py", line 94, in optimize_task_graph
[task 2024-07-29T22:08:29.019Z]     replaced_tasks = replace_tasks(
[task 2024-07-29T22:08:29.019Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/optimize/base.py", line 342, in replace_tasks
[task 2024-07-29T22:08:29.019Z]     repl = opt.should_replace_task(task, params, deadline, arg)
[task 2024-07-29T22:08:29.019Z]   File "/builds/worker/checkouts/gecko/third_party/python/taskcluster_taskgraph/taskgraph/optimize/strategies.py", line 61, in should_replace_task
[task 2024-07-29T22:08:29.019Z]     f'not replacing {task["label"]} with {task_id} because it expires before {deadline}'
[task 2024-07-29T22:08:29.019Z] TypeError: 'Task' object is not subscriptable

Set release status flags based on info from the regressing bug 1909260

Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED

Set release status flags based on info from the regressing bug 1909260

Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/89db5fc4da08 Update taskgraph vendor to v10.0.2. r=taskgraph-reviewers,mach-reviewers,bhearsum,ahal
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch

The patch landed in nightly and beta is affected.
:glandium, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox130 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(mh+mozilla)
Attachment #9418230 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: Possible decision task failures when some tasks expire in the future
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: N/A
  • Risk associated with taking this patch: Low
  • Explanation of risk level: NPOTB
  • String changes made/needed: N/A
  • Is Android affected?: no
Flags: needinfo?(mh+mozilla)
Attachment #9418230 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: