Skip to content

ci(translations): compare babel-extract against the parent of the checked-out commit - #45794

Merged
sadpandajoe merged 3 commits into
apache:masterfrom
aozmekik:fix/babel-extract-baseline-race
Oct 28, 2026
Merged

sadpandajoe merged 3 commits into
apache:masterfrom
aozmekik:fix/babel-extract-baseline-race

Conversation

@aozmekik

Copy link
Copy Markdown
Contributor

SUMMARY

babel-extract takes its baseline from the tip of the base branch when the job starts, while the checkout is the merge ref GitHub built when the event fired. If something lands on master in between, the job counts that change against the PR. After #45741 de-fuzzed 196 Turkish entries, the queued runs for #45709 and #45640 and the master push run for ff0af9c failed with tr: 196 confirmed translation(s) invalidated, although none of them touch translations.

On a direct push the fetch gets the branch tip too, so the pushed commit is usually compared with itself rather than with the previous commit.

This uses the first parent of $GITHUB_SHA as the baseline: the base commit of the merge ref for a PR, the previous commit for a push.

TESTING INSTRUCTIONS

I ran the job's steps (babel_update.sh on both sides, then check_translation_regression.py) on 6cfbbe2, the #45709 merge ref from the failing run, and on ff0af9c:

  • baseline f93aa5b (master tip when those jobs ran): tr: 196 confirmed translation(s) invalidated, same as CI
  • baseline $GITHUB_SHA^1 (ff0af9c and 3d1273b): No translation regressions., tr: translated 4046 -> 4046 (+0), fuzzy 795 -> 795 (+0)

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@codeant-ai-for-open-source

codeant-ai-for-open-source Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

CodeAnt  CodeAnt PR Risk

🟢  Low Risk

  • The PR appears safe to merge; PR checks compare against the merge commit’s first parent, and master pushes are squash commits already checked as PRs.

Assessed commit: eed009076c7d

@sadpandajoe sadpandajoe added the review:checkpoint Last PR reviewed during the daily review standup label Oct 27, 2026

@hainenber hainenber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's a LGTM. Thanks, once more.

@hainenber hainenber added the merge-if-green If approved and tests are green, please go ahead and merge it for me label Oct 27, 2026
@sadpandajoe sadpandajoe removed the review:checkpoint Last PR reviewed during the daily review standup label Oct 28, 2026

@sadpandajoe sadpandajoe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@sadpandajoe
sadpandajoe merged commit 7e5799a into apache:master Oct 28, 2026
66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code merge-if-green If approved and tests are green, please go ahead and merge it for me size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants