From 1d8e37f80685751a75a822cedea252cda70a9ade Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 29 Nov 2026 00:21:36 +0000 Subject: [PATCH] fix(ci): install Rust 1.95 in openshell-next workflow Upstream OpenShell v0.1.11-pre.2 requires rustc 1.95; the tracking workflow still installed 1.94, so cargo fmt failed before tests ran. Main CI and Cargo.toml rust-version stay on 1.94. Co-authored-by: Ilan Harel --- .github/workflows/openshell-next.yml | 2 +- CHANGELOG.md | 1 + docs/DEVELOPING.md | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/openshell-next.yml b/.github/workflows/openshell-next.yml index 77aa0b4..4977cc2 100644 --- a/.github/workflows/openshell-next.yml +++ b/.github/workflows/openshell-next.yml @@ -90,7 +90,7 @@ jobs: echo "pin=$("$TOOLS/openshell-tags.sh" pinned)" >> "$GITHUB_OUTPUT" - name: Install Rust - run: rustup toolchain install 1.94 --profile minimal --component rustfmt,clippy && rustup default 1.94 + run: rustup toolchain install 1.95 --profile minimal --component rustfmt,clippy && rustup default 1.95 - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index a9307b9..a74cbb1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ version section and adds the squash-merged PR titles since the previous tag. Ver ## [Unreleased] +- fix(ci): the `openshell-next` workflow installs Rust 1.95 so builds succeed when the tracked OpenShell prerelease raises its `rust-version` (for example v0.1.11-pre.2); main CI stays on 1.94 until the crate pin is bumped on purpose - chore(deps): build against OpenShell v0.1.9 (`openshell-policy-schema`, `openshell-policy`, commit ce58cf8); docs, generated policy headers and the `diff-logs`/`--image` notes now name v0.1.9 (#107) - feat(lint): warn when a wildcard host in an `egress` directive or a `--policy` endpoint without `allowed_ips` can match a private IP literal (`10.*.*.*`, `**.*.*`): since OpenShell v0.1.9 a wildcard endpoint no longer allows private IP literals on its own (#107) - test: the gateway validator rejects middleware selectors with a port (OpenShell v0.1.9); `diff-logs` skips gateway API Activity denials in both the old (`type_uid` 600399) and the new Create/Update/Delete shape (#107) diff --git a/docs/DEVELOPING.md b/docs/DEVELOPING.md index 727b65b..4b1103a 100644 --- a/docs/DEVELOPING.md +++ b/docs/DEVELOPING.md @@ -138,7 +138,7 @@ comment) if the pin is unchanged and everything already passed. Dispatch it by h without pushing and is reported on the issue for a human to resolve; 2. moves the pin when upstream has a newer tag (`scripts/openshell-next.sh update`) and commits it as `github-actions[bot]` with a `Signed-off-by` line; -3. runs `cargo fmt --check`, clippy, `cargo test --locked` and `scripts/gen-docs.sh --check` in the same job; +3. installs Rust **1.95** (main CI stays on 1.94 until `Cargo.toml`'s `rust-version` is bumped on purpose; the newest upstream prerelease may need a newer toolchain) and runs `cargo fmt --check`, clippy, `cargo test --locked` and `scripts/gen-docs.sh --check` in the same job; 4. pushes the branch, even when the tests fail (the branch mirrors upstream; the fix is made on top), then dispatches `ci.yml` on it, because a push with `GITHUB_TOKEN` starts no `push` workflow. The dispatched run publishes its result as the commit statuses `CI (dispatched) / check` and `CI (dispatched) / audit`, which is what the tracking PR shows.