Skip to content

Retry Vale sync and skip the check when Vale cannot be downloaded - #448

Merged
theletterf merged 3 commits into
mainfrom
fix/vale-sync-retry
Nov 9, 2026
Merged

theletterf merged 3 commits into
mainfrom
fix/vale-sync-retry

Conversation

@theletterf

Copy link
Copy Markdown
Member

The #docs-alerts channel has been showing Vale CI failures for the last few days, so I looked at the logs of the four runs behind them (elasticsearch and docs-content on Nov 5, kibana and edot-cloud-forwarder-azure on Nov 8).

None of them was a style error. Each one failed on a download from GitHub: a 504 on elastic-vale.zip during vale sync (no retry), and Failed to download Vale binary or checksums after 3 attempts in the other three. The failures did not clearly overlap with a GitHub incident on githubstatus.com.

This PR changes vale/lint/action.yml so that a download problem no longer blocks CI:

  • vale sync now retries up to 3 times, with a 5 second pause between attempts.
  • If the sync still fails, the step prints a warning and the job passes. Linting is skipped.
  • The Vale install step does the same: it keeps its 3 download attempts, then warns and skips instead of failing.
  • When linting is skipped, the job summary says so, and no artifact is uploaded (artifact_uploaded=false).
  • A checksum mismatch stays fatal. It is a security signal, not a transient failure.

I tested the retry loop locally with a fake vale command: 3 retries with pauses and ready=false when it always fails, and ready=true when it succeeds on the third attempt. I have not run the full action on a runner yet, so the new job summary and the skip path are unverified. The existing Test Vale lint workflow should cover the normal path.

No tracking issue exists for this work, at my request.

🤖 Generated with Claude Code

Vale CI failed on 4 runs (elasticsearch, docs-content, kibana,
edot-cloud-forwarder-azure) because a download from GitHub failed:
a 504 on the style package, and the Vale binary download after 3
attempts. These are transient failures, not style errors.

- Retry `vale sync` up to 3 times, pausing 5s between attempts.
- If the Vale install or the sync still fails, print a warning, write
  a note to the job summary, skip linting, and pass the job.
- Keep the checksum mismatch fatal, because it is a security signal.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@theletterf
theletterf requested a review from a team as a code owner November 9, 2026 09:07
@theletterf
theletterf requested a review from reakaleek November 9, 2026 09:07
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Elastic Docs Style Checker (Vale)

Summary: 21 warnings, 19 suggestions found

⚠️ Warnings (21): Fix when the suggestion improves clarity or correctness.
File Line Rule Message
vale/test-fixtures/sample-violations.md 2 Elastic.MappedPages Avoid editing mapped_pages unless you are preserving an existing URL mapping. Talk with your local technical writer before changing this key.
vale/test-fixtures/sample-violations.md 6 Elastic.Articles Use 'an FAQ' instead of 'a FAQ'. The article depends on pronunciation, not spelling.
vale/test-fixtures/sample-violations.md 6 Elastic.Articles Use 'an HTML' instead of 'a HTML'. The article depends on pronunciation, not spelling.
vale/test-fixtures/sample-violations.md 6 Elastic.Articles Use 'an SQL' instead of 'a SQL'. The article depends on pronunciation, not spelling.
vale/test-fixtures/sample-violations.md 6 Elastic.Articles Use 'an HTML' instead of 'a HTML'. The article depends on pronunciation, not spelling.
vale/test-fixtures/sample-violations.md 7 Elastic.BritishSpellings Use American English spelling 'optimize' instead of British English 'optimise'.
vale/test-fixtures/sample-violations.md 7 Elastic.BritishSpellings Use American English spelling 'customize' instead of British English 'customise'.
vale/test-fixtures/sample-violations.md 7 Elastic.BritishSpellings Use American English spelling 'behavior' instead of British English 'behaviour'.
vale/test-fixtures/sample-violations.md 11 Elastic.DontUse Don't use 'just'. Choose a more precise or reader-focused term.
vale/test-fixtures/sample-violations.md 11 Elastic.DontUse Don't use 'please'. Choose a more precise or reader-focused term.
vale/test-fixtures/sample-violations.md 11 Elastic.DontUse Don't use 'aka'. Choose a more precise or reader-focused term.
vale/test-fixtures/sample-violations.md 20 Elastic.Articles Use 'an FAQ' instead of 'a FAQ'. The article depends on pronunciation, not spelling.
vale/test-fixtures/sample-violations.md 20 Elastic.Articles Use 'an HTML' instead of 'a HTML'. The article depends on pronunciation, not spelling.
vale/test-fixtures/sample-violations.md 20 Elastic.Articles Use 'an SQL' instead of 'a SQL'. The article depends on pronunciation, not spelling.
vale/test-fixtures/sample-violations.md 24 Elastic.BritishSpellings Use American English spelling 'optimize' instead of British English 'optimise'.
vale/test-fixtures/sample-violations.md 24 Elastic.BritishSpellings Use American English spelling 'customize' instead of British English 'customise'.
vale/test-fixtures/sample-violations.md 24 Elastic.BritishSpellings Use American English spelling 'behavior' instead of British English 'behaviour'.
vale/test-fixtures/sample-violations.md 40 Elastic.DontUse Don't use 'just'. Choose a more precise or reader-focused term.
vale/test-fixtures/sample-violations.md 40 Elastic.DontUse Don't use 'please'. Choose a more precise or reader-focused term.
vale/test-fixtures/sample-violations.md 40 Elastic.DontUse Don't use 'aka'. Choose a more precise or reader-focused term.
vale/test-fixtures/sample-violations.md 48 Elastic.Articles Use 'an HTML' instead of 'a HTML'. The article depends on pronunciation, not spelling.
💡 Suggestions (19): Optional style improvements. Apply when helpful.
File Line Rule Message
vale/test-fixtures/sample-violations.md 8 Elastic.WordChoice Consider using 'efficiently' instead of 'Simply', unless the term is in the UI.
vale/test-fixtures/sample-violations.md 8 Elastic.WordChoice Consider using 'allowlist' instead of 'whitelist', unless the term is in the UI.
vale/test-fixtures/sample-violations.md 8 Elastic.WordChoice Consider using 'blocklist' instead of 'blacklist', unless the term is in the UI.
vale/test-fixtures/sample-violations.md 9 Elastic.OxfordComma Use the Oxford comma in 'reading, writing and executing.'.
vale/test-fixtures/sample-violations.md 10 Elastic.Wordiness Consider using 'to' instead of 'In order to'.
vale/test-fixtures/sample-violations.md 10 Elastic.Wordiness Consider using 'because' instead of 'due to the fact that'.
vale/test-fixtures/sample-violations.md 10 Elastic.Wordiness Consider using 'many' instead of 'a large number of'.
vale/test-fixtures/sample-violations.md 12 Elastic.Exclamation Use exclamation points sparingly. Remove the exclamation point unless it appears in UI text.
vale/test-fixtures/sample-violations.md 12 Elastic.Exclamation Use exclamation points sparingly. Remove the exclamation point unless it appears in UI text.
vale/test-fixtures/sample-violations.md 28 Elastic.WordChoice Consider using 'efficiently' instead of 'Simply', unless the term is in the UI.
vale/test-fixtures/sample-violations.md 28 Elastic.WordChoice Consider using 'allowlist' instead of 'whitelist', unless the term is in the UI.
vale/test-fixtures/sample-violations.md 28 Elastic.WordChoice Consider using 'blocklist' instead of 'blacklist', unless the term is in the UI.
vale/test-fixtures/sample-violations.md 28 Elastic.WordChoice Consider using 'efficient' instead of 'easy', unless the term is in the UI.
vale/test-fixtures/sample-violations.md 32 Elastic.OxfordComma Use the Oxford comma in 'reading, writing and executing.'.
vale/test-fixtures/sample-violations.md 36 Elastic.Wordiness Consider using 'to' instead of 'In order to'.
vale/test-fixtures/sample-violations.md 36 Elastic.Wordiness Consider using 'because' instead of 'due to the fact that'.
vale/test-fixtures/sample-violations.md 36 Elastic.Wordiness Consider using 'many' instead of 'a large number of'.
vale/test-fixtures/sample-violations.md 44 Elastic.Exclamation Use exclamation points sparingly. Remove the exclamation point unless it appears in UI text.
vale/test-fixtures/sample-violations.md 44 Elastic.Exclamation Use exclamation points sparingly. Remove the exclamation point unless it appears in UI text.

The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

Comment thread vale/lint/action.yml Resolved
Comment thread vale/lint/action.yml Resolved
Comment thread vale/lint/action.yml Resolved
@theletterf theletterf self-assigned this Nov 9, 2026
- Guard the latest-version lookup so a failed `gh api` call reaches the
  skip branch instead of failing under `bash -e -o pipefail`.
- Document the fail-open behavior in the lint action README.
- Add a test job that runs the action with an install failure and with
  a sync failure, with `fail_on_error: true`, and checks that the job
  passes, `artifact_uploaded` is `false`, and no result files exist.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@theletterf theletterf added the fix label Nov 9, 2026
Comment thread .github/workflows/test-vale-lint.yml Resolved
@theletterf
theletterf merged commit 7dc5209 into main Nov 9, 2026
15 checks passed
@theletterf
theletterf deleted the fix/vale-sync-retry branch November 9, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant