Skip to content

refactor!: simplify cache presets and default to ubuntu-latest - #1

Merged
lumirelle merged 1 commit into
mainfrom
chore/ubuntu-latest-cache-cleanup
Nov 25, 2026
Merged

lumirelle merged 1 commit into
mainfrom
chore/ubuntu-latest-cache-cleanup

Conversation

@lumirelle

Copy link
Copy Markdown
Owner

Summary

 setup-mise/
 └── action.yml          # -3 JSON-map inputs, -jq resolver, presets use fixed config
 .github/workflows/
 ├── ci.yml              # primary-os & os-matrix defaults → ubuntu-latest
 ├── ci-autofix.yml      # primary-os default → ubuntu-latest
 ├── ci-coverage.yml     # primary-os default → ubuntu-latest
 ├── release*.yml        # -override pass-throughs
 └── *-dogfooding.yml    # -redundant primary-os overrides
 README.md               # cache docs match the narrower API
 cache-preset-path / cache-preset-key / cache-preset-restore-keys
- resolve JSON maps with jq → env PRESET_PATH_* → cache steps
+ fixed paths & keys directly in each cache step

 custom cache
- key:  custom-<cache-key | runner.os>
+ key:  <cache-key | custom-<runner.os>>

Evidence

  • Before: mise run check flagged formatting; action carried 3 override inputs plus a bash+jq resolver (~50 lines).
  • After: mise run check passes (oxlint, eslint, oxfmt, hk, stylua, pkl-format); all modified YAML parses; no references to the removed inputs remain.

22 insertions(+), 206 deletions(-) — no runtime execution possible locally, so the action steps are verified by lint/parse only.

Merge Danger

Door: two-way

Reverting restores the inputs. However, this removes public setup-mise inputs, so any external consumer using cache-preset-path, cache-preset-key, or cache-preset-restore-keys breaks until they move to cache-path / cache-key / cache-restore-keys. No in-repo usage existed.

Blast Radius: consumers

Also changes default runner selection (ubuntu-slim → ubuntu-latest) and makes the custom cache key verbatim, so existing custom-cache restore keys now match their keys (one cache miss at worst).

🤖 Generated with Claude Code

- Use ubuntu-latest for primary-os and os-matrix defaults.
- Drop now-redundant primary-os overrides from dogfooding workflows.
- Remove cache-preset-path/key/restore-keys inputs and the jq-based
  resolver; presets use fixed defaults and the custom cache covers
  per-preset overrides.
- Make the custom cache key verbatim so restore-keys can match it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4070bad9-5a9a-4240-a470-861fddbf5667
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@lumirelle
lumirelle merged commit ce37588 into main Nov 25, 2026
13 of 15 checks passed
@lumirelle
lumirelle deleted the chore/ubuntu-latest-cache-cleanup branch November 25, 2026 09:57
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