You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
Markus Paulsen
committed
Anchor the reference scan, and repair a sentence that lost its verb
Four findings on what the previous two commits added.
"Which mechanism does the intercepting comes from the policy's" is not a
sentence. It reads "The interception mechanism comes from" now.
The scan used two roots for one repository: it walked from the resolved
repository root and then resolved each reference, and each file it read,
against the working directory of the JVM. Those are the same under Surefire
today, which is why it passed. The day they are not, every reference reports as
broken and the message points at the documentation for what would be a change
in configuration. Everything now resolves against the one root, and the SITE
constant that was declared and never read builds the pattern that looks for it.
The scan also walked the whole tree three times, once per test, filtering the
skipped directories afterwards rather than pruning them. The site's node_modules
holds tens of thousands of entries, and descending into it to discard everything
found there was most of what this test did: 5.2 seconds before, 0.4 after. It is
collected once now, with the generated directories skipped as subtrees, and an
entry that cannot be read is walked past rather than ending the traversal, which
also closes the UncheckedIOException that the surrounding catch did not cover.
The fixture assertion reported "is not scanned" for two different causes. A
renamed file now says the list is stale, and a file that exists but is missed
says the scan has a hole, because those call for opposite responses.
One suggestion not taken: "arms the runtime interception the policy asks for" is
a reduced relative clause, not an error, and it reads better here than the
passive alternative.
0 commit comments