Skip to content
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

Merged
merged 15 commits into from
Apr 5, 2024

Conversation

bra-i-am
Copy link
Contributor

@bra-i-am bra-i-am commented Mar 21, 2024

Description

This PR creates a new command to run extra commands added into a property DISTRO_EXTRA_COMMANDS in the config.yml file

Testing 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

@bra-i-am bra-i-am changed the title feat: create a new distro command to run extra tutor commands feat: create a new command to run extra tutor commands Mar 21, 2024
@dcoa
Copy link
Contributor

dcoa commented Mar 21, 2024

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
tutor plugins install mfe && tutor plugins enable mfe

I love being able to use it but it also allows me to run different commands like:
tutor plugins enable mfe && touch extra.py

Copy link
Member

@Alec4r Alec4r left a 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/

@bra-i-am bra-i-am force-pushed the bc/create_run_extra_commands branch from a943433 to 7cddc34 Compare April 1, 2024 23:09
Copy link
Contributor

@dcoa dcoa left a 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

@bra-i-am bra-i-am force-pushed the bc/create_run_extra_commands branch 4 times, most recently from 275959c to 2f32953 Compare April 2, 2024 15:22
@bra-i-am bra-i-am marked this pull request as ready for review April 2, 2024 15:23
* fix: solve tests failing because using a class method directly in tests
@bra-i-am bra-i-am force-pushed the bc/create_run_extra_commands branch from 2f32953 to fcd736d Compare April 2, 2024 15:25
@bra-i-am bra-i-am added the help wanted Extra attention is needed label Apr 2, 2024
Copy link
Contributor

@MaferMazu MaferMazu left a 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.

bra-i-am added 2 commits April 4, 2024 16:59
* fix: no sent CommandError when DISTRO_EXTRA_COMMANDS is no sent in the config.yml
Copy link
Contributor

@MaferMazu MaferMazu left a 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

@bra-i-am bra-i-am removed the help wanted Extra attention is needed label Apr 5, 2024
@bra-i-am bra-i-am merged commit 98eb210 into master Apr 5, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants