GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Add smoke test for flight fixture by eps1lon · Pull Request #28350 · react/react Conversation
|
|
Comparing: 59fe6c3...0a7acc5 Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: Expand to show
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
220c0f7 to
bf65cbe
Compare
|
You can test it against It should still have first one but pass after both. There's still an issue that you have to run |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
418f4da to
51401ff
Compare
Not sure what #28353 fixes. Is there a specific interaction that's broken? From opening the fixture and clicking around I can't immediately see what's broken. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| working_directory: fixtures/flight | ||
| command: | | ||
| yarn build | ||
| # Need to build twice for unknown reasons |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Otherwise we get https://app.circleci.com/pipelines/github/facebook/react/50479/workflows/7727b75f-e654-4558-9294-a2a710b8ebbd/jobs/783757/steps
Which the fixture also catches
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I believe if you set FAST_REFRESH=false, you can skip the build step completely. This is how I verified this locally: rm -rf build ./node_modules/.cache && FAST_REFRESH=false yarn test. My understanding is that this avoids needing to transform the node_modules/react-refresh ES modules (which seems to occur too late on the first run).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
On the other hand, this would just mask the issue that users might run into when trying to run the flight fixture locally. Is fast refresh that useful for the fixture? If not, we could also disable it in fixtures/flight/config/env.js, and not only in the CI.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Without the fix from #28353 I do get hydration mismatches because the chunk script tags (mentioned as "preloads" in the PR) are rendered outside of <script src="/static/js/client2.chunk.js" async=""></script> <script src="/static/js/client3.chunk.js" async=""></script> <script src="/static/js/client8.chunk.js" async=""></script> <script src="/static/js/client7.chunk.js" async=""></script> <script src="/static/js/client6.chunk.js" async=""></script> <script src="/static/js/client0.chunk.js" async=""></script> <script src="/static/js/client4.chunk.js" async=""></script> <script src="/static/js/client1.chunk.js" async=""></script> <script src="/static/js/client9.chunk.js" async=""></script> <!DOCTYPE html> <html lang="en"> <head> |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Could you clarify how this manifests other than having to manually inspect the produced HTML? I get no console warnings which you'd usually get for hydration mismatches. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
1c182d4 to
d036d62
Compare
There was an error while loading. Please reload this page.
That's strange. When I check out 4a54e8a (so before the fix), I get the expected console errors.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
For what it's worth, even with the console errors, and the "Hello World" expectation that was added later, I can't get the tests to fail consistently. Only when I add |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Can you post the exact instructions how you get the fixture running for you on a fresh clone? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
With the following steps I got the fixture running on a fresh clone:
And with that, I got a running flight fixture, strangely now without any hydration mismatches. 🙄 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
I was missing that bit. Fast Refresh randomly starts working after a couple of failed |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Ah, I didn't realise that #28353 was merged into |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
For what it's worth, even with the console errors, and the "Hello World" expectation that was added later, I can't get the tests to fail consistently. Only when I add
await page.reload();afterawait page.goto('/');it fails consistently (sometimes with two sets of errors though). Hopefully there's a better fix for this flakiness.
@eps1lon Since this is not addressed yet, I believe there will be false positive test results whenever a console error may appear due to some changes in the code base.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The idea is that we prevent these from creeping in since that's an error. console.errors are not false positives. If they are expected, they can be added to the assertion. I'll try the page.reload(). Thank your for the tip |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I meant "false positive test results" as in there might be a successful test despite console errors occurring, due to the test exiting before the calls could have been collected. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
I tested the latest version of this PR again, but without d37ca84, and now I do get consistent test failures, as expected. So maybe there's no need to change the test, after all. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
03660c7 to
0a7acc5
Compare
|
Didn't detect any flakiness while running locally so let's see how CI treats it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
### React upstream changes - react/react#28438 - react/react#28436 - react/react#25954 - react/react#28434 - react/react#28433 - react/react#28432 - react/react#28415 - react/react#27903 - react/react#28430 - react/react#28424 - react/react#28400 - react/react#28422 - react/react#28423 - react/react#28412 - react/react#28418 - react/react#28421 - react/react#28417 - react/react#28399 - react/react#28408 - react/react#28350 - react/react#28387 - react/react#28403 - react/react#28384 - react/react#28409 - react/react#28398 - react/react#28405 - react/react#28328 - react/react#28402 - react/react#28386 - react/react#28388 - react/react#28379 - react/react#28383 - react/react#28390 - react/react#28389 - react/react#28382 - react/react#28348 Closes NEXT-2600
DiffTrain build for commit 81d2a51.
## Summary Change the Flight fixture’s `forbidOnly` from `!isCI` to `isCI` to reject `.only` on CI and allow focused debugging locally. This prevents CI from passing while accidentally excluding other tests and matches the existing comment. The inverted condition dates to [#28350](#28350). ## How did you test this change? - Temporarily added `test.only()` and confirmed `CI=true yarn test` rejects it with exit code `1`. - Removed `.only` and ran the full Flight fixture suite from the repository root: ```bash yarn && yarn build && cd fixtures/flight && yarn && yarn playwright install chromium && CI=true yarn test ```
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.