GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: add fs/promises filehandle sync() and datasync() tests. by shisama · Pull Request #20530 · nodejs/node

Conversation

@shisama

@shisama shisama commented May 5, 2018

Copy link
Copy Markdown
Contributor

To increase test coverage for fs/promises,
added tests for filehandle.sync and filehandle.datasync.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to Node.js core tests and test infrastructure. label May 5, 2018
jasnell
jasnell approved these changes May 6, 2018
View reviewed changes
ChALkeR
ChALkeR reviewed May 6, 2018
View reviewed changes
Comment thread test/parallel/test-fs-promises-file-handle-sync.js Outdated

@ChALkeR ChALkeR May 6, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

handle.write(buf)?
Same results and coverage, also see #20559.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
ChALkeR
ChALkeR reviewed May 6, 2018
View reviewed changes
Comment thread test/parallel/test-fs-promises-file-handle-sync.js Outdated

@ChALkeR ChALkeR May 6, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

read(handle → handle.read(? See the comment above.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@shisama shisama May 7, 2018

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

@ChALkeR Fixed them. Thanks.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ChALkeR ChALkeR added experimental Issues and PRs related to experimental features. fs Issues and PRs related to file-system APIs and the fs module. labels May 8, 2018
@shisama
shisama force-pushed the test-fs-promises-file-handle-sync branch from 1ff5b56 to e8f8408 Compare May 9, 2018 01:50
@ChALkeR

ChALkeR commented May 20, 2018

Copy link
Copy Markdown
Member

/cc @Trott

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BridgeAR

BridgeAR commented May 29, 2018

Copy link
Copy Markdown
Member

CI https://ci.nodejs.org/job/node-test-pull-request/15153/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shisama
shisama force-pushed the test-fs-promises-file-handle-sync branch from 5784c2d to 2b54d4a Compare June 5, 2018 11:27
@shisama

shisama commented Jun 5, 2018

Copy link
Copy Markdown
Contributor Author

This is rebased on 0300f7c. make -j4 test is passed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@apapirovski

apapirovski commented Jun 10, 2018

Copy link
Copy Markdown
Contributor

@nodejs/fs please give this a look and a review, if possible. It's been over a month.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

joyeecheung
joyeecheung approved these changes Jun 10, 2018
View reviewed changes

@joyeecheung joyeecheung left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This does not seem to actually test that fsync and fdatasync calls are effective, but I am not quite sure how to write tests for them with our APIs either, so LGTM as long as the code paths are covered.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread test/parallel/test-fs-promises-file-handle-sync.js Outdated

@joyeecheung joyeecheung Jun 10, 2018

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

common.mustCall() here seems unnecessary. If anything, common.crashOnUnhandledRejection() above gives a better hint about why it fails.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@shisama shisama Jun 10, 2018

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

@joyeecheung Thanks. Removed common.mustCall().

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Masashi Hirano added 4 commits June 10, 2018 16:37
Masashi Hirano
test: add fs/promises filehandle sync() and datasync() tests.
05d5a1b
To increase test coverage for fs/promises,
added tests for filehandle.sync and filehandle.datasync.
shisama
test: replace fs/promises methods with fs/promises filehandle methods
4c72ba1
Replacing fs/promises methods read and write with  fs/promises
filehandle methods.
Masashi Hirano
test: fix fs/promises to fs.promises
c431fc5
Fix module loading because fs/promises was moved to fs.promises
Masashi Hirano
test: remove calling common.mustCall() that is unnecessary
d462d2c
@shisama
shisama force-pushed the test-fs-promises-file-handle-sync branch from 2b54d4a to d462d2c Compare June 10, 2018 08:50
@apapirovski

apapirovski commented Jun 25, 2018

Copy link
Copy Markdown
Contributor

CI: https://ci.nodejs.org/job/node-test-pull-request/15595/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@apapirovski apapirovski added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Jun 25, 2018
@shisama

shisama commented Jun 30, 2018

Copy link
Copy Markdown
Contributor Author

CI failure is not related to this. It happens in parallel/test-timers-same-timeout-wrong-list-deleted.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hiroppy

hiroppy commented Jun 30, 2018

Copy link
Copy Markdown
Member

CI: https://ci.nodejs.org/job/node-test-pull-request/15690/

shisama reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shisama

shisama commented Jul 7, 2018

Copy link
Copy Markdown
Contributor Author

I think CI failure node-test-commit-windows-fanned is not related to this.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cjihrig
cjihrig approved these changes Jul 7, 2018
View reviewed changes
@targos

targos commented Jul 15, 2018

Copy link
Copy Markdown
Member

New CI: https://ci.nodejs.org/job/node-test-pull-request/15886/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

targos pushed a commit to targos/node that referenced this pull request Jul 15, 2018
Masashi Hirano @targos
test: add filehandle sync() and datasync() tests
71ca076
To increase test coverage for fs.promises,
added tests for filehandle.sync and filehandle.datasync.

PR-URL: nodejs#20530
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
@targos

targos commented Jul 15, 2018

Copy link
Copy Markdown
Member

Landed in 71ca076. Thanks for the contribution @shisama.

shisama reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos targos closed this Jul 15, 2018
@targos targos removed the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Jul 15, 2018
targos pushed a commit that referenced this pull request Jul 15, 2018
Masashi Hirano @targos
test: add filehandle sync() and datasync() tests
678313d
To increase test coverage for fs.promises,
added tests for filehandle.sync and filehandle.datasync.

PR-URL: #20530
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
@targos targos mentioned this pull request Jul 17, 2018
v10.7.0 proposal #21851
Merged
This was referenced Jul 18, 2018
2018-07-18 Version 10.7.0 (Current) @targos beevelop/docker-nodejs#207
Closed
2018-07-18 Version 10.7.0 (Current) @targos beevelop/docker-nodejs#208
Closed
2018-07-18 Version 10.7.0 (Current) @targos beevelop/docker-nodejs#209
Closed
2018-07-18 Version 10.7.0 (Current) @targos beevelop/docker-nodejs#210
Closed
2018-07-18 Version 10.7.0 (Current) @targos beevelop/docker-nodejs#211
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ChALkeR ChALkeR ChALkeR left review comments
@jasnell jasnell jasnell approved these changes
@cjihrig cjihrig cjihrig approved these changes
@joyeecheung joyeecheung joyeecheung approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

experimental Issues and PRs related to experimental features. fs Issues and PRs related to file-system APIs and the fs module. test Issues and PRs related to Node.js core tests and test infrastructure.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

10 participants

@shisama @ChALkeR @BridgeAR @apapirovski @hiroppy @targos @jasnell @cjihrig @joyeecheung @nodejs-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.