-
Notifications
You must be signed in to change notification settings - Fork 0
patch: clean main #291
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
danielboloc
wants to merge
41
commits into
main
Choose a base branch
from
clean-main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
patch: clean main #291
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
fae2ce0
refactor: move functionality from main file
danielboloc deb62c3
test: update imports
danielboloc 300868a
docs: updage changes and version
danielboloc 69d39b7
refactor: jobs
danielboloc 44517f6
refactor: update missing code
danielboloc 20d6c29
refactor: link
danielboloc 8b5c571
ci: add run and abort
danielboloc e05a81e
ci: adds job resume
danielboloc 0030ddf
ci: adds configure tests
danielboloc 4fa5d87
ci: adds configure tests + workdir --delete
danielboloc e24b504
ci: remove typo duplicate
danielboloc 3b8d3a6
ci: update resume option
danielboloc 76324f7
ci: refactor to not have hardcoded jobs
danielboloc 0dc66aa
ci: update job_workdir, job_resume to run before delete_workdir
danielboloc f95f64b
ci: add job id dependency
danielboloc 960586f
refactor: remove unsed files
danielboloc 3324304
ci: change dependency for workdir --delete
danielboloc bc6b34a
ci: update workdir --delete
danielboloc a5f9e77
ci: update resume
danielboloc daf0f16
ci: update resume
danielboloc 6481003
update wait completion
danielboloc 65ad173
update resume job id
danielboloc 14c5e9d
ci: update resume output
danielboloc 7d5745f
review: add debug to all commands
danielboloc 14ce493
review: resolve Leila's conversations
danielboloc c24d2bb
review: add python versions 3.9, 3.11, 3.15 for all the tests
danielboloc 70b2a2f
review: change latest supported python versions 3.13 for all the tests
danielboloc f5d2363
review: use exit 1
danielboloc 379bcd7
review: moved imports at the top
danielboloc d85f68b
Update CHANGELOG.md
danielboloc dbe0389
Update cloudos_cli/_version.py
danielboloc 150fd44
revert: use python 3.9 only for now in platform tests
danielboloc c6c4ad8
refactor: add missing variable
danielboloc 7869693
ci: update versions
danielboloc dac4d2c
refactor: add constants in own file
danielboloc f099f1a
ci: filter by default queue
danielboloc 7b92ab6
ci: fix intermittent failure
danielboloc b7ac096
refactor: remove unused interpolations
danielboloc 0b310f2
style: remove whitespaces
danielboloc 58ff636
style: remove whitespaces
danielboloc 2ec054c
ci: temporarily disable filter-queue
danielboloc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
| @@ -1 +1 @@ | ||
| __version__ = '2.78.0' | ||
| __version__ = '2.79.0' |
This file contains hidden or 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 @@ | ||
| """Bash job-related CLI commands.""" |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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,49 @@ | ||
| """CLI commands for CloudOS configuration management.""" | ||
|
|
||
| import rich_click as click | ||
| from cloudos_cli.configure.configure import ConfigurationProfile | ||
| from cloudos_cli.logging.logger import update_command_context_from_click | ||
| from cloudos_cli.utils.cli_helpers import pass_debug_to_subcommands | ||
|
|
||
|
|
||
| # Create the configure group | ||
| @click.group(cls=pass_debug_to_subcommands(), invoke_without_command=True) | ||
| @click.option('--profile', help='Profile to use from the config file', default='default') | ||
| @click.option('--make-default', | ||
| is_flag=True, | ||
| help='Make the profile the default one.') | ||
| @click.pass_context | ||
| def configure(ctx, profile, make_default): | ||
| """CloudOS configuration.""" | ||
| print(configure.__doc__ + '\n') | ||
| update_command_context_from_click(ctx) | ||
| profile = profile or ctx.obj['profile'] | ||
| config_manager = ConfigurationProfile() | ||
|
|
||
| if ctx.invoked_subcommand is None and profile == "default" and not make_default: | ||
| config_manager.create_profile_from_input(profile_name="default") | ||
|
|
||
| if profile != "default" and not make_default: | ||
| config_manager.create_profile_from_input(profile_name=profile) | ||
| if make_default: | ||
| config_manager.make_default_profile(profile_name=profile) | ||
|
|
||
|
|
||
| @configure.command('list-profiles') | ||
| def list_profiles(): | ||
| """List all available configuration profiles.""" | ||
| config_manager = ConfigurationProfile() | ||
| config_manager.list_profiles() | ||
|
|
||
|
|
||
| @configure.command('remove-profile') | ||
| @click.option('--profile', | ||
| help='Name of the profile. Not using this option will lead to profile named "deafults" being generated', | ||
| required=True) | ||
| @click.pass_context | ||
| def remove_profile(ctx, profile): | ||
| """Remove a configuration profile.""" | ||
| update_command_context_from_click(ctx) | ||
| profile = profile or ctx.obj['profile'] | ||
| config_manager = ConfigurationProfile() | ||
| config_manager.remove_profile(profile) |
This file contains hidden or 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 hidden or 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,24 @@ | ||
| """Global constants for CloudOS CLI.""" | ||
|
|
||
| # Job status constants | ||
| JOB_COMPLETED = 'completed' | ||
| JOB_FAILED = 'failed' | ||
| JOB_ABORTED = 'aborted' | ||
|
|
||
| # Nextflow version constants | ||
| AWS_NEXTFLOW_VERSIONS = ['22.10.8', '24.04.4'] | ||
| AZURE_NEXTFLOW_VERSIONS = ['22.11.1-edge'] | ||
| HPC_NEXTFLOW_VERSIONS = ['22.10.8'] | ||
| AWS_NEXTFLOW_LATEST = '24.04.4' | ||
| AZURE_NEXTFLOW_LATEST = '22.11.1-edge' | ||
| HPC_NEXTFLOW_LATEST = '22.10.8' | ||
|
|
||
| # Job abort states | ||
| ABORT_JOB_STATES = ['running', 'initializing'] | ||
|
|
||
| # Request interval for Cromwell | ||
| REQUEST_INTERVAL_CROMWELL = 30 | ||
|
|
||
| # Global constants for CloudOS CLI | ||
| CLOUDOS_URL = 'https://cloudos.lifebit.ai' | ||
| INIT_PROFILE = 'initialisingProfile' |
This file contains hidden or 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 @@ | ||
| """Cromwell server-related CLI commands.""" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.