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

Fails issue number check even with skip-issue set #468

Closed
vsajip opened this issue Jun 9, 2022 · 5 comments · Fixed by #487
Closed

Fails issue number check even with skip-issue set #468

vsajip opened this issue Jun 9, 2022 · 5 comments · Fixed by #487
Labels

Comments

@vsajip
Copy link
Member

vsajip commented Jun 9, 2022

I created a documentation improvement PR with no issue number and with skip-issue set. There was no problem with bedevere on this, and I successfully merged the PR in due course. I then set back-port flags for 3.10 and 3.11; back-port PRs were duly created and correctly inherited the skip-issue label. There were no problems with bedevere on these, either. The 3.11 back-port PR tests ran successfully and I merged it, too. The 3.10 back-port PR is where the problem occurred, though not initially. The tests for this failed due to a suspicious.py check and, to see if this was some transient issue, I closed the PR and opened it again just to re-run the tests. At this point, bedevere failed the PR on the issue number. The problem is that the back-port PR contains the text (GH-96344) from the original PR against main; for some reason, bedevere interprets this as an invalid issue number, when it would seem that it should check for the presence of skip-issue first. This is the 3.10 back-port PR which shows the issue.

@hugovk hugovk added the bug label Jun 10, 2022
@hugovk
Copy link
Member

hugovk commented Jun 10, 2022

I think it might be failing here, perhaps because it's expecting an issue number but it's a (backport) PR number?

async def _validate_issue_number(

@vsajip
Copy link
Member Author

vsajip commented Jun 10, 2022

But why would this be called when the skip-issue label is applied?

@DanielNoord
Copy link
Contributor

I have a fix for this in #487. A review would be appreciated 😄

@ezio-melotti
Copy link
Member

I just got bitten by this:

The reason seems to be that for 3.10 I added the skip-issue label while creating the PR, whereas for 3.11 it was added after the creation. Removing and adding back the skip-issue label on 3.10 fixed the issue.

Repository owner moved this from Todo to Done in CPython labels Oct 10, 2022
@ezio-melotti
Copy link
Member

After merging #487 I manually created python/cpython#98163 and got:
image

The fix seems to work, thanks @DanielNoord!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants