-
Notifications
You must be signed in to change notification settings - Fork 210
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
Add basic smoke tests for docs.rs #524
Conversation
greatly speeds up builds using --skip + docker-compose, for which the local cache will _always_ be empty
this is the quick and dirty way, but it's better than having no tests at all.
This shouldn't affect the CI at all since it has a new image every time, but greatly speeds up local development.
should speed up builds significantly
docker doesn't like it when you change its files while it's running
also uses sh instead of bash since the test file turned out to be portable
doesn't preserve ownership or write permissions
So, while as a stopgap solution I feel this is ok, I don't want to rely on this too long:
Also, fyi, uploading the cache failed. If you remove the caching from GitHub (also because we're surely over the 400MB limit) we can merge this. |
this went way over github's limits and was failing the build.
Removed the cache.
The longest part of the build seems to actually be initializing Rustwide, not building the crates. I think building dummy crates will help, but I'm not sure by how much.
That's a really good idea.
+1 |
Is |
No, because this doesn't change any of the code. Maybe we could set |
Yeah. |
Added |
Can we convert this to the new testing tools? |
Yes, I can do that sometime this week. |
Making a list of things to do:
|
Closing in favor of #570 |
After the fiasco with #519, I figured I'd write this before making any new PRs.
This is very much an integration test, not a unit test. It should catch things like 'docs.rs doesn't build with an empty
.rustwide
cache', but because of that, it takes a very long time to run (~45 minutes on Github Actions). I tried to set up caching, but the permissions weren't working quite right: actions/cache#131This runs reasonably quickly locally, ~5 minutes if everything is cached.
This depends on the changes from #523 (because otherwise the tests take about 25 minutes locally). Either that PR should be merged first or it should be closed when this one is merged.
Finally, this also uncomments two
#[ignore]
tests that were passing. The rest are left commented since they're currently failing.There should be no change in behavior to the production server, since it doesn't run builds with
-s
anyway.r? @pietroalbini