| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
process.getuid() and process.getgid() are not defined on Windows.
Sorry, something went wrong.
There was a problem hiding this comment.
@cjihrig
Thank you for your review.
Fixed not to call the process.getuid() and process.getgid() on Windows.
Sorry, something went wrong.
There was a problem hiding this comment.
These tests seem to fail just about everywhere in CI...
Sorry, something went wrong.
Sorry, something went wrong.
|
Rather than skipping on Windows, should we check that we get the right expected error when on Windows? |
Sorry, something went wrong.
There was a problem hiding this comment.
Tests still failing on most platforms:
15:19:05 not ok 584 parallel/test-fs-promises
15:19:05 ---
15:19:05 duration_ms: 0.171
15:19:05 severity: fail
15:19:05 exitcode: 1
15:19:05 stack: |-
15:19:05 (node:4855) ExperimentalWarning: The fs.promises API is experimental
15:19:05 /home/iojs/build/workspace/node-test-commit-linux/nodes/ubuntu1804-docker/test/common/index.js:798
15:19:05 (err) => process.nextTick(() => { throw err; }));
15:19:05 ^
15:19:05
15:19:05 AssertionError [ERR_ASSERTION]: Code: ERR_METHOD_NOT_IMPLEMENTED; The provided arguments length (0) does not match the required ones (1).
15:19:05 at getMessage (internal/errors.js:223:3)
15:19:05 at new NodeError (internal/errors.js:156:13)
15:19:05 at lchown (internal/fs/promises.js:383:11)
15:19:05 at doTest (/home/iojs/build/workspace/node-test-commit-linux/nodes/ubuntu1804-docker/test/parallel/test-fs-promises.js:140:15)
15:19:05 ...
Sorry, something went wrong.
|
@Trott I missed the doc indicates that the fsPromises.lchown is only implemented on macOS. I fixed the method is only called on macOS. |
Sorry, something went wrong.
Sorry, something went wrong.
|
Lots of red in the new CI run. Some are flaky failures, some are build bot failures, some are potentially related.... CI seems rather iffy these days... running again: https://ci.nodejs.org/job/node-test-pull-request/15056/ |
Sorry, something went wrong.
|
yeah, CI in general is in rough shape right now. Let's give it another day or so to see if we can get those issues figured out then give this another run. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
@Trott PTAL. I just checked the CI and added a green check mark next to the CI that you started. |
Sorry, something went wrong.
|
CI: https://ci.nodejs.org/job/node-test-pull-request/15174/ If CI is green or yellow, feel free to clear my objection (although it looks like this needs a rebase and that will probably mean another CI after the rebase). |
Sorry, something went wrong.
|
(And again, I'd prefer that we don't skip the test on unsupported platforms but instead check that we get the expected error. This will help prevent us from making changes that introduce cryptic unhelpful errors by accident. But this is a suggestion and I'm certainly not going to block this on it. It's also something that can be added in a subsequent PR.) |
Sorry, something went wrong.
There was a problem hiding this comment.
If #21498 lands, this could become !common.isWindows.
Sorry, something went wrong.
There was a problem hiding this comment.
Fixed it. Thanks.
Sorry, something went wrong.
There was a problem hiding this comment.
@cjihrig PTAL Thanks.
Sorry, something went wrong.
To increase test coverage for fs/promises, add tests for methods chown(), filehandle.chown() and lchown().
Fix not to call `process.getuid()` and `process.getgid()` on Windows.
Add error tests for fsPromises.chown and FileHandle.chown on all platforms.
Sorry, something went wrong.
Sorry, something went wrong.
To increase test coverage for fs/promises, add tests for methods chown(), filehandle.chown() and lchown(). PR-URL: #20574 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
To increase test coverage for fs/promises, add tests for methods chown(), filehandle.chown() and lchown(). PR-URL: #20574 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
| Back | FazBrowse Home | New Git URL |
To increase test coverage for fs/promises, add tests for
methods chown(), filehandle.chown() and lchown().
Checklist