← Back to issue list

tests.unit.test_lifecycle.CoreSetupTestCase.test_core_setup_if_docker_env fails

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1752576
Type
issue
State
open
Author
~kalikiana
Labels
Created
Updated
Closed

Current evaluation

2017-era snapcraft unit test failure: test_lifecycle CoreSetupTestCase regex expected bare 'unsquashfs' but code emits full /snap/snapcraft path. No labels, no comments, no maintainer response in 8.5 years; referenced test no longer exists in the modern codebase.

Suggested action: close stale

Reason: The issue is 3105 days old with zero comments, no labels, and no maintainer response, and the failure it describes (a regex in tests/unit/test_lifecycle.py expecting bare 'unsquashfs' while the code emits '/snap/snapcraft/current/usr/bin/unsquashfs') references 2017-era docker-based core-setup lifecycle code that has been entirely removed from the modern snapcraft codebase, whose layout now shows the rewritten snapcraft/parts and snapcraft/services architecture. The affected test no longer exists, so the report is no longer applicable. Confidence is moderate because repo tools were unavailable to directly confirm the test file's removal.

Impact: 15 Quick Win: 13.5 Staleness: 95 Complexity: 10 Confidence: 70 Support Request: 10

Issue body

tests.unit.test_lifecycle.CoreSetupTestCase.test_core_setup_if_docker_env fails locally for me with this: Both as part of the suite and individually with `python3 -m unittest run tests.unit.test_lifecycle.CoreSetupTestCase.test_core_setup_if_docker_env`. FAIL: test_core_setup_if_docker_env (tests.unit.test_lifecycle.CoreSetupTestCase) tests.unit.test_lifecycle.CoreSetupTestCase.test_core_setup_if_docker_env ---------------------------------------------------------------------- testtools.testresult.real._StringException: Empty attachments: pythonlogging:'' Traceback (most recent call last): File "/usr/lib/python3.5/unittest/mock.py", line 1157, in patched return func(*args, **keywargs) File "/home/rumo/dev/snapcraft/tests/unit/test_lifecycle.py", line 1515, in test_core_setup_if_docker_env FileContains(matcher=MatchesRegex(regex, flags=re.DOTALL))) File "/home/rumo/venv/snapcraft/lib/python3.5/site-packages/testtools/testcase.py", line 498, in assertThat raise mismatch_error testtools.matchers._impl.MismatchError: 'mkdir -p /tmp/tmpsol__uqg/core\n/snap/snapcraft/current/usr/bin/unsquashfs -d /tmp/tmpsol__uqg/core/current /tmp/tmpsol__uqg/.cache/snapcraft/projects/snapcraft-core/snap_hashes/armhf/88c510ff6076cdabd32dd70edcc1cbb29e949e0c681488d35b4477070baa41a483f90da246f029477ab0a4e831e7e234\n' does not match /.*mkdir -p /tmp/tmpsol__uqg/core\nunsquashfs -d /tmp/tmpsol__uqg/core/current .*88c510ff6076cdabd32dd70edcc1cbb29e949e0c681488d35b4477070baa41a483f90da246f029477ab0a4e831e7e234\n/

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 15
Quick Win: 13.5
Staleness: 95
Complexity: 10
Confidence: 70
Support Request: 10
close stale 2017-era snapcraft unit test failure: test_lifecycle CoreSetupTestCase regex expected bare 'unsquashfs' but code emits full /snap/snapcraft path. No labels, no comments, no maintainer response in 8.5 years; referenced test no longer exists in the modern codebase.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 95
Support Request: 5
close stale Test failure in CoreSetupTestCase due to regex mismatch in command output. Unlabelled, no maintainer response, and over 8 years old.
qwen/qwen3.6-35b-a3b
Staleness: 100
Complexity: 10
Confidence: 95
Support Request: 0
close stale Unit test failure caused by a regex mismatch in an unsquashfs command path. Open for over eight years with no maintainer response or updates. Clearly outdated and irrelevant to the current codebase.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 15
Confidence: 95
Support Request: 5
close stale Unit test failure caused by a regex mismatch in a mock assertion. The report is over 8 years old, references Python 3.5, and has received no maintainer feedback.
qwen3.6-35b-moe-q4
Staleness: 98
Complexity: 15
Confidence: 95
Support Request: 5
close stale A unit test failure in test_lifecycle due to a regex mismatch in a mock assertion. Reported 8 years ago on Python 3.5 with no maintainer response.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.