twisted: autopkgtest fails on test_flatten: "builtins.KeyError: 'root'"

Bug #2070033 reported by Skia
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
twisted (Debian)
Fix Released
Unknown
twisted (Ubuntu)
Fix Released
Undecided
Skia

Bug Description

Imported from Debian bug http://bugs.debian.org/1073996:

Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Source: twisted
Version: 24.3.0-1
Severity: serious
Tags: patch
Justification: 6a
X-Debbugs-Cc: <email address hidden>

Hello there,

Following some removal from Python itself, the following started to appear in autopkgtest:

2993s --- <exception caught here> ---
2993s File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1999, in _inlineCallbacks
2993s result = context.run(
2993s File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 519, in throwExceptionIntoGenerator
2993s return g.throw(self.value.with_traceback(self.tb))
2993s File "/usr/lib/python3/dist-packages/twisted/web/_flatten.py", line 435, in _flattenTree
2993s roots.append(frame.f_locals["root"])
2993s builtins.KeyError: 'root'

This is fixed upstream in https://github.com/twisted/twisted/pull/12213

I've cherry-picked the needed changes in a patch. I'll send a debdiff with everything shortly.

-- System Information:
Debian Release: trixie/sid
  APT prefers oracular
  APT policy: (500, 'oracular'), (400, 'oracular-proposed'), (200, 'noble-updates'), (200, 'noble'), (200, 'jammy-updates'), (200, 'jammy')
Architecture: amd64 (x86_64)

Kernel: Linux 6.8.0-31-generic (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Skia (hyask)
tags: added: update-excuse
Revision history for this message
Skia (hyask) wrote :

(Unrelated, but import-bug-from-debian seems to have issues. I'll fix that right after lunch)

Changed in twisted (Debian):
importance: Undecided → Unknown
Skia (hyask)
description: updated
Skia (hyask)
Changed in twisted (Ubuntu):
assignee: nobody → Skia (hyask)
Changed in twisted (Debian):
status: New → Fix Released
Revision history for this message
Skia (hyask) wrote :
Changed in twisted (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.