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

Autotester: allow testing of external contributions w/o approval #9197

Open
mayrmt opened this issue Jun 1, 2021 · 15 comments
Open

Autotester: allow testing of external contributions w/o approval #9197

mayrmt opened this issue Jun 1, 2021 · 15 comments
Labels
PA: Framework Issues that fall under the Trilinos Framework Product Area process improvement type: enhancement Issue is an enhancement, not a bug

Comments

@mayrmt
Copy link
Member

mayrmt commented Jun 1, 2021

Enhancement

@trilinos/framework

I'm putting out this idea for discussion.

Current state and problem description

Currently, PRs submitted by external developers (i.e. not a member of the GitHub Trilinos organization) are only tested by the autotester, if they have been approved. However, this often leaves them in this weird state of being approved "just for the sake of testing", but without an actual code review. In theory, they could be merged "unreviewed".

Examples:

I can definitely understand, that one wants to somehow control, which/how many external PRs are tested. However, requiring approval just to trigger the tests seems weird to me as outlined above.

I also see value in starting testing early on, as some problems only become evident during testing and then often require several iterations of code changes and testing.

Possible solution

As far as I know, labels can only be applied by members of the Trilinos organization. So, instead of requiring approval, one could trigger the autotester for external PRs by setting a label "AT: ready for testing". This would still require some action of a Trilinos member to trigger testing, hence uncontrolled overload of testing machines by external PRs can be avoided as well. However, testing would be possible without premature PR approvals.

@mayrmt mayrmt added type: enhancement Issue is an enhancement, not a bug process improvement labels Jun 1, 2021
@jhux2
Copy link
Member

jhux2 commented Jun 1, 2021

@trilinos/trilinos-product-owners @ccober6

@mayrmt
Copy link
Member Author

mayrmt commented Jun 10, 2021

Here's another example: PR #9259

@jhux2
Copy link
Member

jhux2 commented Jun 10, 2021

As far as I know, labels can only be applied by members of the Trilinos organization.

Is this true? I've seen users add the question label.

So, instead of requiring approval, one could trigger the autotester for external PRs by setting a label "AT: ready for testing". This would still require some action of a Trilinos member to trigger testing, hence uncontrolled overload of testing machines by external PRs can be avoided as well.

@mayrmt
Copy link
Member Author

mayrmt commented Jun 11, 2021

@jhux2 asked:

Is this true? I've seen users add the question label.

I think so. I just had my colleague @maxfirmbach (not a member of Trilinos) double check. He has created PR #9153, but he can't add labels to it. Specifically, he cannot see the little gear symbol next to labels on the PR website, while I can. So, seems that there's a difference.

@jhux2
Copy link
Member

jhux2 commented Oct 29, 2021

@mayrmt The framework team has implemented this option. It's called AT: PRE-TEST INSPECTED. My understanding is that merging a PR from someone who isn't a member of Trilinos is now a two-step process:

  1. Apply the label AT: PRE-TEST INSPECTED to initiate testing.
  2. Formally review the PR. This alone does not start testing , you need step 1).

For Trilinos members, the workflow is unchanged.

@mayrmt
Copy link
Member Author

mayrmt commented Oct 30, 2021

@jhux2 Thanks for following up on this!

I'll leave this issue open, until I have tried that process. Then, I'll close.

@mayrmt
Copy link
Member Author

mayrmt commented Nov 26, 2021

I've seen the label AT: PRE-TEST INSPECTED in action quite some times, so let's close this issue. Thanks to @trilinos/framework for setting this up!

@mayrmt mayrmt closed this as completed Nov 26, 2021
@mayrmt
Copy link
Member Author

mayrmt commented Apr 27, 2022

In PR #10437, I'm seeing that the autotester asks for the AT: PRE-TEST INSPECTED label even after the PR has been approved (see this comment by the attester: #10437 (comment)). Is this an intended behavior? I'd say that approval from code owners should include the pre-test inspection, right?

@mayrmt mayrmt reopened this Apr 27, 2022
@e10harvey
Copy link
Contributor

Is this an intended behavior?

Yes.

I'd say that approval from code owners should include the pre-test inspection, right?

This is pending in the next auto-tester release.

@github-actions
Copy link

This issue has had no activity for 365 days and is marked for closure. It will be closed after an additional 30 days of inactivity.
If you would like to keep this issue open please add a comment and/or remove the MARKED_FOR_CLOSURE label.
If this issue should be kept open even with no activity beyond the time limits you can add the label DO_NOT_AUTOCLOSE.
If it is ok for this issue to be closed, feel free to go ahead and close it. Please do not add any comments or change any labels or otherwise touch this issue unless your intention is to reset the inactivity counter for an additional year.

@github-actions github-actions bot added the MARKED_FOR_CLOSURE Issue or PR is marked for auto-closure by the GitHub Actions bot. label Apr 29, 2023
@mayrmt
Copy link
Member Author

mayrmt commented Apr 29, 2023

This comment states that some changes to the auto-tester are pending. Not sure, if they have already been done. Let's keep this issue open until this has been verified.

@mayrmt mayrmt removed the MARKED_FOR_CLOSURE Issue or PR is marked for auto-closure by the GitHub Actions bot. label Apr 29, 2023
@GrahamBenHarper GrahamBenHarper added the PA: Framework Issues that fall under the Trilinos Framework Product Area label Apr 29, 2023
Copy link

github-actions bot commented May 1, 2024

This issue has had no activity for 365 days and is marked for closure. It will be closed after an additional 30 days of inactivity.
If you would like to keep this issue open please add a comment and/or remove the MARKED_FOR_CLOSURE label.
If this issue should be kept open even with no activity beyond the time limits you can add the label DO_NOT_AUTOCLOSE.
If it is ok for this issue to be closed, feel free to go ahead and close it. Please do not add any comments or change any labels or otherwise touch this issue unless your intention is to reset the inactivity counter for an additional year.

@github-actions github-actions bot added the MARKED_FOR_CLOSURE Issue or PR is marked for auto-closure by the GitHub Actions bot. label May 1, 2024
@mayrmt
Copy link
Member Author

mayrmt commented May 19, 2024

Still an open topic...

@e10harvey
Copy link
Contributor

CC: @sebrowne, @triple3567

@github-actions github-actions bot removed the MARKED_FOR_CLOSURE Issue or PR is marked for auto-closure by the GitHub Actions bot. label May 22, 2024
@jhux2
Copy link
Member

jhux2 commented May 22, 2024

@mayrmt Approval doesn't imply pre-test inspected. The latter is explicitly needed in order for the autotester to run on a PR authored by someone who isn't in the Trilinos organization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PA: Framework Issues that fall under the Trilinos Framework Product Area process improvement type: enhancement Issue is an enhancement, not a bug
Projects
None yet
Development

No branches or pull requests

4 participants