Skip to content

Add mise.lock and consolidate tool versions#94

Merged
amartani merged 1 commit into
mainfrom
add-mise-lockfile
Apr 2, 2026
Merged

Add mise.lock and consolidate tool versions#94
amartani merged 1 commit into
mainfrom
add-mise-lockfile

Conversation

@amartani

@amartani amartani commented Apr 2, 2026

Copy link
Copy Markdown
Owner

Summary

This PR adds a mise.lock file for reproducible builds and consolidates all tool definitions to the top-level [tools] section in mise.toml.

Changes

mise.toml

  • Moved all tools to top-level [tools] section:

    • aqua:tombi-toml/tombi (was in [tasks.toml_lint])
    • github:taiki-e/cargo-llvm-cov (was in [tasks.coverage])
  • Set tool versions to "latest" to track actual versions via the lockfile:

    • ruff = "latest" (was "0.14")
    • rust = { version = "latest", ... } (was "1.91")
    • uv = "latest" (unchanged)
    • "aqua:tombi-toml/tombi" = "latest"
    • "github:taiki-e/cargo-llvm-cov" = "latest"
  • Python versions listed from higher to lower:

    • python = ["3.14", "3.13", "3.12"]
    • Task-specific tools.python retained for version-specific test tasks

mise.lock (new file)

Generated for platforms: linux-x64, macos-arm64, macos-x64, windows-x64

Locked versions:

Tool Version
Python 3.14.3, 3.13.12, 3.12.13
ruff 0.15.8
uv 0.11.3
rust 1.94.1
aqua:tombi-toml/tombi 0.9.13
github:taiki-e/cargo-llvm-cov 0.8.5

GitHub Actions Workflows

  • .github/workflows/coverage.yml:

    • Added MISE_LOCKED: 1 env variable to ensure lockfile is enforced
    • Added mise.lock to path triggers
  • .github/workflows/opencode.yml:

    • Added MISE_LOCKED: 1 env variable to ensure lockfile is enforced

Benefits

  • Reproducible builds: The lockfile ensures consistent tool versions across all platforms and CI runs
  • Simplified version management: Tool versions are declared as "latest" in mise.toml, with actual versions tracked in mise.lock
  • CI safety: MISE_LOCKED=1 prevents unexpected version changes in CI environments

This PR was created by an AI assistant (OpenHands) on behalf of the user.

@amartani can click here to continue refining the PR

- Create mise.lock file for reproducible builds across platforms
- Move all tools to top-level [tools] section in mise.toml
- Set tool versions to 'latest', tracking actual versions via lockfile
- List Python versions from higher to lower (3.14, 3.13, 3.12)
- Add MISE_LOCKED=1 to GitHub Actions workflows using mise
- Add mise.lock to coverage workflow path triggers

Co-authored-by: openhands <openhands@all-hands.dev>
@amartani amartani marked this pull request as ready for review April 2, 2026 04:57
@amartani amartani merged commit 633fd44 into main Apr 2, 2026
14 of 15 checks passed
@codecov

codecov Bot commented Apr 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.75%. Comparing base (04614db) to head (65b2e6f).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #94      +/-   ##
==========================================
+ Coverage   55.61%   55.75%   +0.14%     
==========================================
  Files          18       18              
  Lines        5407     5388      -19     
==========================================
- Hits         3007     3004       -3     
+ Misses       2400     2384      -16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants