Skip to content

add a 'sync pr' message when the PR has a mergeable state but is showing a failed status for the test suite on the last commit#3967

Merged
boegel merged 3 commits intoeasybuilders:developfrom
branfosj:20220219114626_new_pr_IZhhHBLEEX
Mar 2, 2022
Merged

add a 'sync pr' message when the PR has a mergeable state but is showing a failed status for the test suite on the last commit#3967
boegel merged 3 commits intoeasybuilders:developfrom
branfosj:20220219114626_new_pr_IZhhHBLEEX

Conversation

@branfosj
Copy link
Copy Markdown
Member

For #3490

If an easyconfigs PR fails the test suite, because a dep is in another PR or it needs a new / updated easyblock, then closing/reopening the PR to retrigger the test suite does not clear the status_last_commit even though the mergeable_state is fine (and the web UI will show the merge button). In this case we should give a suggestion to sync the PR.

…g a failed status for the test suite on the last commit
@branfosj
Copy link
Copy Markdown
Member Author

The alternative to this is to treat mergeable_state as the test of if we can merge the PR, with status_last_commit only being used to determine a possible reason why the PR is not in a mergeable state - i.e. if the PR is not mergeable then that may because the CI is pending or failed.

@boegel boegel added this to the 4.x milestone Mar 1, 2022
@boegel boegel changed the title Add a 'sync pr' message when the PR has a mergeable state but is showing a failed status for the test suite on the last commit add a 'sync pr' message when the PR has a mergeable state but is showing a failed status for the test suite on the last commit Mar 1, 2022
Comment thread easybuild/tools/github.py Outdated
res = not_eligible(msg_tmpl % reason)

if failed_status_last_commit and mergeable:
print_msg("\nThis PR is mergeable but the test suite has a failed status. Try syncing the PR.", prefix=False)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe Try syncing the PR should be a bit more specific, it could say "Try syncing the PR with the develop branch using 'eb --sync-pr-with-develop XXX'"?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

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

lgtm

@boegel boegel modified the milestones: 4.x, next release (4.5.4?) Mar 2, 2022
@boegel boegel merged commit 1ea947d into easybuilders:develop Mar 2, 2022
@branfosj branfosj deleted the 20220219114626_new_pr_IZhhHBLEEX branch March 2, 2022 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants