Skip to content

build: use pathlib for paths - #47581

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
VoltrexKeyva:use-pathlib
May 2, 2023
Merged

build: use pathlib for paths#47581
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
VoltrexKeyva:use-pathlib

Conversation

@VoltrexKeyva

Copy link
Copy Markdown
Contributor

Use Python's pathlib library for paths and related operations instead of os.path.

Refs: #47323 (comment)#47323 (comment)

@nodejs-github-botnodejs-github-bot added build Issues and PRs related to build files or the CI. needs-ci PRs that need a full CI run. labels Apr 16, 2023
@VoltrexKeyvaVoltrexKeyva added the python PRs and issues that require attention from people who are familiar with Python. label Apr 16, 2023
Comment threadconfigure.py Outdated
@targos

Copy link
Copy Markdown
Member

@nodejs/python

Comment threadconfigure.py Outdated
@TrottTrott added request-ci Add this label to start a Jenkins CI on a PR. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. labels Apr 18, 2023
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 18, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@VoltrexKeyvaVoltrexKeyva added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 21, 2023
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 21, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@VoltrexKeyvaVoltrexKeyva added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 21, 2023
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 21, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@cclauss

Copy link
Copy Markdown
Contributor

@VoltrexKeyva Can you please create a pull request for all the non-pathlib changes so we can see if we can get that one to pass the tests and land first?

@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 2, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@VoltrexKeyva

Copy link
Copy Markdown
ContributorAuthor

@cclauss fortunately there are no failures, should we land this now?

@cclauss

Copy link
Copy Markdown
Contributor

Nice! Two approvals are above.

@VoltrexKeyvaVoltrexKeyva added the commit-queue Add this label to land a pull request using GitHub Actions. label May 2, 2023
@nodejs-github-botnodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels May 2, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator
Commit Queue failed
- Loading data for nodejs/node/pull/47581
✔ Done loading data for nodejs/node/pull/47581
----------------------------------- PR info ------------------------------------
Title build: use pathlib for paths (#47581)
Author Mohammed Keyvanzadeh (@VoltrexKeyva)
Branch VoltrexKeyva:use-pathlib -> nodejs:main
Labels build, python, author ready, needs-ci
Commits 1
- build: use pathlib for paths
Committers 1
- Mohammed Keyvanzadeh PR-URL: https://github.com/nodejs/node/pull/47581
Reviewed-By: Yagiz Nizipli Reviewed-By: Christian Clauss ------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/47581
Reviewed-By: Yagiz Nizipli Reviewed-By: Christian Clauss --------------------------------------------------------------------------------
⚠ Commits were pushed since the last review:
⚠ - build: use pathlib for paths
ℹ This PR was created on Sun, 16 Apr 2023 14:21:56 GMT
✔ Approvals: 2
✔ - Yagiz Nizipli (@anonrig): https://github.com/nodejs/node/pull/47581#pullrequestreview-1388073872
✔ - Christian Clauss (@cclauss): https://github.com/nodejs/node/pull/47581#pullrequestreview-1388196158
✔ Last GitHub CI successful
ℹ Last Full PR CI on 2023-05-02T14:23:08Z: https://ci.nodejs.org/job/node-test-pull-request/51578/
- Querying data for job/node-test-pull-request/51578/
✔ Last Jenkins CI successful
--------------------------------------------------------------------------------
✔ Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/4863726456

@VoltrexKeyva

Copy link
Copy Markdown
ContributorAuthor

@cclauss this'll need an approval again, as new changes invalidates the older approvals.

@cclauss
cclauss self-requested a review May 2, 2023 19:06
@VoltrexKeyvaVoltrexKeyva added commit-queue Add this label to land a pull request using GitHub Actions. and removed commit-queue-failed An error occurred while landing this pull request using GitHub Actions. labels May 2, 2023
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 2, 2023
@nodejs-github-bot
nodejs-github-bot merged commit d2156f1 into nodejs:mainMay 2, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in d2156f1

@cclauss

Copy link
Copy Markdown
Contributor

Rock & Roll... Thanks for doing this!

@VoltrexKeyva
VoltrexKeyva deleted the use-pathlib branch May 2, 2023 20:00
@targostargos mentioned this pull request May 3, 2023
targos pushed a commit that referenced this pull request May 3, 2023
Use Python's `pathlib` library for paths and related operations
instead of `os.path`.
Refs: #47323 (comment)#47323 (comment)
PR-URL: #47581
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Christian Clauss <cclauss@me.com>
danielleadams pushed a commit that referenced this pull request Jul 6, 2023
Use Python's `pathlib` library for paths and related operations
instead of `os.path`.
Refs: #47323 (comment)#47323 (comment)
PR-URL: #47581
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Christian Clauss <cclauss@me.com>
MoLow pushed a commit to MoLow/node that referenced this pull request Jul 6, 2023
Use Python's `pathlib` library for paths and related operations
instead of `os.path`.
Refs: nodejs#47323 (comment)nodejs#47323 (comment)
PR-URL: nodejs#47581
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Christian Clauss <cclauss@me.com>
Comment threadconfigure.py
# --with-icu-source processing
# now, check that they didn't pass --with-icu-source=deps/icu
elif with_icu_source and os.path.abspath(icu_full_path) == os.path.abspath(with_icu_source):
elif with_icu_source and Path(icu_full_path).resolve() == Path(with_icu_source).resolve():

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.

Ouch! icu_full_path can actually be a URL here, and so this change breaks Windows downloading completely. Not good..

@srl295srl295 added the i18n-api Issues and PRs related to the i18n implementation. label Oct 1, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.buildIssues and PRs related to build files or the CI.i18n-apiIssues and PRs related to the i18n implementation.needs-ciPRs that need a full CI run.pythonPRs and issues that require attention from people who are familiar with Python.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@VoltrexKeyva@targos@nodejs-github-bot@cclauss@srl295@anonrig@Trott