feat(ci): render setup-uv cache owned only by uv.lock

Merged
MA
3mo ago
+39-0

O que

Passo setup-uv no ci.yml.j2 apos o mise: version-file: uv.lock (versao da ferramenta vem do mesmo lock), enable-cache explicito, cache-dependency-glob: uv.lock, cache-suffix: locked. Reusa o pin existente do catalogo (astral-sh/setup-uv@v9.0.0). 13 linhas de template, zero codigo.

Por que

Contrato do consumidor (cosmos-docgen, test_ci_cache_identity_is_owned_only_by_the_lock): o cache oficial do uv nunca reutiliza projeto resolvido diferente — identidade do cache pertence SOMENTE ao uv.lock. Consumidor dcdoc-45hy.8.

Validacao

  • make check PROJECT=flext-infra: 1/1 PASS (pos direnv allow do worktree).
  • Escopo testes: fixed-point tests verdes pos merge da base (#515).
  • 5 falhas residuais no escopo sao PRE-EXISTENTES na base 0.12.0-dev pura (provado em worktree baseline f665a0c48: test_with_violations, test_pull_request_fails_for_minimal_repo, test_blocking_ci_configures_git_auth_through_gh, 2x timeout init/lazy) — fora do blast radius deste lane.

Summary by cubic

Adds an explicit setup-uv step to the CI template and the repo's own generated workflow so the official uv cache is never reused across differently resolved projects. Previously uv came from mise without cache config; now the uv version is sourced from the same toolchain SSOT that renders .mise.toml, and the cache identity is owned solely by uv.lock.