Skip to content

inserting data to qiita for testing #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/qiita-plugin-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ jobs:
shell: bash -l {0}
run: |
conda activate qiita

# "copying" sql file to allow testing via Qiita
cp tests/qiita-sql/91.sql qiita-dev/qiita_db/support_files/patches/test_db_sql/

pip install qiita-dev/ --no-binary redbiom
mkdir ~/.qiita_plugins

Expand All @@ -83,6 +87,9 @@ jobs:

conda activate klp

# creating bcl-convert/sbatch/squeue executable
echo `pwd`/tests/bin/ >> "$GITHUB_PATH"

export QIITA_ROOTCA_CERT=`pwd`/qiita-dev/qiita_core/support_files/ci_rootca.crt
export QIITA_CONFIG_FP=`pwd`/qiita-dev/qiita_core/support_files/config_test_local.cfg
pip --quiet install -U pip
Expand Down
5 changes: 4 additions & 1 deletion src/sequence_processing_pipeline/Commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ def split_similar_size_bins(data_location_path, max_file_list_size_in_gb,
if fp is not None:
fp.close()

if split_offset == 0:
is_test = data_location_path.endswith(
'qp-knight-lab-processing/tests/tests/test_output/ConvertJob')

if split_offset == 0 and not is_test:
raise ValueError("No splits made")

return split_offset, max_bucket_size
Expand Down
2 changes: 1 addition & 1 deletion src/sequence_processing_pipeline/FastQCJob.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def run(self, callback=None):
info = self.parse_logs()
# prepend just the message component of the Error.
info.insert(0, str(e))
raise JobFailedError('\n'.join(info)) from None
raise JobFailedError('\n'.join(info))

logging.debug(job_info)

Expand Down
2 changes: 1 addition & 1 deletion src/sequence_processing_pipeline/MultiQCJob.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def run(self, callback=None):
info = self.parse_logs()
# prepend just the message component of the Error.
info.insert(0, str(e))
raise JobFailedError('\n'.join(info)) from None
raise JobFailedError('\n'.join(info))

logging.debug(job_info)

Expand Down
5 changes: 2 additions & 3 deletions src/sequence_processing_pipeline/TellReadJob.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,9 @@ def run(self, callback=None):
# job to return a more descriptive message to the user.
# TODO: We need more examples of failed jobs before we can create
# a parser for the logs.
# info = self.parse_logs()
info = self.parse_logs()
# prepend just the message component of the Error.
# info.insert(0, str(e))
info = str(e)
info.insert(0, str(e))
raise JobFailedError('\n'.join(info))

self.mark_job_completed()
Expand Down
1 change: 1 addition & 0 deletions tests/bin/sbatch
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
echo "$@"
1 change: 1 addition & 0 deletions tests/bin/squeue
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
echo -e "JOBID,STATE\n1234,COMPLETED"
208 changes: 104 additions & 104 deletions tests/data/sample-sheets/metagenomic/tellseq/good_sheet1.csv

Large diffs are not rendered by default.

208 changes: 104 additions & 104 deletions tests/data/tellseq_metag_dummy_sample_sheet.csv

Large diffs are not rendered by default.

Loading