Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmlnkn committed Oct 5, 2024
1 parent e2e4d7c commit e0d4f5b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down
16 changes: 8 additions & 8 deletions tests/runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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'
}

Expand Down Expand Up @@ -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 ...
Expand Down

0 comments on commit e0d4f5b

Please sign in to comment.