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; resolved by running pip install .; 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 their own workaround (running `pip install .`), and the issue concerns local development environment setup rather than a product bug. Given the age, lack of engagement, and available workaround, the issue is no longer relevant.
Impact:
10
Quick Win:
8.0
Staleness:
95
Complexity:
20
Confidence:
55
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.0
Staleness:
95
Complexity:
20
Confidence:
55
Support Request:
70
|
close stale | 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 | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
20
Confidence:
90
Support Request:
30
|
close stale | Local pytest unit test fails due to missing extensions directory. Author suggests pip install or removing --editable flag fixes it. No maintainer response or labels after 1330 days. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
35
Confidence:
85
Support Request:
20
|
close stale | Local pytest unit test test_get_extensions_data_dir() fails in dev environment due to missing extensions directory. Unlabeled, inactive for 1330 days, no maintainer response. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
15
Confidence:
85
Support Request:
20
|
close stale | Local unit test test_get_extensions_data_dir() fails due to missing extension directory. Unresolved for over 3 years with no maintainer response. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
20
Confidence:
90
Support Request:
60
|
close stale | Local pytest test fails when running in a dev LXC environment. Author identifies a workaround but questions setup script changes. Untriaged and inactive for over 3.5 years. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1998340 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; workaround found but no maintainer engagement in 1373 days |