Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
5331d3d
Move over debug workflow branch (#202)
sminot Apr 17, 2026
bbabc29
Don't catch naked exceptions
sminot Apr 17, 2026
c5b6f6b
cirro debug with no arguments -> --help
sminot Apr 17, 2026
a2b5913
Update test for 404
sminot Apr 17, 2026
7858b83
Update exceptions
sminot Apr 17, 2026
02486a9
Tests
sminot Apr 17, 2026
0ad527c
scratch file access context does not depend on dataset id
nathanthorpe May 14, 2026
a4aa413
Suppress SonarCloud python:S112 and python:S3776 issues
sminot May 22, 2026
7d757ce
Fix doc string
sminot May 22, 2026
28229f1
Load tasks via execution API for Cromwell and as Nextflow fallback
sminot May 22, 2026
3eda282
Use API for tasks in any case
sminot May 22, 2026
ccca935
Notebook example for debug
sminot May 22, 2026
16a369d
Fix ext
sminot May 22, 2026
dcbc7b2
Fix docstring for logs
sminot May 22, 2026
cff2a0c
Address SonarQube issues
sminot May 22, 2026
1f43c87
Use execution API for task details and files
sminot May 22, 2026
8ddffc6
Require cirro_api_client 1.5.0 for task files endpoint
sminot May 22, 2026
dd1a71b
Update to cirro_api_client 1.5.0 and integrate new features
sminot May 26, 2026
9c392e7
Address PR review comments
sminot May 26, 2026
35055aa
Regenerate poetry.lock to match pyproject.toml
sminot May 26, 2026
b2ec1dd
Specify file extensions to include, not binary to exclude
sminot May 26, 2026
44701b1
Fix flake8 lint errors and switch to text extension whitelist
sminot May 26, 2026
4c0f47f
Fix blockers and bugs found by deep review
sminot May 26, 2026
2e29848
don't check for resp.events
nathanthorpe May 27, 2026
5d4117d
move nextflow utils
nathanthorpe May 27, 2026
6b54411
this only tests wiring
nathanthorpe May 27, 2026
cc21cc5
move file reading methods over to mixin, remove 'prefer uri' since pa…
nathanthorpe May 27, 2026
fc4b29f
export DataPortalFile so it shows up in API docs in the main page
nathanthorpe May 27, 2026
225a7ca
remove test
nathanthorpe May 27, 2026
6f4d783
lint
nathanthorpe May 27, 2026
2d245ca
fix test
nathanthorpe May 27, 2026
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
2 changes: 2 additions & 0 deletions cirro/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import cirro.file_utils # noqa
from cirro.cirro_client import CirroApi
from cirro.sdk.dataset import DataPortalDataset
from cirro.sdk.file import DataPortalFile
from cirro.sdk.login import DataPortalLogin
from cirro.sdk.portal import DataPortal
from cirro.sdk.process import DataPortalProcess
Expand All @@ -14,6 +15,7 @@
'DataPortalProcess',
'DataPortalDataset',
'DataPortalReference',
'DataPortalFile',
'CirroApi',
'file_utils'
]
2 changes: 2 additions & 0 deletions cirro/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from cirro.cli.controller import run_ingest, run_download, run_configure, run_list_datasets
from cirro.cli.controller import run_create_pipeline_config, run_validate_folder
from cirro.cli.controller import run_list_projects, run_list_files
from cirro.cli.debug import run_debug

__all__ = [
'run_ingest',
Expand All @@ -11,4 +12,5 @@
'run_validate_folder',
'run_list_projects',
'run_list_files',
'run_debug',
]
16 changes: 16 additions & 0 deletions cirro/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from cirro.cli import run_create_pipeline_config, run_validate_folder
from cirro.cli import run_ingest, run_download, run_configure, run_list_datasets
from cirro.cli.controller import handle_error, run_upload_reference, run_list_projects, run_list_files
from cirro.cli.debug import run_debug
from cirro.cli.interactive.utils import InputError


Expand Down Expand Up @@ -142,6 +143,21 @@ def upload_reference(**kwargs):
run_upload_reference(kwargs, interactive=kwargs.get('interactive'))


@run.command(help='Debug a failed workflow execution', no_args_is_help=True)
@click.option('--project',
help='Name or ID of the project',
default=None)
@click.option('--dataset',
help='Name or ID of the dataset',
default=None)
@click.option('-i', '--interactive',
help='Gather arguments interactively',
is_flag=True, default=False)
def debug(**kwargs):
check_required_args(kwargs)
run_debug(kwargs, interactive=kwargs.get('interactive'))


@run.command(help='Configure authentication')
def configure():
run_configure()
Expand Down
7 changes: 4 additions & 3 deletions cirro/cli/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
from cirro.cirro_client import CirroApi
from cirro.cli.interactive.auth_args import gather_auth_config
from cirro.cli.interactive.create_pipeline_config import gather_create_pipeline_config_arguments
from cirro.cli.interactive.download_args import gather_download_arguments, ask_dataset_files
from cirro.cli.interactive.download_args import gather_download_arguments_dataset
from cirro.cli.interactive.download_args import gather_download_arguments, ask_dataset_files, \
gather_download_arguments_dataset
from cirro.cli.interactive.list_dataset_args import gather_list_arguments
from cirro.cli.interactive.upload_args import gather_upload_arguments
from cirro.cli.interactive.upload_reference_args import gather_reference_upload_arguments
from cirro.cli.interactive.utils import get_id_from_name, get_item_from_name_or_id, InputError, validate_files
from cirro.cli.interactive.utils import get_id_from_name, get_item_from_name_or_id, InputError, \
validate_files
from cirro.cli.interactive.validate_args import gather_validate_arguments, gather_validate_arguments_dataset
from cirro.cli.models import ListArguments, UploadArguments, DownloadArguments, CreatePipelineConfigArguments, \
UploadReferenceArguments, ValidateArguments, ListFilesArguments
Expand Down
Loading
Loading