|
| 1 | +name: Rust Rewrite Large Repo Checks |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + schedule: |
| 6 | + - cron: "0 9 * * *" |
| 7 | + push: |
| 8 | + branches: |
| 9 | + - "rust-rewrite" |
| 10 | + paths: |
| 11 | + - ".github/workflows/rust-rewrite-large-repos.yml" |
| 12 | + - "Cargo.lock" |
| 13 | + - "Cargo.toml" |
| 14 | + - "crates/**" |
| 15 | + - "rust-rewrite/golden/**" |
| 16 | + - "rust-rewrite/tools/benchmark_pinned_python_repo.py" |
| 17 | + - "rust-rewrite/tools/benchmark_pinned_typescript_repo.py" |
| 18 | + - "rust-rewrite/tools/check_pinned_large_repos.sh" |
| 19 | + - "rust-rewrite/tools/check_pinned_codemods.py" |
| 20 | + - "rust-rewrite/tools/check_pinned_python_codebase.py" |
| 21 | + - "rust-rewrite/tools/check_pinned_semantic_parity.py" |
| 22 | + - "rust-rewrite/tools/check_pinned_typescript_codebase.py" |
| 23 | + - "rust-rewrite/tools/check_rollout_readiness.py" |
| 24 | + - "rust-rewrite/tools/snapshot_pinned_python_repo.py" |
| 25 | + - "rust-rewrite/tools/snapshot_pinned_typescript_repo.py" |
| 26 | + - "src/graph_sitter/codebase/**" |
| 27 | + - "src/graph_sitter/configs/models/codebase.py" |
| 28 | + - "src/graph_sitter/core/codebase.py" |
| 29 | + - "src/graph_sitter/core/file.py" |
| 30 | + - "src/graph_sitter/core/import_resolution.py" |
| 31 | + - "src/graph_sitter/core/symbol.py" |
| 32 | + - "src/graph_sitter/python/**" |
| 33 | + - "src/graph_sitter/typescript/**" |
| 34 | + - "tests/integration/rust_rewrite/**" |
| 35 | + |
| 36 | +permissions: |
| 37 | + contents: read |
| 38 | + |
| 39 | +jobs: |
| 40 | + pinned-large-repos: |
| 41 | + runs-on: ubuntu-latest |
| 42 | + timeout-minutes: 45 |
| 43 | + steps: |
| 44 | + - name: Check out repository |
| 45 | + uses: actions/checkout@v4 |
| 46 | + |
| 47 | + - name: Install uv |
| 48 | + uses: astral-sh/setup-uv@v5.4 |
| 49 | + with: |
| 50 | + enable-cache: true |
| 51 | + prune-cache: false |
| 52 | + python-version: "3.13" |
| 53 | + version: "0.9.1" |
| 54 | + cache-suffix: rust-rewrite-large-repos |
| 55 | + |
| 56 | + - name: Install Python dependencies |
| 57 | + run: uv sync --frozen |
| 58 | + |
| 59 | + - name: Install Rust toolchain |
| 60 | + uses: dtolnay/rust-toolchain@stable |
| 61 | + |
| 62 | + - name: Cache Rust builds |
| 63 | + uses: Swatinem/rust-cache@v2 |
| 64 | + with: |
| 65 | + shared-key: rust-rewrite-large-repos |
| 66 | + |
| 67 | + - name: Cache pinned repository checkouts |
| 68 | + uses: actions/cache@v4 |
| 69 | + with: |
| 70 | + path: ${{ runner.temp }}/graph-sitter-pinned-repos |
| 71 | + key: rust-rewrite-pinned-repos-v1 |
| 72 | + |
| 73 | + - name: Run pinned large-repo checks |
| 74 | + env: |
| 75 | + GRAPH_SITTER_PINNED_CACHE_DIR: ${{ runner.temp }}/graph-sitter-pinned-repos |
| 76 | + GRAPH_SITTER_PINNED_EXTENSION_DIR: ${{ runner.temp }}/graph_sitter_py_large_repo_checks |
| 77 | + GRAPH_SITTER_PINNED_OUTPUT_DIR: ${{ github.workspace }}/rust-rewrite/reports |
| 78 | + GRAPH_SITTER_PINNED_TIMEOUT: "900" |
| 79 | + run: rust-rewrite/tools/check_pinned_large_repos.sh |
| 80 | + |
| 81 | + - name: Upload large-repo reports |
| 82 | + if: always() |
| 83 | + uses: actions/upload-artifact@v4 |
| 84 | + with: |
| 85 | + name: rust-rewrite-large-repo-reports |
| 86 | + path: rust-rewrite/reports/*.json |
| 87 | + if-no-files-found: ignore |
0 commit comments