-
Notifications
You must be signed in to change notification settings - Fork 264
Do not process closed PRs #2471
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
Conversation
|
A new Pull Request was created by @iarspider for branch master. @cmsbuild, @iarspider, @smuzaffar can you please review it and eventually sign? Thanks. |
|
cms-bot internal usage |
ed8841b to
a023f5d
Compare
|
Pull request #2471 was updated. |
process_pr.py
Outdated
| logger.debug("All Parameters: %s", global_test_params) | ||
| # For now, only trigger tests for cms-sw/cmssw and cms-sw/cmsdist | ||
| if create_test_property: | ||
| if create_test_property and bot_status is not None and not is_closed_pr: |
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.
@iarspider , checking for bot_status has no use here. It might be empty for first run but on next bot run it will have some statuses . all of your current changes are not needed. A simple change like
if pr.state == "closed":
create_test_property=False
after https://github.com/cms-sw/cms-bot/blob/master/process_pr.py#L1080 line will stop running PR tests for closed PRs.
I also wanted to avoid creating new statuses if PR is closed and old statuses are empty. It could be that there is bug on github side and they restore the old commit statuses at some point. If we create new statuses then they might not be able to restore them
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.
Ah, I see. I will now work on the second part of this PR (not updating statuses).
a023f5d to
f5ff616
Compare
|
Pull request #2471 was updated. |
|
Pull request #2471 was updated. |
|
instead of uses |
|
Pull request #2471 was updated. |
|
@iarspider , I have tested this for cms-sw/cmssw#40600 and it worked fine but it did change the label to |
|
@smuzaffar so if we don't create status, we also don't change test labels, right? We do want to change other labels (e.g. |
|
@iarspider , not exactly. We will still allow to change labels ( e.g. when someone signs a already merged PR) but we should avoid changing test labels for closed PRs |
Understood. |
@iarspider , Note that we do want bot to update the tests labels for PRs for which release managers has merged while tests are still running. So we should avoid changing test labels for closed PRs which also have no commit statuses . |
|
Pull request #2471 was updated. |
035f5dd to
2677e37
Compare
|
Pull request #2471 was updated. |
|
+externals looks good, tested at cms-sw/cmssw#40598 and cms-sw/cmssw#40599 and bot did not set commit statuses or changed test labels |
|
This pull request is fully signed and it will be integrated in one of the next master IBs after it passes the integration tests. This pull request will now be reviewed by the release team before it's merged. @mandrenguyen, @antoniovilela, @rappoccio, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2) |
@smuzaffar as discussed