Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ repos:
#
# pre-commit run --hook-stage manual local-ci-wheel --all-files
# pre-commit run --hook-stage manual local-ci-matrix --all-files
# pre-commit run --hook-stage manual local-ci-linux --all-files
- id: local-ci-wheel
name: local CI — wheel build + smoke (uv, current Python)
entry: uv run python scripts/local_ci.py wheel
Expand All @@ -172,12 +171,6 @@ repos:
language: system
pass_filenames: false
stages: [manual]
- id: local-ci-linux
name: local CI — manylinux2014 wheel + smoke (Docker)
entry: bash scripts/local_ci_linux_docker.sh
language: system
pass_filenames: false
stages: [manual]
# Tripwire: verifies that third_party/nfsim/ matches what
# vendor + the patch series under scripts/nfsim_vendor_patches/
# would produce. Catches the silent-direct-edit class of regression.
Expand Down
1 change: 1 addition & 0 deletions changelog.d/1492.removed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- **`scripts/local_ci_linux_docker.sh` and its manual pre-commit hook `local-ci-linux` are removed (issue #1492).** The script still assumed the old monorepo layout: outside a checkout named `bngsim` it failed or built another checkout, and from `~/Code/bngsim` it copied the whole parent directory into the container. Its pinned cibuildwheel was two major versions behind CI and could not build the cp314 and cp315 wheels. CI's `wheels.yml` builds and tests the manylinux wheels on every pull request; `scripts/local_ci.py` remains the local wheel check.
4 changes: 2 additions & 2 deletions docs/development/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ at the next refresh.
python scripts/local_ci.py wheel --python 3.12
```

`scripts/local_ci_smoke.py` is the quicker variant, and
`scripts/local_ci_linux_docker.sh` runs the Linux leg in a container.
`scripts/local_ci_smoke.py` is the quicker variant. The Linux wheels are
built and tested by CI (`wheels.yml`) on every pull request.

## Contributors

Expand Down
15 changes: 1 addition & 14 deletions scripts/LOCAL_CI.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ identical and the report is comparable.
- **uv** — manages Pythons, venvs, and dependencies on every platform.
- macOS / Linux: `curl -LsSf https://astral.sh/uv/install.sh | sh`
- Windows (PowerShell): `irm https://astral.sh/uv/install.ps1 | iex`
- **Docker** — only for the Linux-via-Docker leg (`local_ci_linux_docker.sh`).
- On macOS: `brew install colima docker && colima start`.

Everything else (Python 3.10–3.15, build deps, test deps) is provisioned by
uv from inside the script.
Expand All @@ -21,7 +19,7 @@ uv from inside the script.
|---|---|---|---|
| macOS x86_64 | Intel mac | the project | `uv run python scripts/local_ci.py matrix` |
| macOS arm64 | M4 Max | (Bill / you) | same command |
| Linux x86_64 | Docker on Intel mac | the project | `scripts/local_ci_linux_docker.sh` (or `MATRIX=1 ...` for cp310-cp313; its pinned cibuildwheel predates 3.14, see #1492) |
| Linux x86_64 | GitHub CI (`wheels.yml`) | CI | none locally: CI builds and tests the manylinux wheels on every PR |
| Windows AMD64 | efm46's box | efm46 | same command as macOS, run from PowerShell or cmd |

## Subcommands
Expand All @@ -38,12 +36,6 @@ uv run python scripts/local_ci.py matrix

# Smoke-test an already-built wheel.
uv run python scripts/local_ci.py smoke --wheel path/to/wheel.whl --python 3.12

# Linux leg: build cp312 manylinux_2_28 wheel + host-side smoke.
scripts/local_ci_linux_docker.sh

# Linux leg with full matrix:
MATRIX=1 scripts/local_ci_linux_docker.sh
```

The matrix subcommand on a single platform takes roughly:
Expand All @@ -55,8 +47,6 @@ The matrix subcommand on a single platform takes roughly:
| Wheel install + smoke, per Python | ~30 sec |
| Total per matrix run | ~25–35 min |

The Linux Docker leg adds another ~10–15 min for the manylinux_2_28 image
pull (~600 MB) and pinned SUNDIALS rebuild inside the container.

## Pre-commit integration

Expand All @@ -69,9 +59,6 @@ pre-commit run --hook-stage manual local-ci-wheel

# Equivalent to: uv run python scripts/local_ci.py matrix
pre-commit run --hook-stage manual local-ci-matrix

# Equivalent to: scripts/local_ci_linux_docker.sh
pre-commit run --hook-stage manual local-ci-linux
```

Manual stage = does not auto-run on commit or push, only when invoked.
Expand Down
126 changes: 0 additions & 126 deletions scripts/local_ci_linux_docker.sh

This file was deleted.

Loading