This is an automated email from the ASF dual-hosted git repository.
shuke987 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new 8b27f8ef1b8 ci: pause scheduled documentation translation (#4723)
8b27f8ef1b8 is described below
commit 8b27f8ef1b829c73494d728d08d14c1477c17c41
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Thu Nov 26 15:56:03 2026 +0800
ci: pause scheduled documentation translation (#4723)
- Remove the `schedule` trigger from the Japanese, Korean, and Russian
translation discovery workflows. Maintainers can dispatch all three
manually in `dry-run`, `validate`, or `generate` mode.
- Update the translation runbook and test assertions to match manual
dispatch. The separate weekly coverage audits continue to report
coverage on their own schedules.
---
.github/workflows/japanese-translation.yml | 3 -
.github/workflows/korean-translation.yml | 5 --
.github/workflows/russian-translation.yml | 5 --
scripts/i18n/__tests__/multi-locale.test.cjs | 2 +-
.../i18n/__tests__/translation-workflows.test.cjs | 25 ++-------
translations/OPERATIONS.md | 10 ++--
translations/README.md | 64 +++++++++-------------
7 files changed, 37 insertions(+), 77 deletions(-)
diff --git a/.github/workflows/japanese-translation.yml
b/.github/workflows/japanese-translation.yml
index c9706d8e60a..9cafe1afe13 100644
--- a/.github/workflows/japanese-translation.yml
+++ b/.github/workflows/japanese-translation.yml
@@ -21,8 +21,6 @@ on:
paths:
description: Optional JSON array of exact English .md/.mdx/.ts/.tsx
files (exclusive with path)
type: string
- schedule:
- - cron: '23 4,16 * * *'
permissions:
contents: read
@@ -42,7 +40,6 @@ jobs:
with:
locale: ja
workspace: japanese-translation
- # Scheduled runs have no inputs and generate.
mode: ${{ inputs.mode || 'generate' }}
plugin: ${{ inputs.plugin }}
version: ${{ inputs.version }}
diff --git a/.github/workflows/korean-translation.yml
b/.github/workflows/korean-translation.yml
index 799d3b807d0..abc8782dcd1 100644
--- a/.github/workflows/korean-translation.yml
+++ b/.github/workflows/korean-translation.yml
@@ -21,10 +21,6 @@ on:
paths:
description: Optional JSON array of exact English .md/.mdx/.ts/.tsx
files (exclusive with path)
type: string
- # Twenty minutes after the Japanese schedule; the shared lock below holds
- # this run while a Japanese run is still in progress.
- schedule:
- - cron: '43 4,16 * * *'
permissions:
contents: read
@@ -44,7 +40,6 @@ jobs:
with:
locale: ko
workspace: korean-translation
- # Scheduled runs have no inputs and generate.
mode: ${{ inputs.mode || 'generate' }}
plugin: ${{ inputs.plugin }}
version: ${{ inputs.version }}
diff --git a/.github/workflows/russian-translation.yml
b/.github/workflows/russian-translation.yml
index 62605f02148..b98a257daa8 100644
--- a/.github/workflows/russian-translation.yml
+++ b/.github/workflows/russian-translation.yml
@@ -21,10 +21,6 @@ on:
paths:
description: Optional JSON array of exact English .md/.mdx/.ts/.tsx
files (exclusive with path)
type: string
- # Twenty minutes after the Korean schedule; the shared lock queues this
- # run while another language's discovery or generation is still in progress.
- schedule:
- - cron: '3 5,17 * * *'
permissions:
contents: read
@@ -42,7 +38,6 @@ jobs:
with:
locale: ru
workspace: russian-translation
- # Scheduled runs have no inputs and generate.
mode: ${{ inputs.mode || 'generate' }}
plugin: ${{ inputs.plugin }}
version: ${{ inputs.version }}
diff --git a/scripts/i18n/__tests__/multi-locale.test.cjs
b/scripts/i18n/__tests__/multi-locale.test.cjs
index 7c0e1ea8d6c..2de44cf1307 100644
--- a/scripts/i18n/__tests__/multi-locale.test.cjs
+++ b/scripts/i18n/__tests__/multi-locale.test.cjs
@@ -113,7 +113,7 @@ test('native doc metadata, browser groups and per-locale
manifests agree, across
}
});
-test('scheduled Japanese jobs select ja and PR admission checks only changed
locales with fail-fast behavior', async t => {
+test('Japanese jobs select ja and PR admission checks only changed locales
with fail-fast behavior', async t => {
const workflow = file => yaml.load(fs.readFileSync(path.join(repoRoot,
'.github/workflows', file), 'utf8'));
const translation = workflow('japanese-translation.yml');
assert.equal(translation.on.workflow_dispatch.inputs.locale, undefined);
diff --git a/scripts/i18n/__tests__/translation-workflows.test.cjs
b/scripts/i18n/__tests__/translation-workflows.test.cjs
index 8c02f972ca0..8096c918dd4 100644
--- a/scripts/i18n/__tests__/translation-workflows.test.cjs
+++ b/scripts/i18n/__tests__/translation-workflows.test.cjs
@@ -19,8 +19,7 @@ test('Russian coverage is a separate read-only scheduled
report with no PR or mo
assert(!JSON.stringify(audit).includes('secrets.'));assert(!JSON.stringify(audit).includes('workflow-generate'));
});
-test('Russian scheduled and manual generation use the shared run, lock and
explicit secrets', () => {
- assert.deepEqual(Object.keys(russian.on), ['workflow_dispatch',
'schedule']);
+test('Russian manual generation uses the shared run, lock and explicit
secrets', () => {
const inputs = russian.on.workflow_dispatch.inputs;
const koreanInputs = callers.ko.on.workflow_dispatch.inputs;
assert.deepEqual(inputs, koreanInputs);
@@ -50,21 +49,13 @@ test('one-page validation rejects an exact batch list
before creating scan artif
assert(!fs.existsSync(output));
});
-test('each language workflow passes one fixed locale to the shared run under
one lock', () => {
- const expected = {
- ja: {workspace: 'japanese-translation', cron: '23 4,16 * * *'},
- // Twenty minutes later; the shared lock queues it behind a Japanese
run.
- ko: {workspace: 'korean-translation', cron: '43 4,16 * * *'},
- // Another twenty minutes later, including the hour rollover.
- ru: {workspace: 'russian-translation', cron: '3 5,17 * * *'},
- };
+test('each language workflow runs only on manual dispatch and uses the same
lock', () => {
+ const workspaces = {ja: 'japanese-translation', ko: 'korean-translation',
ru: 'russian-translation'};
for (const [locale, workflow] of Object.entries(callers)) {
- assert.deepEqual(Object.keys(workflow.on), ['workflow_dispatch',
'schedule']);
- assert.deepEqual(workflow.on.schedule, [{cron:
expected[locale].cron}]);
+ assert.deepEqual(Object.keys(workflow.on), ['workflow_dispatch'],
locale);
const inputs = workflow.on.workflow_dispatch.inputs;
// No locale input: each workflow runs only its own language.
assert.deepEqual(Object.keys(inputs), ['mode', 'plugin', 'version',
'path', 'paths']);
- // Manual runs generate by default, like scheduled ones; dry-run stays
selectable.
assert.equal(inputs.mode.default, 'generate');
assert.deepEqual(inputs.mode.options, ['dry-run', 'validate',
'generate']);
assert.deepEqual(workflow.permissions, {'contents': 'read',
'pull-requests': 'read'});
@@ -72,7 +63,7 @@ test('each language workflow passes one fixed locale to the
shared run under one
assert.deepEqual(Object.keys(workflow.jobs), ['translation']);
const job = workflow.jobs.translation;
assert.equal(job.uses, './.github/workflows/translation-run.yml');
- assert.deepEqual(job.with, {locale, workspace:
expected[locale].workspace,
+ assert.deepEqual(job.with, {locale, workspace: workspaces[locale],
mode: "${{ inputs.mode || 'generate' }}", plugin: '${{
inputs.plugin }}', version: '${{ inputs.version }}',
path: '${{ inputs.path }}', paths: '${{ inputs.paths }}'});
assert.deepEqual(Object.keys(job.secrets).sort(),
Object.keys(shared.on.workflow_call.secrets).sort());
@@ -80,12 +71,8 @@ test('each language workflow passes one fixed locale to the
shared run under one
}
});
-test('scheduled and default manual runs resolve to a mode that the generation
gate accepts', () => {
- // Discovery marks every scheduled run eligible, so the input-less fallback
- // must be a mode that workflow-generate.cjs will run, not a dry run.
+test('manual runs generate by default and can opt into read-only discovery',
() => {
for (const workflow of Object.values(callers)) {
- const fallback = /\|\| '([a-z-]+)'
\}\}$/.exec(workflow.jobs.translation.with.mode)[1];
- assert.equal(allowGeneration({I18N_MODE: fallback, GITHUB_EVENT_NAME:
'schedule', I18N_MAX_PAGES: '10'}), true);
assert.equal(allowGeneration({I18N_MODE:
workflow.on.workflow_dispatch.inputs.mode.default,
GITHUB_EVENT_NAME: 'workflow_dispatch', I18N_MAX_PAGES: '10'}),
true);
}
diff --git a/translations/OPERATIONS.md b/translations/OPERATIONS.md
index 0e361b80e95..1a64b4f908e 100644
--- a/translations/OPERATIONS.md
+++ b/translations/OPERATIONS.md
@@ -8,7 +8,7 @@ This runbook covers managed documentation maintenance, version
changes and recov
| --- | --- | --- |
| Version support, native routes, sidebars and redirects | Website and release
maintainers | Reviewed source/configuration PR and native navigation checks |
| Terminology and manual prose changes | Reviewer for the affected language |
Git-bound source/target revisions; repository edits and complete human
proofreading are reported separately |
-| Scheduled discovery, provider access and automation credentials |
Translation workflow maintainers | Run URL, source SHA, mode, failure stage and
sanitized diagnostics |
+| Translation discovery, provider access and automation credentials |
Translation workflow maintainers | Run URL, source SHA, mode, failure stage and
sanitized diagnostics |
| Publishing and public rollback | Website deployment maintainers | Production
source SHA, immutable asf-site SHA and public content/resource checks |
These are operational roles, not assignments of human proofreading to a named
person. Confirm the current people responsible during handoff. Set response
expectations from observed queue, generation, review and deployment times; this
repository does not promise an automatic merge or a fixed translation SLA.
@@ -25,14 +25,14 @@ These are operational roles, not assignments of human
proofreading to a named pe
| `translations/release-notes-baseline.json` | Fixed historical release-note
boundary; never advance it to hide work |
| `translations/blog-baseline.json` | Fixed blog boundary and historical
fallback languages; never advance it during discovery |
-Course UI, weekly report source groups and landing pages remain outside
scheduled generation unless explicitly admitted. New blogs are admitted as
`BLOG` for Japanese, Korean and Russian. Historical blogs are excluded from
generation and render English in all four non-English languages, including
Chinese. A registered supplemental group is not automatically a required
generation backlog.
+Course UI, weekly report source groups and landing pages remain outside
workflow generation unless explicitly admitted. New blogs are admitted as
`BLOG` for Japanese, Korean and Russian. Historical blogs are excluded from
generation and render English in all four non-English languages, including
Chinese. A registered supplemental group is not automatically a required
generation backlog.
## Correct a translation manually
Developers edit only the Japanese, Korean or Russian body under
`i18n/<locale>/` and submit the usual PR. They do not edit state shards,
calculate hashes, migrate a legacy record or set ownership/review flags. For a
Dev document, edit `i18n/ja/docusaurus-plugin-content-docs/current/<path>.md`;
use `version-4.x/` for 4.x. The same procedure applies to Korean and Russian
and to admitted new blogs.
1. Start from current `master`, revise the translation against its source, and
preserve routing, links, code and technical facts.
-2. Submit only the body changes. Normal PR admission checks syntax, source
consistency, protected technical content and the applicable native build. Open
human PRs reserve or block their targets during scheduled reconciliation.
+2. Submit only the body changes. Normal PR admission checks syntax, source
consistency, protected technical content and the applicable native build. Open
human PRs reserve or block their targets during workflow reconciliation.
3. Merge after review and CI. The `master` push triggers the normal website
publishing workflow; the correction appears after that publication succeeds.
4. Subsequent translation scans retain the correction while the corresponding
English and Chinese input bytes are unchanged. Unrelated documents, ledger
timestamps, glossary/tool changes and translation-body edits alone do not
permit retranslation.
5. When either corresponding source changes, automatic maintenance may update
the translation and its internal state through the usual PR flow. English
remains authoritative for technical facts; the current Chinese counterpart is
supplementary context. A missing Chinese counterpart is tracked too, so
creating or deleting it is a source change.
@@ -45,7 +45,7 @@ Target/state changes during a model request still discard its
candidate; English
## New-blog policy
-The cutoff is source commit `5e9ed76441890c1096e7c562746d00702e93f038`,
recorded with 206 native posts, 206 source files and 308 historical paths. A
post's filename date or front matter date does not determine eligibility. Git
lineage, IDs, paths and source hashes exclude historical moves, copies and
re-registration; ambiguous identities require manual reconciliation. Genuinely
new posts committed after this cutoff, including their later updates, use the
existing scheduled Japanese, Kore [...]
+The cutoff is source commit `5e9ed76441890c1096e7c562746d00702e93f038`,
recorded with 206 native posts, 206 source files and 308 historical paths. A
post's filename date or front matter date does not determine eligibility. Git
lineage, IDs, paths and source hashes exclude historical moves, copies and
re-registration; ambiguous identities require manual reconciliation. Genuinely
new posts committed after this cutoff, including their later updates, are
eligible for translation through the [...]
Historical articles, including the existing Chinese and three-language pilot
targets, render the English body with English canonical URLs and `noindex` on
localized fallback routes. Their files and legacy manual shards remain
preserved as archival inputs. Editing an archived historical target does not
enable its publication under this policy. Chinese new-blog translations remain
manually maintained.
@@ -74,7 +74,7 @@ I18N_LOCALE=ru node scripts/i18n/plan-translations.cjs \
--output /tmp/ru-plan.json --audit-output /tmp/ru-audit.json
```
-Refresh discovery after a source merge, a target edit, a candidate
merge/closure or a scope change. Do not generate from a saved plan just because
its task IDs still exist. The scheduled workflow performs this reconciliation
itself.
+Refresh discovery after a source merge, a target edit, a candidate
merge/closure or a scope change. Do not generate from a saved plan just because
its task IDs still exist. Each workflow run reconciles open PRs during
discovery.
For trusted-main discovery without provider calls or PR writes:
diff --git a/translations/README.md b/translations/README.md
index ab741f352d6..6aa371463d9 100644
--- a/translations/README.md
+++ b/translations/README.md
@@ -7,7 +7,7 @@ browser language order, the regional fallback table and
detection rollback.
The [manual blog contract](BLOG.md) covers per-article fallback, indexing,
aggregates, feeds and the initial four-article/four-language pilot. It is
separate
-from scheduled documentation generation.
+from documentation generation.
## Supported documentation versions
@@ -163,11 +163,9 @@ rebuild through the existing process; retain source
translations and state.
`.github/workflows/russian-translation.yml` calls the existing
`translation-run.yml` with `locale: ru` and the `russian-translation`
workspace.
-It runs at 05:03 and 17:03 UTC daily, twenty minutes after Korean discovery,
and
-also accepts manual dispatch. Scheduled runs and default manual runs use
-`generate`. Select `dry-run` explicitly to discover pending work without
calling
-a model. Japanese, Korean and Russian runs share the whole-run
-`docs-translation` lock, including discovery and validation.
+Dispatch it manually to generate translations. Select `dry-run` to discover
+pending work without calling a model. Japanese, Korean and Russian runs share
+the `docs-translation` lock, including discovery and validation.
The separate `russian-coverage-audit.yml` is a read-only weekly report at
05:49 UTC on Mondays and supports manual dispatch. It has only `contents:
read`,
@@ -283,18 +281,14 @@ existing source/technical hash algorithms unchanged.
Offline Korean fixtures
exercise these boundaries without real credentials or model calls; actual
single-page generation is a separate validation step.
-The `Korean translation discovery` workflow runs at 04:43 and 16:43 UTC daily
-and on manual dispatch. Like the Japanese workflow, it calls the shared
-`.github/workflows/translation-run.yml`, here with the locale fixed to `ko` and
-its own `korean-translation-*` artifacts; both workflows hold the same
-`docs-translation` lock. The schedule starts twenty minutes after the Japanese
-one, so a Korean run waits while a Japanese run is still in progress. A
scheduled run generates a
-batch when eligible Korean documents are pending, with the same limits as a
-manual `generate` run: the planner considers at most 20 targets and a batch has
-at most 10 pages. It opens a normal labeled PR that maintainers review and
merge
-like any other; nothing is merged automatically. With nothing pending, a
-scheduled run only scans and makes no model call. Manual dispatch also defaults
-to `generate`; choose `dry-run` for read-only discovery on master:
+The `Korean translation discovery` workflow runs on manual dispatch. It calls
+`.github/workflows/translation-run.yml` with locale `ko` and writes
+`korean-translation-*` artifacts. It shares the `docs-translation` lock with
the
+Japanese and Russian workflows. In the default `generate` mode, the planner
+considers up to 20 targets and generates up to 10 pages per batch. Maintainers
+review and merge the resulting labeled PR. When no eligible documents are
+pending, the run ends after discovery. Choose `dry-run` for read-only discovery
+on master:
```bash
gh workflow run korean-translation.yml --repo apache/doris-website --ref
master -f mode=dry-run
@@ -654,17 +648,12 @@ review are recommended before running batch generation.
## Asynchronous discovery and generation
-`.github/workflows/japanese-translation.yml` runs at 04:23 and 16:23 UTC daily
-and on manual dispatch; `.github/workflows/korean-translation.yml` runs twenty
-minutes later. Each sets only its triggers, manual defaults and the lock, then
-calls `.github/workflows/translation-run.yml` with its locale and artifact
-prefix. Russian runs another twenty minutes later, at 05:03 and 17:03 UTC,
using
-the same steps and lock. All three support manual dispatch and default to
-`generate`; select `dry-run` explicitly for a read-only scan. None has a push
-trigger. The description below uses Japanese; the other languages differ in
-locale, label, artifact names and scheduled times. Every run first recounts
-the current configured translation scope, including Dev, 4.x, community,
-courses, release notes and reports, reads every open master
+The Japanese, Korean and Russian translation workflows run only on manual
+dispatch. Each uses the shared `.github/workflows/translation-run.yml` with its
+own locale and artifact prefix. All three default to `generate`. Select
+`dry-run` for a read-only scan. Each language uses its own PR label and
artifact
+names. Every run first recounts the configured translation scope, including
+Dev, 4.x, community, courses, release notes and reports, reads every open
master
PR's changed files, and checks Japanese target files against that PR's state
records. Each run uploads `plan.json`, `coverage.json`,
`active-candidates.json` and `open-pr-reconciliation.json` and writes a short
@@ -675,10 +664,8 @@ attention and neither closes nor overwrites the existing
PR. A PR whose
candidate cannot be verified blocks that target from robot generation and
appears in the exception report.
-Japanese and Korean manual dispatch default to `generate`; Russian defaults to
-`dry-run`. Each workflow
-accepts optional plugin, version and source path prefix filters, or an exact
-`paths` list. `validate` mode requires one exact English source path
+Each workflow accepts optional plugin, version and source path prefix filters,
+or an exact `paths` list. `validate` mode requires one exact English source
path
ending in `.md` or `.mdx`; it can call the model and create a regular PR for
one
page. It provides a single-page live check after OSS model access is available.
With OSS access but no GitHub write credential, `validate` still writes the
@@ -700,10 +687,9 @@ discovery, it reuses the discovery plan instead of
recounting every native
document. Translation PR merges do not trigger this workflow. It does not
participate in website
builds or release deployment.
-The mode controls generation directly: manual `generate` runs and scheduled
-runs generate batches when eligible documents are pending, while `dry-run`
-only scans. No repository enablement variables are required. The workflow
-uses the same verified Codex CLI package and numbered ChatGPT auth
+The `generate` mode produces a batch when eligible documents are pending.
+The `dry-run` mode only scans. No repository enablement variables are required.
+The workflow uses the same verified Codex CLI package and numbered ChatGPT auth
snapshots in OSS as the Apache Doris code-review runner. The repository's
`OSS_AK` and `OSS_SK` secrets must be able to read those objects and update the
selected auth snapshot if Codex refreshes it. `I18N_CODEX_MODEL` is optional
@@ -849,8 +835,8 @@ fresh scan immediately before generation. `validate` still
requires one exact
targets and generation still produces at most 10. Exact selection preserves
full coverage counts, current-page and active-PR exclusion, human ownership,
scope/version checks, and protection against relevant master changes. Unknown,
duplicate,
-malformed or out-of-scope source paths fail before model calls. Scheduled runs
-do not use this input; they plan from the full scope.
+malformed or out-of-scope source paths fail before model calls. Omit the
+optional filters to plan from the full scope.
The planner CLI exposes the same filter as `--paths '<JSON array>'`.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]