Skip to content

ci(openshell-next): install the Rust version the branch needs - #119

Open
ilanh wants to merge 1 commit into
mainfrom
fix/openshell-next-toolchain
Open

ilanh wants to merge 1 commit into
mainfrom
fix/openshell-next-toolchain

Conversation

@ilanh

@ilanh ilanh commented Nov 30, 2026

Copy link
Copy Markdown
Owner

What and why

The scheduled openshell-next tracking job runs .github/workflows/openshell-next.yml from main and hard-coded Rust 1.94. OpenShell v0.1.11-pre.2 needs 1.95, so the job's test step has failed since Nov 27. This replaces #112 (which hard-coded 1.95) and follows the repo rules.

Closes #118

  • scripts/openshell-next.sh toolchain (new) prints the highest rust-version of openshell-annotate and of every package Cargo.lock resolves from ai-openshell/openshell (cargo metadata --locked + jq, falling back to Cargo.toml). The workflow's "Install Rust" step moved after the merge and the bump and installs that version, so the toolchain follows the branch and the pin and does not drift. Locally: main → 1.94, openshell-next → 1.95. The merge/bump steps only run cargo update/cargo metadata on the runner's preinstalled stable cargo.
  • sync bug fix: on a pin conflict it took main's whole Cargo.toml and re-applied the newer tag, which reset the branch's rust-version (1.95 since chore(ci): build openshell-next with Rust 1.95 #117) to main's 1.94. I reproduced this with main's script on a simulated merge. It now keeps the branch's higher rust-version; the same simulation now gives rust-version = "1.95" with the pin v0.1.11-pre.2.
  • Docs: DEVELOPING (sync and test steps), CHANGELOG.

Note: the next sync will still stop for a human. Merging main (with #115) into openshell-next (with #117) conflicts in AGENTS.md, CHANGELOG.md and docs/DEVELOPING.md as well as the pin files (sync exits 3 and pushes nothing). That needs a hand-made merge commit on openshell-next; this PR does not change it.

Checklist

  • Branch fix/openshell-next-toolchain, commit signed off
  • actionlint, bash -n, toolchain on both branches, and sync simulated locally (both the conflict-stop case and the pin-only case)
  • Docs and CHANGELOG updated
  • No secrets

The tracking job hard-coded Rust 1.94, but OpenShell v0.1.11-pre.2 needs 1.95. After the merge and the bump it now installs the highest rust-version of openshell-annotate and the locked ai-openshell/openshell crates (new `scripts/openshell-next.sh toolchain`). `sync` keeps the branch's higher rust-version when it resolves a pin conflict from main's Cargo.toml, which it used to reset to main's.

Closes #118

Signed-off-by: Ilan Harel <ilanharel@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

openshell-next tracking job: install the Rust version the branch needs

1 participant