| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sorry, something went wrong.
|
Still need to skip on SmartOS and possibly others. Putting into Draft until I get around to looking more closely. |
Sorry, something went wrong.
There was a problem hiding this comment.
I think skipping as was done before it better. The sets it to off by one, so allowing off by one is the same thing.
Sorry, something went wrong.
There was a problem hiding this comment.
The previous skipped platforms are a separate issue that I was optimistically hoping this change would fix. If we dont allow the max - 1 value, then we need to skip all Linux hosts.
I think the thing to do is restore the previous skipped platforms and allow max - 1.
Sorry, something went wrong.
|
OK, this is ready for review. |
Sorry, something went wrong.
Sorry, something went wrong.
|
Labeling this wip pending resolution of #36591 (comment). |
Sorry, something went wrong.
|
I think this is now ready for review. @targos @richardlau @mhdawson |
Sorry, something went wrong.
|
sorry, the skip is not working correctly with my system and the test fails as before. |
Sorry, something went wrong.
|
If it can help: $ touch -t 204001020304 /tmp/y2k32-test $ date -r /tmp/y2k32-test "+%Y%m%d%H%M" 203801190414 |
Sorry, something went wrong.
There was a problem hiding this comment.
(Non-blocking observation.)
FWIW I believe GNU date is available via the coreutils package from the AIX toolbox but we don't currently have that installed on our CI hosts.
It is correct that the native date command doesn't support the -r option: https://www.ibm.com/support/knowledgecenter/en/ssw_aix_72/d_commands/date.html
Sorry, something went wrong.
There was a problem hiding this comment.
What about stat -c '%Y' ?
Edit: updated to %Y
On my machine, it returns 2147483647, wich corresponds to 2038-01-19T03:14:07.000Z
Sorry, something went wrong.
There was a problem hiding this comment.
AIX doesn't natively have stat but does have istat: https://www.ibm.com/support/knowledgecenter/en/ssw_aix_72/i_commands/istat.html
Like GNU date, the GNU version of stat looks to be available in the coreutils AIX toolbox package.
Sorry, something went wrong.
There was a problem hiding this comment.
On macOS:
stat: illegal option -- c usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
If there's something that will work on AIX, we can have a separate AIX path to do the check. Ditto for Windows. But I think those can also be added at a later date.
Sorry, something went wrong.
|
The IBM i check for Y2K38 support passed but the test failed when fs.utimesSync() threw with EINVAL. Since IBM i is not fully supported (yet?) and has lots of skipped tests, including the current version of this one, I'll go back to skipping-for-now in IBM i. |
Sorry, something went wrong.
|
Current result on my machine: $ node test/parallel/y2k38.js 1..0 # Skipped: File system appears to lack Y2k38 support (date failed) |
Sorry, something went wrong.
|
Helps to push your changes before running the test.... IBM i test to confirm skip logic: https://ci.nodejs.org/job/node-test-commit-ibmi/298/ ✅ |
Sorry, something went wrong.
Sorry, something went wrong.
Move Y2K38-specific parts of test-fs-utimes to test-fs-utimes-y2K38.js. On non-Windows, check for Y2K38 support and skip if it is unsupported. Fixes: nodejs#36591 PR-URL: nodejs#37707 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
FWIW Just to follow this up... on IBM i process.platform === 'aix' (same as AIX), see Lines 801 to 805 in d3417bb so common.isAIX is true and the check for Y2k38 support skipped. If I remove the check for common.isAIX, the Y2K38 support check fails (as expected) on IBM i. |
Sorry, something went wrong.
On some platforms `date` may not support the `-r` option. Optimistically allow the test to proceed in that case as the previous `touch` had succeeded -- we were just not able to easily validate the file date. PR-URL: #37825 Refs: #37707 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
On some platforms `date` may not support the `-r` option. Optimistically allow the test to proceed in that case as the previous `touch` had succeeded -- we were just not able to easily validate the file date. PR-URL: #37825 Refs: #37707 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
On some platforms `date` may not support the `-r` option. Optimistically allow the test to proceed in that case as the previous `touch` had succeeded -- we were just not able to easily validate the file date. PR-URL: #37825 Refs: #37707 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
| Back | FazBrowse Home | New Git URL |
Fixes: #36591