From 1c3a0b23ced2d3d1b4f9e6c70e68716cb409ba77 Mon Sep 17 00:00:00 2001 From: Aaron Liang <76561968+AaronL725@users.noreply.github.com> Date: Wed, 15 Jul 2026 01:43:31 +0800 Subject: [PATCH] fix: preprocess AST spans before modularization --- .github/workflows/temp-full-safe-modularization.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/temp-full-safe-modularization.yml b/.github/workflows/temp-full-safe-modularization.yml index 5fc30d5..f35d0b5 100644 --- a/.github/workflows/temp-full-safe-modularization.yml +++ b/.github/workflows/temp-full-safe-modularization.yml @@ -4,6 +4,7 @@ on: push: paths: - tools/apply_full_safe_modularization.py + - tools/fix_modularization_ast_spans.py - .github/workflows/temp-full-safe-modularization.yml workflow_dispatch: @@ -23,6 +24,8 @@ jobs: python -m pip install --upgrade pip if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi python -m pip install filelock + - name: Repair AST source spans + run: python tools/fix_modularization_ast_spans.py - name: Apply safe modularization run: python tools/apply_full_safe_modularization.py - name: Verify Python syntax @@ -35,6 +38,7 @@ jobs: git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git rm -f \ tools/apply_full_safe_modularization.py \ + tools/fix_modularization_ast_spans.py \ tools/build_refactor_inventory.py \ refactor_inventory.json \ .github/workflows/temp-refactor-inventory.yml \ @@ -42,5 +46,3 @@ jobs: git add -A git commit -m "refactor: modularize registration runtime safely" git push - -# trigger: 2026-07-15