You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2026/09/22 19:44:06 UTC

(superset) 01/01: ci: require babel-extract to pass before merging master

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch ci/require-babel-extract-check
in repository https://gitbox.apache.org/repos/asf/superset.git

commit b56050155b5abd7e612e6694f93da3c8e914e2e4
Author: Evan Rusackas <ev...@rusackas.com>
AuthorDate: Tue Sep 22 12:43:49 2026 -0700

    ci: require babel-extract to pass before merging master
    
    babel-extract runs check_pot_drift.py, added in #44467 to fail a PR that
    adds or renames a translatable string without regenerating
    messages.pot. It is not currently in .asf.yaml's required contexts, so
    it can be red (or, on a PR whose branch predates the script's own
    existence, error outright) without blocking merge.
    
    That gap let #44465 land 18 minutes after #44467 regenerated the
    template, reintroducing drift immediately: #44465's branch was cut
    before #44467 merged, so check_pot_drift.py did not exist on it yet,
    and nothing required babel-extract to be green (or even present) on
    the up-to-date branch before allowing the merge. #44509 cleaned up the
    resulting drift.
    
    babel-extract is also the only translation-drift check gated on both
    Python and frontend changes (unit-tests-required, which independently
    covers check_pot_drift.py via check_pot_drift_test.py, only runs when
    a PR touches Python), so it is the one that has to be required for a
    frontend-only string addition to be caught at all.
    
    This does not by itself close the race that let #44465 through -- that
    needs required_status_checks.strict: true, a separate, repo-wide
    decision left for a follow-up PR stacked on this one. This PR only
    makes the existing check_pot_drift.py gate binding on the PR's own
    branch.
    
    Co-Authored-By: Evan Rusackas <ev...@preset.io>
    Co-Authored-By: Claude Sonnet 5 <no...@anthropic.com>
---
 .asf.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.asf.yaml b/.asf.yaml
index 49e82642ce0..27b41d21152 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -77,6 +77,7 @@ github:
         # combination here.
         contexts:
           - lint-check
+          - babel-extract
           - cypress-matrix-required
           - dependency-review
           - enforce-single-migration-head