Skip to content

Spurious test failures related to Windows permissions on temporary directory #6940

@charliermarsh

Description

@charliermarsh
running 1 test
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: uv_run_isolate
Source: E:\uv:533
───────────────────────────────────────────────────────────────────────────────
Expression: snapshot
───────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬──────────────────────────────────────────────────────────────────
    0       │-success: true
    1       │-exit_code: 0
          0 │+success: false
          1 │+exit_code: 2
    2     2 │ ----- stdout -----
    3       │-Success
    4     3 │ 
    5     4 │ ----- stderr -----
    6     5 │ Using Python 3.12.[X] interpreter at: [PYTHON-3.12]
    7     6 │ Creating virtualenv at: .venv
    8     7 │ Resolved 8 packages in [TIME]
    9       │-Prepared 7 packages in [TIME]
   10       │-Installed 7 packages in [TIME]
   11       │- + albatross==0.1.0 (from file://[TEMP_DIR]/albatross-root-workspace)
   12       │- + anyio==4.3.0
   13       │- + bird-feeder==1.0.0 (from file://[TEMP_DIR]/albatross-root-workspace/packages/bird-feeder)
   14       │- + idna==3.6
   15       │- + seeds==1.0.0 (from file://[TEMP_DIR]/albatross-root-workspace/packages/seeds)
   16       │- + sniffio==1.3.1
   17       │- + tqdm==4.66.2
          8 │+error: Failed to prepare distributions
          9 │+  Caused by: Failed to fetch wheel: seeds @ file://[TEMP_DIR]/albatross-root-workspace/packages/seeds
         10 │+  Caused by: Build backend failed to build wheel through `build_editable()` with exit code: 1
         11 │+--- stdout:
         12 │+
         13 │+--- stderr:
         14 │+Traceback (most recent call last):
         15 │+  File "<string>", line 11, in <module>
         16 │+  File "[CACHE_DIR]/builds-v0/[TMP]/build.py", line 83, in build_editable
         17 │+    return os.path.basename(next(builder.build(directory=wheel_directory, versions=['editable'])))
         18 │+                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         19 │+  File "[CACHE_DIR]/builds-v0/[TMP]/interface.py", line 90, in build
         20 │+    self.metadata.validate_fields()
         21 │+  File "[CACHE_DIR]/builds-v0/[TMP]/core.py", line 259, in validate_fields
         22 │+    _ = self.version
         23 │+        ^^^^^^^^^^^^
         24 │+  File "[CACHE_DIR]/builds-v0/[TMP]/core.py", line 143, in version
         25 │+    self._version = self._get_version()
         26 │+                    ^^^^^^^^^^^^^^^^^^^
         27 │+  File "[CACHE_DIR]/builds-v0/[TMP]/core.py", line 248, in _get_version
         28 │+    from packaging.version import InvalidVersion, Version
         29 │+  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
         30 │+  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
         31 │+  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
         32 │+  File "<frozen importlib._bootstrap_external>", line 991, in exec_module
         33 │+  File "<frozen importlib._bootstrap_external>", line 1128, in get_code
         34 │+  File "<frozen importlib._bootstrap_external>", line 1186, in get_data
         35 │+PermissionError: [Errno 13] Permission denied: 'E:\/uv-tmp\/[TMP]/version.py'
         36 │+---
────────────┴──────────────────────────────────────────────────────────────────
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
test test_uv_run_isolate ... FAILED

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingInternal testing of behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions