From 0dd5bb32e936ce458e921dc7a9eefec6dfafcbac Mon Sep 17 00:00:00 2001 From: Aaron Liang <76561968+AaronL725@users.noreply.github.com> Date: Wed, 15 Jul 2026 03:06:16 +0800 Subject: [PATCH] fix: preflight scoped post-modularization patcher --- .github/workflows/temp-post-modularization-fixes.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/temp-post-modularization-fixes.yml b/.github/workflows/temp-post-modularization-fixes.yml index 7cff6bf..55ac53e 100644 --- a/.github/workflows/temp-post-modularization-fixes.yml +++ b/.github/workflows/temp-post-modularization-fixes.yml @@ -6,6 +6,7 @@ on: - fix/post-modularization-regressions paths: - tools/apply_post_modularization_fixes.py + - tools/repair_post_modularization_patcher.py - .github/workflows/temp-post-modularization-fixes.yml workflow_dispatch: @@ -27,8 +28,12 @@ jobs: python -m pip install --upgrade pip python -m pip install -r requirements.txt python -m pip install filelock - - name: Validate and apply fixes + - name: Repair, validate, and apply fixes run: | + python -m py_compile \ + tools/repair_post_modularization_patcher.py \ + tools/apply_post_modularization_fixes.py + python tools/repair_post_modularization_patcher.py python -m py_compile tools/apply_post_modularization_fixes.py python tools/apply_post_modularization_fixes.py python -m compileall -q . @@ -50,7 +55,10 @@ jobs: run: | git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - git rm -f tools/apply_post_modularization_fixes.py .github/workflows/temp-post-modularization-fixes.yml + git rm -f \ + tools/apply_post_modularization_fixes.py \ + tools/repair_post_modularization_patcher.py \ + .github/workflows/temp-post-modularization-fixes.yml git add -A git commit -m "fix: resolve post-modularization regressions" git push origin HEAD:fix/post-modularization-regressions