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

Issue 1498 #1118

Merged
merged 105 commits into from Mar 29, 2021
Merged

Issue 1498 #1118

merged 105 commits into from Mar 29, 2021

Conversation

PiotrKozlowski
Copy link
Contributor

@PiotrKozlowski PiotrKozlowski commented Mar 8, 2021

for: https://github.com/openstax/unified/issues/1498

Testing:

Go to /books/physics/pages/1-introduction301 - you should be redirected to /books/physics/pages/1-introduction

Only this URL is set up

@PiotrKozlowski PiotrKozlowski self-assigned this Mar 8, 2021
@TomWoodward TomWoodward temporarily deployed to rex-web-issue-1498-aor6nuc3h3r March 8, 2021 14:46 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-issue-1498-3lqjjrhpyjb March 9, 2021 15:39 Inactive
@PiotrKozlowski PiotrKozlowski marked this pull request as ready for review March 9, 2021 15:46
@PiotrKozlowski PiotrKozlowski requested a review from a team as a code owner March 9, 2021 15:46
@TomWoodward TomWoodward temporarily deployed to rex-web-issue-1498-3lqjjrhpyjb March 9, 2021 19:44 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-issue-1498-3lqjjrhpyjb March 10, 2021 15:57 Inactive
Copy link
Member

@TomWoodward TomWoodward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is fine the way it is, you can ignore my comment about the browserspec

@PiotrKozlowski
Copy link
Contributor Author

ok then

Copy link
Contributor

@jarosik10 jarosik10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@TomWoodward TomWoodward temporarily deployed to rex-web-issue-1498-3lqjjrhpyjb March 11, 2021 15:02 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-issue-1498-3lqjjrhpyjb March 11, 2021 16:48 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-issue-1498-3lqjjrhpyjb March 11, 2021 20:09 Inactive
@PiotrKozlowski
Copy link
Contributor Author

Craco is not working in this case... dilanx/craco#143 (comment)
I'll try creating a fork of react-scripts as advised in the documentation and modify it to check for CI variable and disable hot reloading if it is set

@TomWoodward
Copy link
Member

@PiotrKozlowski this is getting out of control, if necessary we could disable test:browser which i think is the only one using the dev server.

it looks like you must have done something to fix test:unit, because that is passing now, that should be good enough

@TomWoodward
Copy link
Member

I see you added server mode to test:unit and that seems to have helped, but that confuses me because the unit tests shouldn't be using the puppeteer environment. If the unit tests are running the puppeteer environment that is a problem

@PiotrKozlowski
Copy link
Contributor Author

Idk why this is happening, but I think I've just found a solution. I'll push a commit in a sec

@TomWoodward TomWoodward temporarily deployed to rex-web-issue-1498-3lqjjrhpyjb March 25, 2021 14:39 Inactive
@PiotrKozlowski
Copy link
Contributor Author

Oh no :( I really thought this was gonna work: 7d8fa6f#diff-9531c01f38fb3a33c0a25db522822e353b143e69b9d43246d8e32bcb66662bfdR1

One more thing I can think of is this comment: webpack/webpack-dev-server#1744 (comment)

I didn't experience this locally but maybe this is what is happening in CI? I think we are running unit, browser and build tests simultaneously?

@TomWoodward
Copy link
Member

maybe try turning the actual hot param off in your config override? https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/config/webpackDevServer.config.js#L73

@PiotrKozlowski
Copy link
Contributor Author

@TomWoodward This is not working: dilanx/craco#143 (comment)

I've tested this locally on all different ways and even by modifying node_modules package - I didn't found a way to disable hot reloading for webpack-dev-server

@TomWoodward TomWoodward temporarily deployed to rex-web-issue-1498-3lqjjrhpyjb March 25, 2021 15:09 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-issue-1498-3lqjjrhpyjb March 25, 2021 15:11 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-issue-1498-3lqjjrhpyjb March 25, 2021 15:19 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-issue-1498-3lqjjrhpyjb March 25, 2021 15:30 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-issue-1498-3lqjjrhpyjb March 29, 2021 12:09 Inactive
@staxly staxly bot merged commit 817a042 into master Mar 29, 2021
@staxly staxly bot deleted the issue-1498 branch March 29, 2021 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants