Commit Graph

8 Commits

Author SHA1 Message Date
Sashko Stubailo
25e37833ca Don't use a fiber since we don't yield 2015-01-20 22:34:21 -08:00
David Greenspan
eeab7df2d1 Don’t yield in cleanup.onExit handlers
Temp dirs were not getting cleaned up on ctrl-C, including ~100 MB temp
dirs created by test-packages.

Wrapping cleanup handlers in noYieldsAllowed automatically causes sync
versions of fs calls to be used when files.rm_recursive is called.
2015-01-10 16:42:54 -08:00
Sashko Stubailo
e7167e5257 Factor out almost all fs. and path. calls in the tool
This will be useful when we want to be smart with windows file paths later
Also, all of the file calls are asynchronous with fibers now, which comes with
many benefits.

This is a combination of 23 commits. Original messages:
Wrap a large number of fs calls inside files.*

Convert a few more fs calls to files.*

More moving fs.* to files

Implement read/write streams and open/read/close

Get rid of fs from auth.js

Remove fs and unused imports from catalog-local and catalog-remote

Remove unused imports from catalog.js

Replace a whole lot of fs calls

Fix error

Migrate a lot more fs. calls to files.

Add a temporary symlink method

Convert old test to files.*

Use files.pathX instead of path.x everywhere

Replace path.x to files.pathX in tests

Small fixes to files.js and one rename

Make cleanup run in a fiber

Make wrapping functions take function name in case we need it

Add some timeouts and stuff to HCP tests

wrapFsFunc also makes a sync version of the function

Sometimes you just don't want to yield!

Make sure JsImage readFromDisk doesn't yield

Remove unused imports from npm test

Change order of test now that some things don't yield

Fix missing files import, and add a debug error printout
2014-12-15 15:32:06 -08:00
Geoff Schmidt
88ea71f4c2 style: 'function ()' rather than 'function()' 2013-12-30 07:04:45 -08:00
Geoff Schmidt
4fc8c0d1f3 Eliminate context everywhere!!
Add release.js to manage current release.
2013-12-30 05:16:21 -08:00
David Glasser
99ba22d2c4 Don't assign to exports. That breaks circular requires. 2013-03-29 11:52:32 -07:00
David Glasser
b1b707546d Copy test-runner-app to a temporary directory.
This allows multiple test-packages commands to run in parallel.

We make a best-effort attempt to clean them up on exit.
2013-03-19 22:34:44 -07:00
David Glasser
8a79edb43b "tools" -> "scripts", "engine" -> "tools" 2013-03-19 18:19:31 -07:00