[Bug 2097264] Re: FTBFS on LP buildd infrastructure
Launchpad Bug Tracker
2097264 at bugs.launchpad.net
Wed Mar 12 07:49:59 UTC 2025
This bug was fixed in the package apport - 2.28.1-0ubuntu3.5
---------------
apport (2.28.1-0ubuntu3.5) noble; urgency=medium
[ Simon Chopin ]
* d/p/tests-skip-anonymization-test-on-environments-that-a.patch:
Fix FTBFS when building on the LP infra (LP: #2097264)
[ Chris Peterson ]
* d/package-hooks/ubuntu-desktop-bootstrap.py: attach files with root
and add subiquity traceback, curtin logs, subiquity or system journal,
hardware information, and check if snap updated (LP: #2098415).
* d/package-hooks/subiquity.py: fix typo in path to curtin apt
configuration (LP: #2098423).
[ Benjamin Drung ]
* apport-gtk: check for available display on startup (LP: #2006981)
* python3-apport: Bump python3-problem-report dependency to >= 2.28
for CompressedFile class (LP: #2100313)
* test:
- do not check for exact encoded gzip data (LP: #2076269)
- depend on apport-gtk for new UI integration test
- split test_find_package_desktopfile into separate test cases
and fix test_find_package_desktopfile_multiple
- autopkgtest: install xterm for test_find_package_desktopfile_multiple
-- Benjamin Drung <bdrung at ubuntu.com> Thu, 27 Feb 2025 14:01:57 +0100
** Changed in: apport (Ubuntu Noble)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/2097264
Title:
FTBFS on LP buildd infrastructure
Status in Apport:
Fix Released
Status in apport package in Ubuntu:
Invalid
Status in apport source package in Noble:
Fix Released
Bug description:
[ Impact ]
The package FTBFS on the LP builders due to the cloud build name
containing the 'buildd' string, thus failing the anonymization test.
This makes it difficult to do a Noble SRU :)
It's a false positive, that particular field isn't relevant when
looking for PII, it's just a side-effect of the extremely artificial
build environment.
The fix is to skip that test when such a case is detected.
[ Test plan ]
Check the build logs to see that the test has been skipped.
Also build the package in a local schroot and check that the test has NOT been skipped and has passed.
[ Where problems could occur ]
Since we're skipping the tests we could have a regression on that very
feature, which is the reason for the local build in the test plan.
[ Original report ]
This might be only in PPAs and/or a recent change in our build environment, but when trying to rebuild the package for an upcoming SRU I got a nice FTBFS.
https://launchpadlibrarian.net/773820283/buildlog_ubuntu-noble-
amd64.apport_2.28.1-0ubuntu3.4~ppa1_BUILDING.txt.gz
The relevant log parts:
self = <tests.integration.test_ui.T
testMethod=test_run_crash_anonymity>
def test_run_crash_anonymity(self):
"""run_crash() anonymization"""
r = self._gen_test_crash()
utf8_val = b"\xc3\xa4 " + os.uname()[1].encode("UTF-8") + b" \xe2\x99\xa5 "
r["ProcUnicodeValue"] = utf8_val.decode("UTF-8")
r["ProcByteArrayValue"] = utf8_val
report_file = os.path.join(apport.fileutils.report_dir, "test.crash")
with open(report_file, "wb") as f:
r.write(f)
self.ui = UserInterfaceMock()
self.ui.present_details_response = apport.ui.Action(report=True)
self.ui.run_crash(report_file)
self.assertIsNone(self.ui.msg_severity, self.ui.msg_text)
assert self.ui.report
self.assertNotIn("ProcCwd", self.ui.report)
dump = io.BytesIO()
# this contains more or less random characters which might contain the
# user name
del self.ui.report["CoreDump"]
self.ui.report.write(dump)
report = dump.getvalue().decode("UTF-8")
for s in self._get_sensitive_strings():
> self.assertIsNone(
re.search(rf"\b{re.escape(s)}\b", report),
f"dump contains sensitive word '{s}':\n{report}",
)
E AssertionError: <re.Match object; span=(97, 103), match='buildd'> is not None : dump contains sensitive word 'buildd':
E ProblemType: Crash
E Architecture: amd64
E CasperMD5CheckResult: unknown
E CloudBuildName: ubuntu-base:buildd
To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/2097264/+subscriptions
More information about the foundations-bugs
mailing list