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

mach: Make ./mach try a little friendlier #31290

Merged
merged 1 commit into from Feb 8, 2024

Conversation

mrobinson
Copy link
Member

  1. Move ./mach try to `testing_commands.py which is a bit more
    consistent.
  2. Make ./mach try print out the remote name always and properly
    form the URL for ssh repositories.
  3. Print out the try configuration matrix to make it more obvious
    what is being triggered remotely.
  4. Better error handling. Print and error and exit if the remote isn't
    on GitHub and also clean up properly if something fails after making
    the temporary commit.

  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes do not require tests because they just change a build environment command.

Copy link
Member

@sagudev sagudev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are doing this could we also make git commands quiet using --quiet.

@mrobinson
Copy link
Member Author

@sagudev Thanks for the review. I've made the changes you've requested.

@mrobinson mrobinson force-pushed the try-improvements branch 2 times, most recently from aa42d10 to 8e2842a Compare February 8, 2024 10:47
Copy link
Member

@sagudev sagudev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1. Move `./mach try` to `testing_commands.py which is a bit more
   consistent.
2. Make `./mach try` print out the remote name always and properly
   form the URL for ssh repositories.
3. Print out the try configuration matrix to make it more obvious
   what is being triggered remotely.
4. Better error handling. Print and error and exit if the remote isn't
   on GitHub and also clean up properly if something fails after making
   the temporary commit.
@mrobinson
Copy link
Member Author

Something is wrong: https://github.com/sagudev/servo/actions/runs/7828494013/job/21358490263#step:5:54

I ran mach try webgpu full

It seems there was a bug when the commit message was more than a single line. I think I've fixed that now.

@mrobinson
Copy link
Member Author

Here's an example of the same test you ran: https://github.com/mrobinson/servo/actions/runs/7828643293/job/21358950457

Copy link
Member

@sagudev sagudev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for polishing mach try

@mrobinson
Copy link
Member Author

Thanks for polishing mach try

Sure thing. Thanks for implementing it originally. It's really useful!

@mrobinson mrobinson added this pull request to the merge queue Feb 8, 2024
Merged via the queue into servo:main with commit 5facf43 Feb 8, 2024
9 checks passed
@mrobinson mrobinson deleted the try-improvements branch February 8, 2024 12:40
Taym95 pushed a commit to Taym95/servo that referenced this pull request Feb 11, 2024
1. Move `./mach try` to `testing_commands.py which is a bit more
   consistent.
2. Make `./mach try` print out the remote name always and properly
   form the URL for ssh repositories.
3. Print out the try configuration matrix to make it more obvious
   what is being triggered remotely.
4. Better error handling. Print and error and exit if the remote isn't
   on GitHub and also clean up properly if something fails after making
   the temporary commit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants