Repository navigation
fix(translate): parallelize segments within a page - #378
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: f76888b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
commit: |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #378 +/- ##
==========================================
+ Coverage 69.45% 69.69% +0.24%
==========================================
Files 104 104
Lines 4000 4029 +29
Branches 1193 1197 +4
==========================================
+ Hits 2778 2808 +30
+ Misses 973 972 -1
Partials 249 249 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
youyongsong
force-pushed
the
feat/translate-page-parallel
branch
from
November 15, 2026 16:06
0ddf440 to
f76888b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Translate independent segments of the same page concurrently with a bounded worker pool. Long pages previously waited for each segment to finish before starting the next one. The completed page is still assembled in source order.
In one measurement of the same 16-segment page, elapsed time changed from 1:55:13 to 0:45:26. Both runs passed the existing translation checks. This was one baseline/branch pair; gateway load and retry counts differed between runs, so the result does not establish a general speedup for other pages or entire sites.
Behavior and configuration
Validation
The feature patch is unchanged after rebasing onto the current main branch:
git range-diffreports an identical patch and both commits have the same stable patch ID.On the rebased commit:
yarn install --immutablepassed.yarn buildpassed.yarn lintpassed with 0 errors and 3 warnings in unchanged theme files.yarn testpassed: 72 test files and 820 tests, including 36 segment-pipeline tests and 12 global-limiter tests.yarn typecovpassed at 100% (42,152 / 42,152).yarn docs:buildpassed.yarn docs:exportexited before PDF generation because the Playwright browser executable is absent from the isolated cache. Local PDF export remains unverified.Unit coverage includes the segment concurrency limit, out-of-order completion, worker failure handling, and reuse of verified cached segments. The patch changeset resolves to version 2.11.3 through the usual package release.