Skip to content

Fix workflow in Ubuntu 26.04 to use local TypeScript compiler - #455

Merged
eifinger merged 1 commit into
astral-sh:mainfrom
eifinger:fix/local-typescript-workflow
Nov 6, 2026
Merged

eifinger merged 1 commit into
astral-sh:mainfrom
eifinger:fix/local-typescript-workflow

Conversation

@eifinger

@eifinger eifinger commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

@eifinger eifinger added the ci Changes to automatic workflows label Nov 6, 2026
@eifinger
eifinger merged commit 051f469 into astral-sh:main Nov 6, 2026
72 checks passed
eifinger added a commit to astral-sh/setup-uv that referenced this pull request Nov 12, 2026
## Summary
Fix two workflow issues exposed by the `ubuntu-latest` transition to
Ubuntu 26.04, in separate commits:

- Use `npx --no-install tsc` in the workflow job dependency check
instead of relying on a globally installed TypeScript compiler, matching
astral-sh/ruff-action#455.
- Disable caching in `test-specific-version`,
`test-version-file-version`, and `test-tool-versions-python-version`.
These jobs only verify versions or outputs and do not create a
dependency cache directory.

## Background
The cache key includes the OS version, so the runner transition caused
cache misses. Previously restored caches bypassed cache saving and hid
the missing-directory problem. On a cold cache, cleanup tried to save a
directory that these tests never created. Disabling caching makes these
non-cache tests independent of existing cache entries; dedicated cache
tests remain unchanged.

## Validation
- `npm ci --ignore-scripts` and `npm run all` using npm 11.10.0 after
the compiler fix (176 tests passed)
- Workflow TypeScript compilation and job dependency check
- `actionlint` and `uvx zizmor .github/workflows/test.yml` passed after
both changes
- `git diff --check`

Refs: pi-session 01a1cfe6-d342-70b6-a474-504b84877d9e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Changes to automatic workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants