Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 56f266a5b9 | |||
| b947ac3723 | |||
| 1cb1ffb8c8 | |||
| 666c78f5fe | |||
| 6f1920e91b |
@@ -0,0 +1,34 @@
|
|||||||
|
# Review — `fix/board-test-timeout`
|
||||||
|
|
||||||
|
**What:** the v0.1.2 release runs `r1ahwf1m23cdr` and `rm56nbzfchx5d` both stopped at the `test` step, on one
|
||||||
|
test: `art-prep` *art/placeholders/ holds exactly what the generator makes* timed out at vitest's default 5 s
|
||||||
|
(8.7 s in the first run, 5.4 s in the second). Every assertion that ran passed; the work was only slow. The test
|
||||||
|
reads the 169 SVG stand-ins in `art/placeholders/` and compares each with what the generator makes, while turbo
|
||||||
|
runs nine other suites on the same runner, in a checkout it has just fetched, so every file is read for the first
|
||||||
|
time. Run alone on D:, it takes 230 ms.
|
||||||
|
|
||||||
|
**How:** that one test gets `{ timeout: 30_000 }`, as `tools/release` already does for its slow suites
|
||||||
|
(`copy.test.ts` 60 s, `version.test.ts` 30 s), with a comment giving the measured times.
|
||||||
|
|
||||||
|
## Findings
|
||||||
|
|
||||||
|
1. **Is a longer timeout hiding a real slowdown?** No assertion changed. The test still fails when one stand-in
|
||||||
|
differs from the generator's output (drill below). 30 s is about three times the slowest time measured on the
|
||||||
|
runner. A test that takes that long would be a new finding.
|
||||||
|
2. **Why not a global `testTimeout`?** That would loosen every test in the package, including ones that should
|
||||||
|
stay fast. Only the test that reads files gets the longer limit.
|
||||||
|
3. **Why not just dispatch again?** That was tried: the second run failed on the same test. Under the runner's
|
||||||
|
load, the time sits around the limit, so a retry is a coin toss.
|
||||||
|
4. **The release:** tag `v0.1.2` points at `666c78f`, which does not have this fix. Nothing was signed or
|
||||||
|
published from either run. Which tag carries the release is the author's call (HANDOVER).
|
||||||
|
5. **Soul, privacy, reachability, offline:** a test file only. Nothing a player sees changed, and the bundle is
|
||||||
|
not rebuilt by this change.
|
||||||
|
|
||||||
|
**Test honesty:** with `app-icon-maskable.svg` changed (an attribute added), the test fails in 64 ms on the
|
||||||
|
content comparison (`expected '<svg data-drill="1"…' to be '<svg xmlns=…'`), not on time. The drill ran on D:
|
||||||
|
and was reverted.
|
||||||
|
|
||||||
|
**Gate (D:, 2026-12-02):** lint 0, typecheck 0, lint:copy 0 problems; `pnpm test` 653 passed (schema 19, identity 5,
|
||||||
|
release 8, cpu-guard 13, storage 70, content 88, art-prep 80, tauri 99, ui 92, engine 179).
|
||||||
|
|
||||||
|
**Not verified:** the test's time on the hub runner with this change. The next release run measures it.
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@rosea/tauri",
|
"name": "@rosea/tauri",
|
||||||
"version": "0.1.1",
|
"version": "0.1.3",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "CPAL-1.0",
|
"license": "CPAL-1.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
Generated
+1
-1
@@ -2614,7 +2614,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rosea-shell"
|
name = "rosea-shell"
|
||||||
version = "0.1.1"
|
version = "0.1.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"tauri",
|
"tauri",
|
||||||
"tauri-build",
|
"tauri-build",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rosea-shell"
|
name = "rosea-shell"
|
||||||
version = "0.1.1"
|
version = "0.1.3"
|
||||||
license = "CPAL-1.0"
|
license = "CPAL-1.0"
|
||||||
description = "The Tauri 2 shell of Rosea Domi: a window around the built game, and nothing else."
|
description = "The Tauri 2 shell of Rosea Domi: a window around the built game, and nothing else."
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@rosea/app",
|
"name": "@rosea/app",
|
||||||
"version": "0.1.1",
|
"version": "0.1.3",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "CPAL-1.0",
|
"license": "CPAL-1.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"name": "rosea",
|
"name": "rosea",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "CPAL-1.0",
|
"license": "CPAL-1.0",
|
||||||
"version": "0.1.1",
|
"version": "0.1.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"packageManager": "pnpm@9.12.3",
|
"packageManager": "pnpm@9.12.3",
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@@ -67,7 +67,8 @@ describe('the stand-ins', () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
it('art/placeholders/ holds exactly what the generator makes (run pnpm art:board after changing the manifest)', () => {
|
// 169 files read and compared one by one: 5.4 s and 8.7 s on the release runner, beside nine other suites.
|
||||||
|
it('art/placeholders/ holds exactly what the generator makes (run pnpm art:board after changing the manifest)', { timeout: 30_000 }, () => {
|
||||||
const dir = `${root}art/placeholders/`;
|
const dir = `${root}art/placeholders/`;
|
||||||
const files = readdirSync(dir).filter((f) => f.endsWith('.svg'));
|
const files = readdirSync(dir).filter((f) => f.endsWith('.svg'));
|
||||||
expect(files.map((f) => f.slice(0, -4)).sort()).toEqual([...stand.keys()].sort());
|
expect(files.map((f) => f.slice(0, -4)).sort()).toEqual([...stand.keys()].sort());
|
||||||
|
|||||||
Reference in New Issue
Block a user