Skip to content

ci: parallelize locale deploy builds#137

Merged
superdav42 merged 1 commit into
mainfrom
perf/parallel-locale-deploy
Jun 17, 2026
Merged

ci: parallelize locale deploy builds#137
superdav42 merged 1 commit into
mainfrom
perf/parallel-locale-deploy

Conversation

@superdav42

@superdav42 superdav42 commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Split the production docs deploy into source preparation, parallel locale chunk builds, and one final assemble/deploy job.
  • Build 111 Docusaurus locales as 12 matrix chunks: English plus translated-locale batches of 10.
  • Add deploy-docs.yml to the validation workflow trigger paths so future deploy workflow changes run PR validation.

Verification

  • python3 YAML parse for .github/workflows/deploy-docs.yml and .github/workflows/validate-docs.yml
  • git diff --check
  • DOCUSAURUS_EXIT_AFTER_LOADING=true npx docusaurus build --locale en --locale uz
  • npx docusaurus build --locale en --locale uz
  • npx docusaurus build --locale uz --locale vi

Note: local Docusaurus builds completed successfully with existing broken-link/anchor warnings.


aidevops.sh v3.20.86 plugin for OpenCode v1.17.7 with gpt-5.5

Summary by CodeRabbit

  • Chores
    • Parallelized documentation build pipeline to process locale-specific builds concurrently, improving deployment efficiency and reducing overall build time
    • Enhanced documentation validation workflow to automatically detect and validate changes to build processes, ensuring consistency and reliability

@coderabbitai

coderabbitai Bot commented Jun 17, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The deploy-docs workflow gains a plan-locale-chunks job that batches Docusaurus locales into chunks and a prepare-docs-source artifact job. These feed a parallel build-locale-chunk matrix that replaces the single build step, culminating in an assemble-and-deploy job that merges all locale artifacts via rsync. The validate-docs workflow gains deploy-docs path triggers.

Changes

Parallel Locale Build Pipeline

Layer / File(s) Summary
Locale chunk planning and source artifact preparation
.github/workflows/deploy-docs.yml
Adds plan-locale-chunks job that parses docusaurus.config.js, validates en is first, groups translated locales into fixed-size batches with a forced 00-en chunk, exports the chunk list via GITHUB_OUTPUT, and introduces the prepare-docs-source job label.
Parallel locale matrix builds and final assembly/deploy
.github/workflows/deploy-docs.yml
Uploads curated repo files as prepared-docs-source; each build-locale-chunk matrix runner downloads that artifact, installs deps, runs npx docusaurus build for its locales, and uploads docs-build-<chunk>. The assemble-and-deploy job merges all artifacts with rsync, enforces 00-en presence, validates build/index.html, and deploys.
Validate-docs trigger path update
.github/workflows/validate-docs.yml
Adds .github/workflows/deploy-docs.yml to both pull_request and push trigger paths lists.

Sequence Diagram(s)

sequenceDiagram
  participant Config as docusaurus.config.js
  participant Planner as plan-locale-chunks
  participant Prep as prepare-docs-source
  participant Matrix as build-locale-chunk (N runners)
  participant Assembler as assemble-and-deploy

  Planner->>Config: parse locales array
  Config-->>Planner: [en, fr, de, ...]
  Planner-->>Matrix: chunk list via GITHUB_OUTPUT
  Prep-->>Matrix: prepared-docs-source artifact
  Matrix->>Matrix: npx docusaurus build --locale <chunk locales>
  Matrix-->>Assembler: docs-build-<chunk> artifact
  Assembler->>Assembler: rsync merge all chunks into build/
  Assembler->>Assembler: assert build/index.html exists
  Assembler->>Assembler: deploy site
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • Ultimate-Multisite/docs#134: Created the validate-docs.yml workflow that this PR extends by adding deploy-docs.yml to its trigger paths.

Poem

🐇 Hop, hop, hooray for chunks galore,
The locales split to build in parallel store!
Each runner grabs its slice of en and friends,
Then rsync weaves them right before it ends.
One site assembled, tested, and deployed—
This rabbit's CI worries are destroyed! 🌟

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'ci: parallelize locale deploy builds' accurately summarizes the main change: introducing parallelization for locale builds in the CI/CD deployment workflow.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch perf/parallel-locale-deploy

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/deploy-docs.yml:
- Around line 112-119: The plan-locale-chunks job is missing an if condition
that prevents it from running unnecessarily on scheduled events. Add an if
condition to the plan-locale-chunks job that matches the skip condition already
implemented in the prepare-docs-source and build-locale-chunk jobs. This will
ensure the job only runs when appropriate and avoids wasting CI minutes on
scheduled events when no changes are detected.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 007c9f39-5514-469d-8b0f-8bd1c72c5882

📥 Commits

Reviewing files that changed from the base of the PR and between 2994c16 and 0d2ab32.

📒 Files selected for processing (2)
  • .github/workflows/deploy-docs.yml
  • .github/workflows/validate-docs.yml

Comment on lines +112 to +119
# ── Locale chunk planning ────────────────────────────────────────────────────
plan-locale-chunks:
needs: check-changes
runs-on: ubuntu-latest
outputs:
chunks: ${{ steps.plan.outputs.chunks }}
steps:
- uses: actions/checkout@v6

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Missing if condition causes unnecessary job execution.

Unlike prepare-docs-source and build-locale-chunk, this job lacks the skip condition. It will run even on scheduled events when changed=false, wasting CI minutes. Add the same condition for consistency:

   plan-locale-chunks:
     needs: check-changes
+    if: needs.check-changes.outputs.changed == 'true' || github.event_name != 'schedule'
     runs-on: ubuntu-latest
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
# ── Locale chunk planning ────────────────────────────────────────────────────
plan-locale-chunks:
needs: check-changes
runs-on: ubuntu-latest
outputs:
chunks: ${{ steps.plan.outputs.chunks }}
steps:
- uses: actions/checkout@v6
# ── Locale chunk planning ────────────────────────────────────────────────────
plan-locale-chunks:
needs: check-changes
if: needs.check-changes.outputs.changed == 'true' || github.event_name != 'schedule'
runs-on: ubuntu-latest
outputs:
chunks: ${{ steps.plan.outputs.chunks }}
steps:
- uses: actions/checkout@v6
🧰 Tools
🪛 zizmor (1.25.2)

[warning] 119-119: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false

(artipacked)


[error] 119-119: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)

(unpinned-uses)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/deploy-docs.yml around lines 112 - 119, The
plan-locale-chunks job is missing an if condition that prevents it from running
unnecessarily on scheduled events. Add an if condition to the plan-locale-chunks
job that matches the skip condition already implemented in the
prepare-docs-source and build-locale-chunk jobs. This will ensure the job only
runs when appropriate and avoids wasting CI minutes on scheduled events when no
changes are detected.

@superdav42 superdav42 merged commit d0c7a20 into main Jun 17, 2026
5 checks passed
@superdav42

Copy link
Copy Markdown
Contributor Author

Summary

  • Split the production docs deploy into source preparation, parallel locale chunk builds, and one final assemble/deploy job.
  • Build 111 Docusaurus locales as 12 matrix chunks: English plus translated-locale batches of 10.
  • Add deploy-docs.yml to the validation workflow trigger paths so future deploy workflow changes run PR validation.

Verification

  • python3 YAML parse for .github/workflows/deploy-docs.yml and .github/workflows/validate-docs.yml
  • git diff --check
  • DOCUSAURUS_EXIT_AFTER_LOADING=true npx docusaurus build --locale en --locale uz
  • npx docusaurus build --locale en --locale uz
  • npx docusaurus build --locale uz --locale vi
    Note: local Docusaurus builds completed successfully with existing broken-link/anchor warnings.

aidevops.sh v3.20.86 plugin for OpenCode v1.17.7 with gpt-5.5


Merged via PR #137 to main.
Merged by deterministic merge pass (pulse-wrapper.sh).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-feedback-scanned Merged PR already scanned for quality feedback

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant