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

test,doc: improve fs.access() mode docs and test #41484

Merged
merged 2 commits into from
Jan 14, 2022
Merged

Conversation

cjihrig
Copy link
Contributor

@cjihrig cjihrig commented Jan 12, 2022

test: do not OR F_OK in fs.access() test

access() does not support OR'ing F_OK with other constants.
This commit updates test-fs-access.js to not test that
scenario.

doc: expand fs.access() mode parameter docs

This commit expands the documentation for the mode parameter
passed to the fs.access() family of functions.

I'm also going to open a second PR containing a semver major change related to validation code.

Refs: libuv/libuv#3410
cc: @zsw007

@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Jan 12, 2022
@cjihrig cjihrig added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 13, 2022
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 13, 2022
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@cjihrig cjihrig added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. and removed needs-ci PRs that need a full CI run. labels Jan 13, 2022
@cjihrig cjihrig added the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 14, 2022
@nodejs-github-bot nodejs-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 Jan 14, 2022
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/41484
✔  Done loading data for nodejs/node/pull/41484
----------------------------------- PR info ------------------------------------
Title      test,doc: improve fs.access() mode docs and test (#41484)
Author     Colin Ihrig  (@cjihrig)
Branch     cjihrig:access -> nodejs:master
Labels     author ready
Commits    2
 - test: do not OR F_OK in fs.access() test
 - doc: expand fs.access() mode parameter docs
Committers 1
 - cjihrig 
PR-URL: https://github.com/nodejs/node/pull/41484
Refs: https://github.com/libuv/libuv/pull/3410
Reviewed-By: Richard Lau 
Reviewed-By: Luigi Pinca 
Reviewed-By: Tobias Nießen 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/41484
Refs: https://github.com/libuv/libuv/pull/3410
Reviewed-By: Richard Lau 
Reviewed-By: Luigi Pinca 
Reviewed-By: Tobias Nießen 
--------------------------------------------------------------------------------
   ℹ  This PR was created on Wed, 12 Jan 2022 03:06:09 GMT
   ✔  Approvals: 3
   ✔  - Richard Lau (@richardlau) (TSC): https://github.com/nodejs/node/pull/41484#pullrequestreview-850371099
   ✔  - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/41484#pullrequestreview-850963333
   ✔  - Tobias Nießen (@tniessen) (TSC): https://github.com/nodejs/node/pull/41484#pullrequestreview-851700057
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2022-01-13T19:25:50Z: https://ci.nodejs.org/job/node-test-pull-request/41853/
- Querying data for job/node-test-pull-request/41853/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  No git cherry-pick in progress
   ✔  No git am in progress
   ✔  No git rebase in progress
--------------------------------------------------------------------------------
- Bringing origin/master up to date...
From https://github.com/nodejs/node
 * branch                  master     -> FETCH_HEAD
✔  origin/master is now up-to-date
- Downloading patch for 41484
From https://github.com/nodejs/node
 * branch                  refs/pull/41484/merge -> FETCH_HEAD
✔  Fetched commits as 4dd1f42df6ee..a4f63126fca0
--------------------------------------------------------------------------------
[master dc5c5c8788] test: do not OR F_OK in fs.access() test
 Author: cjihrig 
 Date: Tue Jan 11 17:53:34 2022 -0500
 1 file changed, 3 insertions(+), 3 deletions(-)
[master d42df72078] doc: expand fs.access() mode parameter docs
 Author: cjihrig 
 Date: Tue Jan 11 21:18:50 2022 -0500
 1 file changed, 22 insertions(+), 19 deletions(-)
   ✔  Patches applied
There are 2 commits in the PR. Attempting autorebase.
Rebasing (2/4)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
test: do not OR F_OK in fs.access() test

access() does not support OR'ing F_OK with other constants.
This commit updates test-fs-access.js to not test that
scenario.

PR-URL: #41484
Refs: libuv/libuv#3410
Reviewed-By: Richard Lau rlau@redhat.com
Reviewed-By: Luigi Pinca luigipinca@gmail.com
Reviewed-By: Tobias Nießen tniessen@tnie.de

[detached HEAD 12e78dff94] test: do not OR F_OK in fs.access() test
Author: cjihrig cjihrig@gmail.com
Date: Tue Jan 11 17:53:34 2022 -0500
1 file changed, 3 insertions(+), 3 deletions(-)
Rebasing (3/4)
Rebasing (4/4)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
doc: expand fs.access() mode parameter docs

This commit expands the documentation for the mode parameter
passed to the fs.access() family of functions.

PR-URL: #41484
Refs: libuv/libuv#3410
Reviewed-By: Richard Lau rlau@redhat.com
Reviewed-By: Luigi Pinca luigipinca@gmail.com
Reviewed-By: Tobias Nießen tniessen@tnie.de

[detached HEAD 6cc025e8d8] doc: expand fs.access() mode parameter docs
Author: cjihrig cjihrig@gmail.com
Date: Tue Jan 11 21:18:50 2022 -0500
1 file changed, 22 insertions(+), 19 deletions(-)

Successfully rebased and updated refs/heads/master.

ℹ Use --fixupAll option, squash the PR manually or land the PR from the command line.

https://github.com/nodejs/node/actions/runs/1698646333

access() does not support OR'ing F_OK with other constants.
This commit updates test-fs-access.js to not test that
scenario.

PR-URL: nodejs#41484
Refs: libuv/libuv#3410
Reviewed-By: Richard Lau
Reviewed-By: Luigi Pinca
Reviewed-By: Tobias Nießen
This commit expands the documentation for the mode parameter
passed to the fs.access() family of functions.

PR-URL: nodejs#41484
Refs: libuv/libuv#3410
Reviewed-By: Richard Lau
Reviewed-By: Luigi Pinca
Reviewed-By: Tobias Nießen
@cjihrig cjihrig merged commit 91b9052 into nodejs:master Jan 14, 2022
targos pushed a commit that referenced this pull request Jan 16, 2022
access() does not support OR'ing F_OK with other constants.
This commit updates test-fs-access.js to not test that
scenario.

PR-URL: #41484
Refs: libuv/libuv#3410
Reviewed-By: Richard Lau
Reviewed-By: Luigi Pinca
Reviewed-By: Tobias Nießen
targos pushed a commit that referenced this pull request Jan 16, 2022
This commit expands the documentation for the mode parameter
passed to the fs.access() family of functions.

PR-URL: #41484
Refs: libuv/libuv#3410
Reviewed-By: Richard Lau
Reviewed-By: Luigi Pinca
Reviewed-By: Tobias Nießen
mawaregetsuka pushed a commit to mawaregetsuka/node that referenced this pull request Jan 17, 2022
access() does not support OR'ing F_OK with other constants.
This commit updates test-fs-access.js to not test that
scenario.

PR-URL: nodejs#41484
Refs: libuv/libuv#3410
Reviewed-By: Richard Lau
Reviewed-By: Luigi Pinca
Reviewed-By: Tobias Nießen
mawaregetsuka pushed a commit to mawaregetsuka/node that referenced this pull request Jan 17, 2022
This commit expands the documentation for the mode parameter
passed to the fs.access() family of functions.

PR-URL: nodejs#41484
Refs: libuv/libuv#3410
Reviewed-By: Richard Lau
Reviewed-By: Luigi Pinca
Reviewed-By: Tobias Nießen
thedull pushed a commit to thedull/node that referenced this pull request Jan 18, 2022
access() does not support OR'ing F_OK with other constants.
This commit updates test-fs-access.js to not test that
scenario.

PR-URL: nodejs#41484
Refs: libuv/libuv#3410
Reviewed-By: Richard Lau
Reviewed-By: Luigi Pinca
Reviewed-By: Tobias Nießen
thedull pushed a commit to thedull/node that referenced this pull request Jan 18, 2022
This commit expands the documentation for the mode parameter
passed to the fs.access() family of functions.

PR-URL: nodejs#41484
Refs: libuv/libuv#3410
Reviewed-By: Richard Lau
Reviewed-By: Luigi Pinca
Reviewed-By: Tobias Nießen
Linkgoron pushed a commit to Linkgoron/node that referenced this pull request Jan 31, 2022
access() does not support OR'ing F_OK with other constants.
This commit updates test-fs-access.js to not test that
scenario.

PR-URL: nodejs#41484
Refs: libuv/libuv#3410
Reviewed-By: Richard Lau
Reviewed-By: Luigi Pinca
Reviewed-By: Tobias Nießen
Linkgoron pushed a commit to Linkgoron/node that referenced this pull request Jan 31, 2022
This commit expands the documentation for the mode parameter
passed to the fs.access() family of functions.

PR-URL: nodejs#41484
Refs: libuv/libuv#3410
Reviewed-By: Richard Lau
Reviewed-By: Luigi Pinca
Reviewed-By: Tobias Nießen
danielleadams pushed a commit that referenced this pull request Feb 1, 2022
access() does not support OR'ing F_OK with other constants.
This commit updates test-fs-access.js to not test that
scenario.

PR-URL: #41484
Refs: libuv/libuv#3410
Reviewed-By: Richard Lau
Reviewed-By: Luigi Pinca
Reviewed-By: Tobias Nießen
danielleadams pushed a commit that referenced this pull request Feb 1, 2022
This commit expands the documentation for the mode parameter
passed to the fs.access() family of functions.

PR-URL: #41484
Refs: libuv/libuv#3410
Reviewed-By: Richard Lau
Reviewed-By: Luigi Pinca
Reviewed-By: Tobias Nießen
@danielleadams danielleadams mentioned this pull request Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-failed An error occurred while landing this pull request using GitHub Actions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants