Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(test runner): run project dependencies of --only-changed test files #32094

Merged
merged 8 commits into from
Aug 12, 2024

Conversation

Skn0tt
Copy link
Member

@Skn0tt Skn0tt commented Aug 9, 2024

Closes #32070. We were applying additionalFileMatcher not just to filteredProjectSuites, but also to projectSuites. projectSuites is where we take dependency projects from, though - so --only-changed led to empty dependency projects, resulting in the reported bug.

The fix is to only apply additionalFileMatcher on filteredProjectSuites.

@Skn0tt Skn0tt self-assigned this Aug 9, 2024
@Skn0tt Skn0tt changed the title chore: add test for --only-changed with project dependencies chore(test runner): add test for --only-changed with project dependencies Aug 9, 2024

This comment has been minimized.

@Skn0tt Skn0tt requested a review from dgozman August 12, 2024 12:23
@Skn0tt Skn0tt marked this pull request as ready for review August 12, 2024 12:23

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@Skn0tt Skn0tt changed the title chore(test runner): add test for --only-changed with project dependencies fix(test runner): run project dependencies of --only-changed test file Aug 12, 2024
@Skn0tt Skn0tt changed the title fix(test runner): run project dependencies of --only-changed test file fix(test runner): run project dependencies of --only-changed test files Aug 12, 2024
Copy link
Contributor

Test results for "tests 1"

1 failed
❌ [playwright-test] › runner.spec.ts:118:5 › should ignore subprocess creation error because of SIGINT

2 flaky ⚠️ [webkit-library] › library/browsercontext-device.spec.ts:45:5 › device › should scroll to click
⚠️ [webkit-page] › page/page-goto.spec.ts:182:3 › should properly cancel Cross-Origin-Opener-Policy navigation

29698 passed, 711 skipped
✔️✔️✔️

Merge workflow run.

@Skn0tt Skn0tt merged commit edd1894 into microsoft:main Aug 12, 2024
29 of 30 checks passed
Skn0tt added a commit to Skn0tt/playwright that referenced this pull request Aug 15, 2024
…iles (microsoft#32094)

Closes microsoft#32070. We were
applying `additionalFileMatcher` not just to `filteredProjectSuites`,
but also to `projectSuites`. `projectSuites` is where we take dependency
projects from, though - so `--only-changed` led to empty dependency
projects, resulting in the reported bug.

The fix is to only apply `additionalFileMatcher` on
`filteredProjectSuites`.
Skn0tt added a commit that referenced this pull request Aug 15, 2024
…-only-changed` test files (#32172)

Closes #32070. We were
applying `additionalFileMatcher` not just to `filteredProjectSuites`,
but also to `projectSuites`. `projectSuites` is where we take dependency
projects from, though - so `--only-changed` led to empty dependency
projects, resulting in the reported bug.
    
The fix is to only apply `additionalFileMatcher` on
`filteredProjectSuites`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: --only-changed flag and project dependencies
2 participants