-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: create a new command to run extra tutor commands #59
Conversation
tutordistro/distro/extra_commands/infrastructure/tutor_commands.py
Outdated
Show resolved
Hide resolved
I tested it and works pretty well, in the middle of this process I found an edge case, running 2 or more commands in one line, such as I love being able to use it but it also allows me to run different commands like: |
tutordistro/distro/extra_commands/infrastructure/tutor_commands.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks nice for me/
480bb40
to
05bc60a
Compare
* refactor: solve some linter issues and
* refactor: execute the commands validation before any command is executed * test: fix tests to run with the latest changes
a943433
to
7cddc34
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that fixed the issue, thanks @bra-i-am
275959c
to
2f32953
Compare
* fix: solve tests failing because using a class method directly in tests
2f32953
to
fcd736d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry for not getting back to you sooner.
Thanks a lot for this PR; kudos for the test and the structure you built.
The primary function works as expected, but I get an error when I try to run the command run-extra-commands without defining DISTRO_EXTRA_COMMANDS. That behavior will generate errors in Picasso because we will run extra commands as part of the pipeline, and if someone doesn't need extra commands and doesn't have the variable, this breaks.
Another feedback is we probably want to add documentation about this new feature in the Usage section in the readme, to know how to use this new command.
But that's it; the rest looks super good. Thanks again.
* fix: no sent CommandError when DISTRO_EXTRA_COMMANDS is no sent in the config.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. Thanks for this, @bra-i-am ✨
Description
This PR creates a new command to run extra commands added into a property
DISTRO_EXTRA_COMMANDS
in theconfig.yml
fileTesting instructions
Access to the new pipeline of Picasso, "Build with Parameter" and click in "Build"; here you'll be testing the commands added in the config.yml from palm/dedalo strain. Feel free of modifying the commands as you like.
Additional information
JIRA ISSUE DS-826