Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix Circle merge on master branch. #20709

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

Merged
merged 1 commit into from
Jul 21, 2021
Merged

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Jul 21, 2021

PR Summary

There exists a PR on a random fork, which fills in CI_PULL_REQUEST, which we don't want to use as merge target when building master. Instead, check CIRCLE_PR_NUMBER, which is set only on forked PRs. Also, check branch name (which is current, not the target) to be certain.

Followup to #20680, @larsoner

PR Checklist

  • [n/a] Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (run flake8 on changed files to check).
  • [n/a] New features are documented, with examples if plot related.
  • [n/a] Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • [n/a] Conforms to Matplotlib style conventions (install flake8-docstrings and run flake8 --docstring-convention=all).
  • [n/a] New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • [n/a] API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).

There exists a PR on a random fork, which fills in `CI_PULL_REQUEST`,
which we don't want to use as merge target when building `master`.
Instead, check `CIRCLE_PR_NUMBER`, which is set only on forked PRs.
Also, check branch name (which is current, not the _target_) to be
certain.
@QuLogic QuLogic added this to the v3.5.0 milestone Jul 21, 2021
@tacaswell
Copy link
Member

We should wait for circle to finish and then merge. We won't see if this actually fixed the problem until it lands on master.

Copy link
Member

@tacaswell tacaswell left a comment

Choose a reason for hiding this comment

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

anyone can merge when CircleCI is green.

@larsoner
Copy link
Contributor

There exists a PR on a random fork, which fills in CI_PULL_REQUEST, which we don't want to use as merge target when building master

Wow, I've never seen that crop up before! Your solution sounds reasonable to me

@timhoffm
Copy link
Member

Let's try this.

@jklymak jklymak merged commit 1a8caa5 into matplotlib:master Jul 21, 2021
@jklymak
Copy link
Member

jklymak commented Jul 21, 2021

ooops; sorry @timhoffm your message came in as I hit the Merge button

@timhoffm
Copy link
Member

GitHub is not thread-safe. 🤣

@QuLogic QuLogic deleted the fix-circle-merge branch July 21, 2021 21:40
@QuLogic
Copy link
Member Author

QuLogic commented Jul 22, 2021

It was successful, I believe: this PR merged while master didn't.

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.

5 participants