-
Notifications
You must be signed in to change notification settings - Fork 516
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
build git-recent-hours #2908
build git-recent-hours #2908
Conversation
@escattone I have an idea! A really good one if I may.
So it'll be some redundant repetition in |
What would be ideal, but not critical, is if we could use a "tagged" version of Yari in these builds. It should ideally be the version that was used in the last 24h complete build. |
@fiji-flo If you can share some feelings on this too, much appreciated. In terms of work left to do, I think we could ignore that it's only |
Looks like it works. It's still adding complexity, but much less than obvious alternatives. One thing to watch out for, do we enforce squash and merge? Using a normal merge last modified is the time of authoring isn't it? |
Couldn't we go back through a Commit instead of using time? I imagine myself marking the commit or tag where a deploy is done somewhere. Then go back to the files modified or touched by the current commit back to the committed commit and build those? |
Yes, it's more moving parts. (same with the new interactive One solution to the problem of a
There'll be some overlap where the filtering picks up files that got built in the last 2h window, but we're still talking about very minor build times. The time it takes to build, say 10 files vs. 15 files is still in the single-digit seconds range. |
@fiji-flo I chatted to @escattone about this draft PR and I've decided to keep playing with this draft. My plan is to hack on it when time allows. The plan:
I wanna wait till the uplifting settles down and until Ryan is done with #2224 |
This pull request has merge conflicts that must be resolved before we can merge this. |
Part of #2642
This is pretty neat. It makes is possible to build only the documents that were modified recently.
Example:
But you need to set CONTENT_TRANSLATED_ROOT if you want it to be "realistic", so
Now, the (final) files it generates are built in a way that each document is aware of the translations. These files will (almost) be ready to upload to S3.
Bugs and caveats:
/$locale/search-index.json
would be only the built files. But whatever we did for not building all the sitemaps, we can do that here too.prod-build.yml
every 6h we need to make sure the Deployer doesn't delete what WASN'T built (when it does it's "cleanup stuff" (hi @escattone ))en-US
content. But I think it should be possible (before this is an open PR) to make it work for translated content too.I'm going to keep it as a draft for the moment. But I like the start.