Repository navigation
fix(runner-universe): resolve a leading <rootDir> in testPathIgnorePatterns - #253
Conversation
…tterns Jest replaces a leading <rootDir> in testPathIgnorePatterns with the root directory. extractTestPatterns kept the token, so a pattern such as <rootDir>/e2e/ never matched and the ignored files stayed in the test universe. A change under e2e/ could then select only those files, and the planned jest e2e/flow.test.js exits 1 with "No tests found". The token is now an anchored ^/, so the pattern does not also ignore packages/*/e2e/. Signed-off-by: FredApps <[email protected]>
Signed-off-by: FredApps <[email protected]>
|
CI re-run on 2022df4 (run 44140660454): Merge gate smoke passed this time.
Neither failure is related to this PR, which only changes |
A cold cargo test build can exceed 60 seconds on a hosted Windows runner. The spawnSync timeout then killed cargo but left its rustc processes holding the fixture, and the cleanup EPERM hid the real failure (DiffCI#253, check (windows-latest, 24)). Signed-off-by: FredApps <[email protected]>
FredApps
left a comment
There was a problem hiding this comment.
Cross-review of b2534ec and 2022df4.
Checked:
- The fix matches #251. A leading
<rootDir>intestPathIgnorePatternsbecomes an anchored^/, which suits ignore sources matched against"/" + path, and<rootDir>/e2e/does not also ignorepackages/a/e2e/. A config that setsrootDiris already refused byunsupportedRoot, so<rootDir>here is always the repository root. - The new test fails with
src/reverted (2 of 3 fail) and passes with the fix.tests/repo/jest-rootdir-ignore-patterns.test.tsis listed inrelease-files.json. Commits are DCO-signed. The branch is level with main.
Fixed: nothing.
Still open: check (windows-latest, 24) fails in tests/repo/rust-adapter.test.ts:440 with the Windows timeout and EPERM on cleanup. That is tracked separately in #235 and is unrelated to this change. Every other job passes.
…ffCI#211 and DiffCI#213 The manifest is an unordered set, and the PRs listed above add their entries at the same line. Moving this entry one line away lets them merge in either order without a conflict. Signed-off-by: FredApps <[email protected]>
…ffCI#211 and DiffCI#253 The manifest is an unordered set, and the PRs listed above add their entries at the same line. Moving this entry one line away lets them merge in either order without a conflict. Signed-off-by: FredApps <[email protected]>
* test(rust): retry removing Cargo-built fixtures on Windows * test(rust): give the cold Cargo test builds five minutes instead of one A cold cargo test build can exceed 60 seconds on a hosted Windows runner. The spawnSync timeout then killed cargo but left its rustc processes holding the fixture, and the cleanup EPERM hid the real failure (#253, check (windows-latest, 24)). Signed-off-by: FredApps <[email protected]> * chore: DCO remediation for 363a2f9 I, FredApps <[email protected]>, hereby add my Signed-off-by to this commit: 363a2f9 Signed-off-by: FredApps <[email protected]> --------- Signed-off-by: FredApps <[email protected]>
* fix(maven): ignore XML comments when reading a POM parsePom read tags with regular expressions over the raw XML, comments included. A commented-out <artifactId> before the real one became the module's identity, so dependent modules no longer linked to it and a change to it selected only its own tests. A commented-out <sourceDirectory> also triggered the custom source roots fallback. Signed-off-by: FredApps <[email protected]> * fix(maven): strip POM comments without a regex replace CodeQL flagged the comment-stripping replace as incomplete multi-character sanitization. A single left-to-right pass removes the same comments and keeps an unterminated one, as before. Signed-off-by: FredApps <[email protected]> * test: add the SPDX licence header to the new test file Signed-off-by: FredApps <[email protected]> * chore: move the release-files.json entry so it merges cleanly with #211 and #253 The manifest is an unordered set, and the PRs listed above add their entries at the same line. Moving this entry one line away lets them merge in either order without a conflict. Signed-off-by: FredApps <[email protected]> * ci: re-run checks after the Windows Python interpreter flake (#304, fixed by #310) Signed-off-by: FredApps <[email protected]> --------- Signed-off-by: FredApps <[email protected]>
Fixes #251
extractTestPatternsnow turns a leading<rootDir>intestPathIgnorePatternsinto an anchored^/. Ignore sources are matched against/plus the repo-relative path, so<rootDir>/e2e/ignorese2e/…but notpackages/p/e2e/…, which matches Jest. A<rootDir>anywhere else stays literal, as it does in Jest. Ignores are still honoured only for a fully understood default config.Validation:
tests/repo/jest-rootdir-ignore-patterns.test.tsfails onmainand passes here.npm run typecheck,npm test(1170 pass),npm run build,npm run audit:boundary.