diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8647db72..64f4d299 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -216,7 +216,12 @@ jobs: # Segfaults (139) are not allowed but other exit codes are valid! python3 ratarmount.py tests/simple.bz2 || [ $? != 139 ] + - name: Install pip Test Dependencies + run: | + python3 -m pip install -r tests/requirements-tests.txt + - name: Unit Tests + if: false run: | python3 -m pip install pytest pytest-xdist for file in core/tests/test_*.py tests/test_*.py; do @@ -246,6 +251,15 @@ jobs: done python3 tests/tests.py + - name: Git Debug + if: ${{ !startsWith( matrix.os, 'macos' ) }} + run: | + git status + pwd + ls -la + ls -la .git + git show --stat 85b0425222c85cb17ac387411f83c4a8cefcf16f + - name: Regression Tests (FUSE 3) if: ${{ !startsWith( matrix.os, 'macos' ) }} run: | diff --git a/tests/runtests.sh b/tests/runtests.sh index 1de22c49..2bf4068a 100755 --- a/tests/runtests.sh +++ b/tests/runtests.sh @@ -1883,11 +1883,14 @@ checkURLProtocolGit() # fsspec/implementations/git.py#L28C14-L28C58 # > "git://[path-to-repo[:]][ref@]path/to/file" (but the actual # > file path should not contain "@" or ":"). - checkFileInTAR 'git://v0.15.2@tests/single-file.tar' bar d3b07384d113edec49eaa6238ad5ff00 || + checkFileInTAR 'git://85b0425222c85cb17ac387411f83c4a8cefcf16f@tests/single-file.tar' bar \ + d3b07384d113edec49eaa6238ad5ff00 || returnError "$LINENO" 'Failed to read from HTTP server' - checkFileInTAR 'git://v0.15.2@tests/' single-file.tar 1a28538854d1884e4415cb9bfb7a2ad8 || + checkFileInTAR 'git://85b0425222c85cb17ac387411f83c4a8cefcf16f@tests/' single-file.tar \ + 1a28538854d1884e4415cb9bfb7a2ad8 || returnError "$LINENO" 'Failed to read from HTTP server' - checkFileInTAR 'git://v0.15.2@tests' single-file.tar 1a28538854d1884e4415cb9bfb7a2ad8 || + checkFileInTAR 'git://85b0425222c85cb17ac387411f83c4a8cefcf16f@tests' single-file.tar \ + 1a28538854d1884e4415cb9bfb7a2ad8 || returnError "$LINENO" 'Failed to read from HTTP server' # https://github.com/fsspec/filesystem_spec/blob/360e46d13069b0426565429f9f610bf704cfa062/ @@ -1906,7 +1909,7 @@ checkURLProtocolGit() # from, or a branch or tag name (so long as it doesn't contain special characters # like "/", "?", which would have to be HTTP-encoded). # TODO - #checkFileInTAR 'git://v0.15.2@tests/single-file.tar' bar d3b07384d113edec49eaa6238ad5ff00 || + #checkFileInTAR 'git://85b0425222c85cb17ac387411f83c4a8cefcf16f@tests/single-file.tar' bar d3b07384d113edec49eaa6238ad5ff00 || # returnError "$LINENO" 'Failed to read from HTTP server' } @@ -2039,10 +2042,7 @@ checkRemoteSupport() # https://filesystem-spec.readthedocs.io/en/latest/api.html#other-known-implementations checkURLProtocolFile checkURLProtocolSamba - #checkURLProtocolGit # TODO does not work in CI for some reason... - # Warning: Trying to open with fsspec raised an exception: 'v0.15.2' - # Error: Mount source does not exist: git://v0.15.2@tests/single-file.tar - + checkURLProtocolGit # TODO does not work in CI for some reason... #checkURLProtocolHTTP # TODO checkURLProtocolFTP #checkURLProtocolS3 # TODO suddenly broken again ...