Uh oh!
There was an error while loading. Please reload this page.
test: move test-fs-largefile to pummel - #14338
Conversation
test-fs-largefile was disabled. It was fixed in bbf74fb but left in disabled because it generates a 5Gb file. However, gibfahn had the sensible suggestion of moving it to the pummel directory. Which is what this change does. In pummel, lint rules are applied, so this does necessitate changing a pair of `var` declarations to `const`. Refs: nodejs@bbf74fb
vsemozhetbyt
commented
Jul 18, 2017
Should we check if the filesystem is FAT32 on Windows? FAT32 cannot hold a 5 GB file. |
gibfahn
commented
Jul 18, 2017
We should, but I don't think it's a blocker as we don't guarantee that pummel tests will run on all machines. So practically speaking, if you can suggest a line for @Trott to add that'd be great! |
@Trott@gibfahn I can think up something like this, but there may be more efficient ways. if(common.isWindows){const{ execFileSync }=require('child_process');constdriveLetter=common.tmpDir[0];constfileSystem=execFileSync('fsutil',['fsinfo','volumeinfo',`${driveLetter}:`],{encoding: 'utf8'}).match(/^FileSystemName.+\b(\w+)$/m)[1];if(fileSystem.startsWith('FAT'))common.skip('FAT* file systems do not support such large files');}cc @nodejs/platform-windows |
gibfahn
commented
Jul 18, 2017
@vsemozhetbyt that's where I feel that maybe having that as a separate PR for that change might be better, said follow-on PR could also include the other checks @Trott mentioned:
|
refack
commented
Jul 18, 2017
FYI The root of FAT drive does not have an constisFAT=common.isWindows&&require('fs').statSync(common.tmpDir.slice(0,3)).ino===0;NTFS>fs.statSync('c:\\')Stats{dev: 3228880019,mode: 16822,nlink: 1,uid: 0,gid: 0,rdev: 0,blksize: undefined,ino: 1407374883553285,size: 0,blocks: undefined,atimeMs: 1500174278591.7847,mtimeMs: 1500174278591.7847,ctimeMs: 1500174278591.7847,birthtimeMs: 1468649064614.482,atime: 2017-07-16T03:04:38.592Z,mtime: 2017-07-16T03:04:38.592Z,ctime: 2017-07-16T03:04:38.592Z,birthtime: 2016-07-16T06:04:24.614Z}FAT32>fs.statSync('e:\\')Stats{dev: 1244641795,mode: 16822,nlink: 1,uid: 0,gid: 0,rdev: 0,blksize: undefined,ino: 0,size: 0,blocks: undefined,atimeMs: 315547200000,mtimeMs: 315547200000,ctimeMs: -921101621044.8384,birthtimeMs: 315547200000,atime: 1980-01-01T04:00:00.000Z,mtime: 1980-01-01T04:00:00.000Z,ctime: 1940-10-24T02:26:18.956Z,birthtime: 1980-01-01T04:00:00.000Z}exFAT>fs.statSync('t:\\')Stats{dev: 1587103641,mode: 16822,nlink: 1,uid: 0,gid: 0,rdev: 0,blksize: undefined,ino: 0,size: 0,blocks: undefined,atimeMs: 315547200000,mtimeMs: 315547200000,ctimeMs: -921101621044.8384,birthtimeMs: 315547200000,atime: 1980-01-01T04:00:00.000Z,mtime: 1980-01-01T04:00:00.000Z,ctime: 1940-10-24T02:26:18.956Z,birthtime: 1980-01-01T04:00:00.000Z} |
vsemozhetbyt
commented
Jul 18, 2017
@refack Does not this check disable the test for exFAT which has not this file size limit? |
refack
commented
Jul 18, 2017
Yes, it is too strict. |
Trott
commented
Jul 19, 2017
CI: https://ci.nodejs.org/job/node-test-pull-request/9258/ (shouldn't matter because pummel tests don't get run, so only linting is relevant, BUT YOU CAN'T BE TOO CAREFUL... point is, if there's a backlog, feel free to cancel anything but the linter) |
gibfahn
commented
Jul 20, 2017
CI is green, landing. |
gibfahn
commented
Jul 20, 2017
Landed in 9d9c9c1 |
test-fs-largefile was disabled. It was fixed in bbf74fb but left in disabled because it generates a 5Gb file. However, gibfahn had the sensible suggestion of moving it to the pummel directory. Which is what this change does. In pummel, lint rules are applied, so this does necessitate changing a pair of `var` declarations to `const`. PR-URL: #14338 Refs: bbf74fb Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
test-fs-largefile was disabled. It was fixed in bbf74fb but left in disabled because it generates a 5Gb file. However, gibfahn had the sensible suggestion of moving it to the pummel directory. Which is what this change does. In pummel, lint rules are applied, so this does necessitate changing a pair of `var` declarations to `const`. PR-URL: #14338 Refs: bbf74fb Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
test-fs-largefile was disabled. It was fixed in bbf74fb but left in disabled because it generates a 5Gb file. However, gibfahn had the sensible suggestion of moving it to the pummel directory. Which is what this change does. In pummel, lint rules are applied, so this does necessitate changing a pair of `var` declarations to `const`. PR-URL: #14338 Refs: bbf74fb Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
test-fs-largefile was disabled. It was fixed in bbf74fb but left in
disabled because it generates a 5Gb file. However, gibfahn had the
sensible suggestion of moving it to the pummel directory. Which is what
this change does.
In pummel, lint rules are applied, so this does necessitate changing a
pair of
vardeclarations toconst.Refs: bbf74fb
h/t @gibfahn
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test fs