-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixing the directory() issue due to uploading the local_prefix i…
…nstead of GCS prefix. (#41) first contribution here. Think I found the error. This works for my test Snakefile: ``` rule all: input: "data/done.txt", "data2/done.txt" rule get_directories: input: expand( "data/{directory}", directory = ["a", "b", "c"] ), output: touch("data/done.txt") rule make_a_directory: output: directory("data/{directory}") shell: """ mkdir -p {output} touch {output}/test.txt """ rule get_files: input: expand( "data2/{directory}.txt", directory = ["a", "b", "c"] ) output: touch("data2/done.txt") rule make_a_file: output: "data2/{directory}.txt" shell: """ mkdir -p $(dirname {output}) touch {output} """ ``` I also tried to add another test case which seems to work. I see that the test suites in the storage plugins use `testClasses`. Would adding actual snakefiles and a script to run them also help or does that not follow the plugin standards? <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced new methods for managing Google Cloud Storage: `ensure_bucket_exists` and `upload_directory`. - Added a test case for handling non-empty directories. - **Bug Fixes** - Enhanced the deletion process for directories in Google Cloud Storage. - **Chores** - Created a `.gitignore` file to improve repository cleanliness by excluding unnecessary files. - Updated GitHub Actions CI configuration for improved test output visibility. - **Tests** - Enhanced test suite with additional debugging output and a focus on file operations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Johannes Köster <johannes.koester@uni-due.de>
- Loading branch information
1 parent
c7ba28e
commit 27c80dc
Showing
6 changed files
with
662 additions
and
522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# coverage | ||
|
||
.coverage | ||
|
||
# .pytest_cache | ||
|
||
pytest_cache | ||
|
||
|
||
# __pycache__ and any .pyc files | ||
|
||
__pycache__ | ||
*.pyc | ||
|
||
**/__pycache__/ | ||
**/*.pyc | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters