Skip to content

build: avoid using CMP for BZ2File - #31198

Closed
ghost wants to merge 2 commits into
masterfrom
unknown repository
Closed

build: avoid using CMP for BZ2File#31198
ghost wants to merge 2 commits into
masterfrom
unknown repository

Conversation

@ghost

@ghostghost commented Jan 5, 2020

Copy link
Copy Markdown

Some Python distributions do not support
context manager protocol (CMP) for BZ2File.

Fixes#30949

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Some Python distributions do not support
context manager protocol (CMP) for BZ2File.
@nodejs-github-botnodejs-github-bot added the build Issues and PRs related to build files or the CI. label Jan 5, 2020
Comment threadconfigure.py Outdated
@BridgeARBridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jan 6, 2020
@BridgeAR

Copy link
Copy Markdown
Member

Marked as author ready. I do not think we have any CI that could test this, so we should not require a CI run.

@Trott

Trott commented Jan 7, 2020

Copy link
Copy Markdown
Member

/ping @nodejs/python

@Trott

Trott commented Jan 7, 2020

Copy link
Copy Markdown
Member

Marked as author ready. I do not think we have any CI that could test this, so we should not require a CI run.

Lite CI might be good just to make sure this doesn't break Jenkins in a surprising totally-unexpected way.

@cclausscclauss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

After looking at exceptions in https://docs.python.org/3/library/contextlib.html, I no longer believe that the proposed change is equivalent to the current code. If shutil.copyfileobj() raises an exception, will inf.close() happen??

@Trott

Trott commented Jan 7, 2020

Copy link
Copy Markdown
Member

Lite CI: https://ci.nodejs.org/job/node-test-pull-request-lite-pipeline/4119/

Lite CI: https://ci.nodejs.org/job/node-test-pull-request-lite-pipeline/4120/

Lite CI seems to be not working right now. Going to run a full CI.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Trott pushed a commit that referenced this pull request Jan 8, 2020
Some Python distributions do not support
context manager protocol (CMP) for BZ2File.
PR-URL: #31198
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Christian Clauss <cclauss@me.com>
@Trott

Trott commented Jan 8, 2020

Copy link
Copy Markdown
Member

Landed in bd6d651

Thanks for the contribution! 🎉

@TrottTrott closed this Jan 8, 2020
MylesBorins pushed a commit that referenced this pull request Jan 16, 2020
Some Python distributions do not support
context manager protocol (CMP) for BZ2File.
PR-URL: #31198
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Christian Clauss <cclauss@me.com>
@codebyterecodebytere mentioned this pull request Jan 16, 2020
@codebytere

Copy link
Copy Markdown
Member

This looks like it needs a backport but it doesn't land cleanly at all - would someone from @nodejs/platform-windows be able to help since the original committer's account is gone now?

@targostargos removed author ready PRs that have at least one approval, no pending requests for changes, and a CI started. backport-requested-v12.x labels Apr 25, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

buildIssues and PRs related to build files or the CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to build nodejs

9 participants

@BridgeAR@Trott@nodejs-github-bot@codebytere@bnoordhuis@jasnell@addaleax@cclauss@targos