feat: build by site #5031
Reference in New Issue
Block a user
Delete Branch "feat/by-site"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
phase 1 and 2 now by site folder
This allows for us building each site in a different set of languages, wheres before we built every site in every language any site was in.
At the moment this will build each site in every language that there is at least one file of that language in the site.
So if a site has on file in lang AA, it will be built in lang AA. But if it has no files, it will not be built in that lang.
This is a performance enhancement, will do benchmarks later.
Some more complex heuristics for when we do/do not use a language for a file are being discussed in #4601 .
WIP: feat: better delination of purpose of phasesto WIP: feat: build by siteMain difference I can see in builds on master vs this pr are
(Languages identified by 2 letter codes)
So, after fixing the global language thing:
So, some quick benchmarks give that this pr is a whole 7 seconds faster, at 6 min 7 secs vs 6 min 14 secs.
What a speed boost. Anyway, we might pick up a few more if we decide to stop building in languages with no useful files or whatever. And this is logically cleaner, regardless of speed.
There are probably speed benefits to be picked up by running the three site builds concurrently, but that would make the logging so messy as to be unusable.
1f33a04b9dto6ea62ef2d7So, I consider this good to merge, but I want to make sure that the changes in build languages given in #5031 (comment) are acceptable.
looking good to me :)
The languages that are not used for building the pages in are those that have some translations in other pages, but not for the selected one right?
Yes. It used to be the case that if fsfe.org. DRM.info or any other site had on file in a language, then all sites were built in that lang.
Eg if DRM.info has a Kurdish translation but no other site does, all sites were built in Kurdish anyway.
Now we build each site in the languages it has.
So DRM.info would be built in Kurdish, but no other sites would be.
WIP: feat: build by siteto feat: build by siteSounds good to me :)
looks great :)