witty-crayon-22786
05/22/2018, 6:10 PMrough-minister-58256
05/22/2018, 9:46 PM(cd src/rust/engine && cargo test -p <module> <name_of_test>)
rough-minister-58256
05/22/2018, 9:46 PM[omerta pants (kwlzn/5849)]$ (cd src/rust/engine && cargo test -p process_execution ensure_inline_stdio_is_stored)
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
Running target/debug/deps/process_execution-9ccaddef784530c4
running 1 test
test remote::tests::ensure_inline_stdio_is_stored ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 34 filtered out
Doc-tests process_execution
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
witty-crayon-22786
05/22/2018, 9:47 PMaloof-angle-91616
05/22/2018, 9:57 PMaloof-angle-91616
05/22/2018, 11:50 PMErr
in expand()
is great -- i obviously need to fix the message but plenty of context i think Exception message: Build graph construction failed: ExecutionError Received unexpected Throw state(s):
Computing Select(Specs(dependencies=(DescendantAddresses(directory=u''),)), =TransitiveHydratedTargets)
Computing Task(transitive_hydrated_targets, Specs(dependencies=(DescendantAddresses(directory=u''),)), =TransitiveHydratedTargets)
Computing Task(transitive_hydrated_target, tests/python/pants_test/backend/jvm/tasks/coverage:coverage, =TransitiveHydratedTarget)
Computing Task(hydrate_target, tests/python/pants_test/backend/jvm/tasks/coverage:coverage, =HydratedTarget)
Computing Task(hydrate_sources, SourcesField(address=BuildFileAddress(tests/python/pants_test/backend/jvm/tasks/coverage/BUILD, coverage), arg=sources, filespecs={u'exclude': [], u'globs': [u'test_*.py', u'*_test.py']}), =HydratedField)
Computing Snapshot(Key { id: 3324, type_id: TypeId(94630918927376) })
Throw(PathGlobs expansion failed: Throw(???/globs with exclude patterns Gitignore { set: GlobSet { len: 0, strats: [] }, root: "", globs: [], num_ignores: 0, num_whitelists: 0, matches: ThreadLocal { local_data: None } } did not match: ["\"tests/python/pants_test/backend/jvm/tasks/coverage/*_test.py\""], "<pants native internals>"))
Traceback (no traceback):
<pants native internals>
Exception: PathGlobs expansion failed: Throw(???/globs with exclude patterns Gitignore { set: GlobSet { len: 0, strats: [] }, root: "", globs: [], num_ignores: 0, num_whitelists: 0, matches: ThreadLocal { local_data: None } } did not match: ["\"tests/python/pants_test/backend/jvm/tasks/coverage/*_test.py\""], "<pants native internals>")
witty-crayon-22786
05/22/2018, 11:51 PMwitty-crayon-22786
05/22/2018, 11:52 PMwitty-crayon-22786
05/22/2018, 11:52 PM(input glob string -> PathGlob -> PathStat)
problem would also allow us to render the input glob string in all cases (rather than the compiled version)aloof-angle-91616
05/22/2018, 11:55 PMaloof-angle-91616
05/22/2018, 11:55 PMRecursiveWildcard
witty-crayon-22786
05/22/2018, 11:59 PMwitty-crayon-22786
05/22/2018, 11:59 PMblah/*/thing/**/file.txt
aloof-angle-91616
05/22/2018, 11:59 PMwitty-crayon-22786
05/23/2018, 12:00 AMaloof-angle-91616
05/23/2018, 12:00 AMparse_globs()
call in expand_single()
aloof-angle-91616
05/23/2018, 12:01 AM**
into the expand_single()
method (and part of that logic was in there anyway) we get 1:1 string -> PathGlob by adding the RecursiveWildcard -- maybe there's a better name for thatwitty-crayon-22786
05/23/2018, 12:02 AMaloof-angle-91616
05/23/2018, 12:02 AMparse_globs()
method in the expand_single() method and in PathGlobs::createaloof-angle-91616
05/23/2018, 12:03 AMwitty-crayon-22786
05/23/2018, 12:03 AMaloof-angle-91616
05/23/2018, 12:03 AMwitty-crayon-22786
05/23/2018, 12:03 AM(input glob string -> PathGlob -> PathStat)
mapping as being something that is just maintained inside the loop.witty-crayon-22786
05/23/2018, 12:03 AMwitty-crayon-22786
05/23/2018, 12:04 AMaloof-angle-91616
05/23/2018, 12:04 AMwitty-crayon-22786
05/23/2018, 12:04 AMaloof-angle-91616
05/23/2018, 12:04 AMaloof-angle-91616
05/23/2018, 12:04 AMaloof-angle-91616
05/23/2018, 12:04 AM