Local pytest/unit run test_get_extensions_data_dir() fails
Metadata
Current evaluation
Local pytest test_get_extensions_data_dir() fails due to missing extensions data directory; workaround found but no maintainer engagement in 1373 days
Suggested action: close stale
Reason: The issue is 1373 days old with zero maintainer comments or labels. The reporter identified a workaround (running `pip install .` or removing the `--editable` flag from environment-setup.local.sh). This is a local development environment setup issue rather than a user-facing bug, and development environment configurations often become irrelevant as the project evolves over nearly 4 years.
Impact:
10
Quick Win:
8.5
Staleness:
95
Complexity:
15
Confidence:
70
Support Request:
70
Issue body
I've setup the snapcraft-dev lxc environment by following the instruction on the Hacking readme file on the Snapcraft Github repository. When running the static test suite via pytest, the test_get_extensions_data_dir fails with the following error:
def test_get_extensions_data_dir():
> assert (get_extensions_data_dir() / "desktop").is_dir()
E AssertionError: assert False
E + where False = <bound method Path.is_dir of PosixPath('/home/ubuntu/.venv/snapcraft/share/snapcraft/extensions/desktop')>()
E + where <bound method Path.is_dir of PosixPath('/home/ubuntu/.venv/snapcraft/share/snapcraft/extensions/desktop')> = (PosixPath('/home/ubuntu/.venv/snapcraft/share/snapcraft/extensions') / 'desktop').is_dir
E + where PosixPath('/home/ubuntu/.venv/snapcraft/share/snapcraft/extensions') = get_extensions_data_dir()
tests/unit/extensions/test_extensions.py:234: AssertionError
The error is resolved by running pip install . within the snapcraft directory.
After some investigation I saw that the ./tools/environment-setup.sh, calls the ./tool/environment-setup.local.sh script, which calls pip install --editable "${SNAPCRAFT_DIR}" (https://github.com/snapcore/snapcraft/blob/main/tools/environment-setup-local.sh#L41-L42). Removing the --editable flag fixes the issue in this case, but i'm not sure whether then it breaks the functionality that was initially thought for the local script.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
10
Quick Win:
8.5
Staleness:
95
Complexity:
15
Confidence:
70
Support Request:
70
|
close stale | Local pytest test_get_extensions_data_dir() fails due to missing extensions data directory; workaround found but no maintainer engagement in 1373 days | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
15
Confidence:
90
Support Request:
20
|
close stale | Local pytest test fails due to environment setup; suggests a fix but has had no maintainer response or activity in over three years. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
20
Confidence:
90
Support Request:
15
|
close stale | Local pytest test test_get_extensions_data_dir() fails due to missing extension data directory. Unresolved for over 3.5 years with no maintainer response or labels. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
25
Confidence:
80
Support Request:
15
|
close stale | Local unit test fails when running pytest in a development environment due to missing extension data directory. Reporter suggests changing pip install flags. Issue has no maintainer engagement and is over 3.5 years old. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
25
Confidence:
85
Support Request:
30
|
close stale | Local pytest test_get_extensions_data_dir() fails due to missing directory in dev environment. Suggests pip install fixes it but questions editable install flag. No maintainer response. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1998341 Local pytest/unit run test_get_extensions_data_dir() fails | snapcraft (launchpad) | open | Local pytest test_get_extensions_data_dir() fails due to missing extensions data directory; resolved by running pip install .; no maintainer engagement in 1373 days |