-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
404 on jest documentation #6567
Comments
http://facebook.github.io/jest/en/ works ish, but broken static assets... |
what happens? |
@endiliey @yangshun @JoelMarcey ideas? |
https://github.com/facebook/jest/tree/gh-pages are broken. I suspect this is somehow related to broken build but circleci is passing. Sorry, I'm investigating on this ! |
I tried I think #6537 broke the website 😢 (will investigate) |
Please use |
@endiliey open up a pr with the revert, and I'll merge it. Currently on mobile |
Yeah true some other pages are working but with no style, I guess the static assets are broken as mentioned by @SimenB |
Works now? |
Just investigated again. I think this is caused by long running circleci. |
Yes @SimenB it is now working. |
Probably the same as the other "404 during website deploy" issue then... |
@SimenB seems so. This is tricky though. The website isn't supposed to go down during deployment. It was down for a whole hour because the deploy website circleci was running for a whole hour. The search is broken now, I've sent a PR for it #6569 |
Do we have any idea why |
It could be circleci. I see another website deploy with docusaurus publish only took ard 6 mins now. This one (yesterday) took a hour. https://circleci.com/gh/facebook/jest/27171 |
I wonder if we added a |
@JoelMarcey But one thing that I notice is that the website went down during merge-spree. (When there are lot of merge). I suspect that subsequent build broke the previous build but publish still got triggered resulting -> broken build being published to gh-pages branch (index.html missing) & the last one is the correct build & will bring it back up. @SimenB do you notice that it usually went down when there is lot of merge happening concurrently ? Or it just broke randomly .. |
Yeah, it seems to go down when we merge a lot of PRs at once.
It's more than just index.html missing - if I went to |
Wanna try increasing the Circle resource usage for Jest? We can see if that helps mitigate the problem. Just add a PR with something similar to https://github.com/facebook/Docusaurus/blob/master/.circleci/config.yml#L31 |
Worth a try, isn't it? I don't really understand why it goes down, but as it seemingly only does when CI has a lot do, it seems like a fair change to make |
@SimenB I'm thinking that maybe we can also build a deploy preview in netlify for every PR like how Docusaurus do it. So that next time anyone send a PR there is a netlify (jest website) preview |
Yeah, that'd be awesome! |
Even better if it could be scoped to detected changes in |
I think this is not supported out of the box by circleci yet. We could write some script hack like https://gist.github.com/naesheim/18d0c0a58ee61f4674353a2f4cf71475 but I feel that it's hacky though
Unfortunately netlify preview can only be setup by person with write access to facebook/jest though. I've set it up for my own pet project but I can assist you on how to setup if you want. @yangshun setup the preview for Docusaurus. |
I don't think this is hacky. It's a fair way of detecting changes. If CircleCI were to implement this, their implementation would likely be similar. This is actually a good addition to make to Docusaurus - teach people how to do previews only if the relevant dirs changed. Also, I think there's no harm running the preview on all PRs. Prettier generates Netlify previews for all their PRs, just that the bot doesn't comment with the link to reduce noise, but the maintainers know where to find the preview if they need to. It's usually in the form of I highly recommend adding Netlify previews to help with reviewing website changes. |
👍
Agree. Usually netlify preview are done in the checks. We can open the preview after clicking details The commenting is an additional step that needs to be configured in netlify itself.
Based on #6613 (comment) As for the command itself to be ran on netlify, we can use netlify.toml // netlify.toml
[build]
command = "yarn build"
publish = "build"
[build.environment]
YARN_FLAGS = "--frozen-lockfile"
.... |
Hopefully fixed |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
404 on documentation
To Reproduce
Steps to reproduce the behavior:
Expected behavior
doc available
The text was updated successfully, but these errors were encountered: