#3563·emdash

Flaky core test: taxonomy-structure.test.ts "gives a taxonomy its own structure…" times out on Postgres

Author: swisskyCreated Sep 28, 2026Updated Sep 28, 2026

Description

The core integration test packages/core/tests/integration/transfer/taxonomy-structure.test.ts:125, "taxonomy structure after a site import [postgres] › gives a taxonomy its own structure when the package links it to another taxonomy's group", times out intermittently on the Postgres run:

FAIL  tests/integration/transfer/taxonomy-structure.test.ts > taxonomy structure after a site import [postgres] > gives a taxonomy its own structure when the package links it to another taxonomy's group
Error: Test timed out in 5000ms.
 ❯ tests/integration/transfer/taxonomy-structure.test.ts:125:2

Seen in Test Shard (1/4) on a PR that doesn't touch core (#3548). Because the shards fail fast, the other three shards were cancelled, so the whole Tests check went red.

Likely cause

Each test in this file runs a full site export and import (exportOrigin → importPackage) against a fresh database, but uses Vitest's default 5-second timeout. Every other site-import test under tests/integration/transfer/ sets an explicit timeout for the same kind of work, for example:

  • locale-casing.test.ts: { timeout: 300_000 }
  • redirect-loops.test.ts: { timeout: 600_000 }
  • reference-fields.test.ts: { timeout: 300_000 }
  • end-to-end.test.ts: { timeout: 600_000 }

On Postgres, with per-test schema setup on a shared CI runner, a full import can go past 5 seconds. Giving the four tests in this file the same explicit timeout as their siblings should remove the flake without changing what they check.

Not a regression from the PR it was observed on

The test landed on main on Sept 25 in #3360. The PR where it failed changes only packages/registry-loader and apps/plugins-site.