fix(studio-server): a preview asset whose read cannot be recorded answers not found (#8385)

This commit is contained in:
Miguel Ángel
2026-11-21 19:59:08 +00:00
committed by GitHub
parent e87babf261
commit 22b394c663
6 changed files with 98 additions and 6 deletions
@@ -1,12 +1,17 @@
name: Studio server files on Windows
# A file another program holds open, or a read-only one, must not read as missing or as a server error.
# A file another program holds open, or a read-only one, must not read as missing or as a server error; a link to a
# private file is refused on Windows as elsewhere.
on:
pull_request:
paths:
- packages/studio-server/src/routes/files.ts
- packages/studio-server/src/routes/files.heldFile.test.ts
- packages/core/src/renameWithRetry.ts
- packages/studio-server/src/helpers/projectDisk.ts
- packages/studio-server/src/helpers/projectDisk*.test.ts
- packages/core/src/safePath.ts
- packages/core/src/safePath.eisdir.test.ts
- .github/workflows/studio-server-windows-files.yml
permissions:
@@ -25,5 +30,7 @@ jobs:
- run: bun install --frozen-lockfile --ignore-scripts --linker=hoisted
- run: bun run --filter '@hyperframes/{parsers,lint,studio-server}' build
- run: bun run --cwd packages/core build
- run: npx vitest run src/routes/files.heldFile.test.ts
- run: npx vitest run src/routes/files.heldFile.test.ts src/helpers/projectDisk
working-directory: packages/studio-server
- run: npx vitest run src/safePath.eisdir.test.ts
working-directory: packages/core