Skip to content

Fix Circle merge on master branch.#20709

Merged
jklymak merged 1 commit intomatplotlib:masterfrom
QuLogic:fix-circle-merge
Jul 21, 2021
Merged

Fix Circle merge on master branch.#20709
jklymak merged 1 commit intomatplotlib:masterfrom
QuLogic:fix-circle-merge

Conversation

@QuLogic
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

Let's try this.

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

jklymak commented Jul 21, 2021

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

@timhoffm
Copy link
Copy Markdown
Member

GitHub is not thread-safe. 🤣

@QuLogic QuLogic deleted the fix-circle-merge branch July 21, 2021 21:40
@QuLogic
Copy link
Copy Markdown
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