Closed adamkewley closed 6 years ago
Investigating this more, it reveals that job output wrangling will always fail if the output is absolute but the working directory is relative.
By default, Jobson's unit/system tests are using absolute paths, so this wasn't smoked out. Once I updated the test suites to use relative paths, it revealed that this one like (.relativize
) would take down many of the tests (absolute path) jobs.
I updated the tests and patched the code accordingly - eveything's passing again. This will be submitted onto master
and rolled out as 0.0.21.
Found by a user. The server throws an exception internally if the job's expected output is an absolute path (e.g.
/some/path
):This is caused when using an absolute path, but that path is missing. It happens because Java's
Path.relativize
method throws an exception if you mix relative an absolute paths together:The relativize call in this instance is a bit frivolous, because the
expectedOutputFile
is already resolved against the working directory. Therefore, it should be possible to just remove the call and prevent that exception.