Skip to content

Add devcontainer and Copilot setup steps - #72

Merged
mrecachinas merged 1 commit into
mainfrom
mrecachinas-add-devcontainer-copilot-setup
Nov 7, 2026
Merged

mrecachinas merged 1 commit into
mainfrom
mrecachinas-add-devcontainer-copilot-setup

Conversation

@mrecachinas

Copy link
Copy Markdown
Owner

Getting a working environment for hexhamming means installing Rust, maturin, the pinned ruff and pytest, then building the extension. This PR automates that for both local containers and the Copilot cloud agent, so neither has to work it out by trial and error.

Copilot setup steps (.github/workflows/copilot-setup-steps.yml)

  • Sets up Python 3.14 and stable Rust (with rustfmt and clippy), using the same pinned action SHAs as pythonpackage.yml.
  • Installs ruff==0.16.8 (matching the lint job), maturin, pytest and pytest-benchmark, then runs pip install ..
  • Pre-builds the Rust test binaries (cargo test --no-default-features --no-run) so the agent's first test run is quick.
  • Caches Cargo with Swatinem/rust-cache, pinned to the v2.9.3 SHA. This is the one action the existing workflows don't already use.

Devcontainer (.devcontainer/)

  • Builds on mcr.microsoft.com/devcontainers/python:3.14 with the Rust (rustfmt, clippy, rust-analyzer) and GitHub CLI features.
  • post-create.sh installs the same Python tooling, installs the package and runs cargo fetch.
  • Adds VS Code extensions for rust-analyzer, Python, ruff and TOML, and enables pytest.

.github/copilot-instructions.md now mentions both, including that the ruff pin must stay in sync with the lint job.

Review notes: the workflow runs on this PR through its pull_request path trigger, which is its only end-to-end check so far. The devcontainer has not been built, since Docker wasn't available locally. Locally, the devcontainer JSON parses, the script passes bash -n, and the Rust test pre-build succeeds.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

📊 Benchmark Comparison Results

✅ All benchmarks within noise

104 benchmarks compared, no significant changes detected.

Legend: ✅ Faster (>5%) · ⚠️ Slower (5-30%) · ❌ Regression (>30%) · 🆕 New · 🗑️ Removed

@mrecachinas
mrecachinas merged commit 4e8209b into main Nov 7, 2026
35 checks passed
@mrecachinas
mrecachinas deleted the mrecachinas-add-devcontainer-copilot-setup branch November 7, 2026 16:02
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.

1 participant