morningman opened a new pull request, #4537: URL: https://github.com/apache/doris-website/pull/4537
The full five-language production build reached 14.36 GiB RSS and left only about 344 MiB of available RAM, despite a 6 GiB V8 heap limit. The peak occurs while Docusaurus runs its client and server Rspack compilers together; closed compilers in the pinned native implementation remain reachable. Build the client in a disposable process, wait for its successful exit, then compile the server and render pages in the locale process. Transfer the exact client manifest and client MDX results with checksums and source-stamp checks. This preserves Docusaurus 3.6.3's client-derived MDX asset semantics and avoids a server loader waiting for an in-process client promise. Reuse the existing content-addressed structure cache only within a fresh, fixed-source build directory to limit repeated parsing. Keep atomic output assembly, all languages and active versions, strict verification, and the existing client minifier. Record separate compiler PIDs, phase memory and client exit ordering. Synchronize cron/manual settings and archive compiler metrics. Sampling retains the actual client compilation proof alongside server checks. Validation: - 407 Node tests: 405 passed, 2 conditional skips; 27 workflow tests passed. - Same-source real five-language Rspack comparison: 325 emitted files (3.67 MB) are byte-identical between the previous parallel pipeline and process isolation, including docs, blog excerpts/full posts and a local image. - Publishing fixture/browser checks, 36 native search/recovery cases and the five-language sampling fixture passed. The sampling fixture still rejects changed broken docs/blog modules and excludes unselected modules. - No local full website compilation. The next complete production run must establish the actual memory headroom and final time budget; this PR does not claim that measurement has already passed. Self-review against AGENTS.md: | Checkpoint | Conclusion | | --- | --- | | Goal | Addresses overlapping native compiler lifetimes; client process exit is checked before the server starts. Full-scale resource acceptance remains pending. | | Focus | Pinned build adapter, transient compiler state, measurements and focused regression fixtures. | | Information architecture | Prose, translation ownership, active versions, plugins and sidebars are unchanged. | | Paths/navigation | Same-source emitted artifacts are byte-identical; no document URL changes. | | Frontend | Existing client minification, locale prefixes, worker origin and theme behavior are preserved; publishing/search browser fixtures passed. | | Validation | Real native artifact equality, failure/manifest/cache tests and actual compilation-proof checks cover the process boundary. | | Other quality | No dependency upgrades or permission/secret expansion; failed client/source/checksum validation stops before server compilation or publication. | -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
