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

[RFE] Allow re-run of existing cross repo #553

Open
NickLaMuro opened this issue Mar 25, 2021 · 8 comments
Open

[RFE] Allow re-run of existing cross repo #553

NickLaMuro opened this issue Mar 25, 2021 · 8 comments

Comments

@NickLaMuro
Copy link
Member

Generally speaking, when using cross_repo_test, you aren't going to nail it on the first go.

Unfortunately with the current implementation of cross_repo_test, @miq-bot owns the PR, so it is the only one that re-trigger the build.

The feature here would be to allow a way of retriggering the cross repo build so that you can test again with the latest commits.

Option #1

A first pass might just be adding a new command that looks like this:

@miq-bot cross_repo_retest ManageIQ/manageiq-cross_repo-tests#1234

And the bot will close/open that PR, re-triggering the cross repo tests. This doesn't address making changes to what is being tested, so some further thought for how to make additions to that would need to be considered.

Option #2

Re-use cross-repo-tests, but allow for no-args. If a previous cross-repo-tests command is detected, then it will just use that PR.

@miq-bot cross_repo_tests

This would also allow for adding additions or subtractions if needed, as you could just take the original command, and add/subtract from it. In this form, it would just re-write the existing commit if a PR is already detected.

@Fryguy
Copy link
Member

Fryguy commented Mar 25, 2021

No need to specify the PR if you're in the PR... @miq-bot cross-repo-retest is sufficient

@Fryguy
Copy link
Member

Fryguy commented Mar 25, 2021

I was thinking something like option 2. A bare call would retest (close/open PR or just kick directly via Travis API). Additionally, sometimes you get the list of repos wrong, so this would allow re-requesting with a different set of repos. I would just do a replace though; supporting add/remove repos is just too complicated, so just force the user to re-specify the whole thing.

@chessbyte
Copy link
Member

How about the simpler @miq-bot retest on the PR?

@NickLaMuro
Copy link
Member Author

@chessbyte I think the reason for that is it doesn't solve the second problem of being able to update the original cross repo run.

If we overload the existing functionality slightly (allow for "no args" to trigger a retest), we can also handle the case where tested repos need to be updated.

An example of where needing to update would happen would have been the Rails 6 effort:

ManageIQ/manageiq#19977

Where the list of repos to be tested expanded over time as we knew the full extent of what needed to be fixed as we upgraded, but allowing a smaller subset to be worked on at first to reduce the scope initially.

Reviewers could also think of what needs to also be validated after a initial cross repo has been issued.

@miq-bot
Copy link
Member

miq-bot commented Feb 27, 2023

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

@miq-bot miq-bot added the stale label Feb 27, 2023
@Fryguy Fryguy removed the stale label Mar 2, 2023
@kbrock
Copy link
Member

kbrock commented Mar 12, 2023

I like the idea of not adding a new command

You can specify a new list and it will update the existing one, otherwise or it will just kick it.

Not sure if we need to check if it is still open.

@miq-bot
Copy link
Member

miq-bot commented Mar 12, 2023

@NickLaMuro unrecognized command 'cross_repo_retest', ignoring...

Accepted commands are: add_label, add_reviewer, request_review, assign, close_issue, cross_repo_test, move_issue, remove_label, rm_label, remove_reviewer, set_milestone, unassign

@miq-bot
Copy link
Member

miq-bot commented Mar 12, 2023

@NickLaMuro 'cross-repo-test(s)' command is only valid on pull requests, ignoring...

@kbrock kbrock added the pinned label Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants