Commit Graph

13 Commits

Author SHA1 Message Date
Gutyina Gergő
9b45d8f347 test/pnpm: fix fixup-state-db test by storing SQL dump
Fixup-state-db is effectively only used in fetchPnpmDeps.
We previously included the SQLite database in the FOD, it was first
problematic as it produced different hashes on linux and darwin, but
SQLite version updates have a higher chance of changing the DB format
and break our hashes, that just happened with the 3.53.1 -> 3.53.3 bump.

Nowadays fetchPnpmDeps relies on the SQL dump of the database which is
more stable, but in the past hashes were broken once.

The point is, we no longer rely on the raw DB, but only it's dump, so
it's safe to assert for that in this test.
2026-08-02 19:24:56 +02:00
Gutyina Gergő
0bcf0134e1 tests/pnpm: regenerate hash for pnpm-fixup-state-db
SQLite update changed the format of the raw DB (which this test uses)
and also the dump format. Supported `fetcherVersion`s in `fetchPnpmDeps`
no longer rely on the raw DB file being stable, so it's fine to update this hash.
2026-07-07 14:35:19 +02:00
Gutyina Gergő
de25c842e5 fetchPnpmDeps: drop fetcherVersion = 3 for pnpm_11 and the related test 2026-07-07 14:35:19 +02:00
Gutyina Gergő
994e6bd462 tests/pnpm: add opencloud 2026-06-11 14:53:45 +02:00
Gergő Gutyina
d6913b3b7c pnpmConfigHook: add support for __structuredAttrs = true (#528517) 2026-06-10 21:53:32 +00:00
TANIGUCHI Kohei
b7367f5407 pkgs/test/pnpm: test pnpmConfigHook with multiple pnpmWorkspaces under __structuredAttrs
Assisted-by: Claude Code (Claude Opus 4.8) <noreply@anthropic.com>
2026-06-07 19:41:04 +01:00
Antoine du Hamel
36b6c90e6b pnpm: switch to nodejs-slim 2026-06-06 00:36:37 +02:00
Maciej Krüger
6f77647495 tests.pnpm: add pnpm_11_v4 test for fetcherVersion 4
Tests the SQLite dump/reconstruct code path introduced in fetcherVersion 4,
which ensures reproducibility of the pnpm v11 store index.

Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-23 22:13:34 +02:00
Maciej Krüger
f09853e8b7 tests.pnpm: rename pnpm_11 test to pnpm_11_v3
Make the fetcher version explicit in the test name in preparation for
adding a v4 test.

Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-23 22:13:33 +02:00
Sefa Eyeoglu
342203f139 tests.pnpm.pnpm_11: fix binary
During refactoring, we forgot to update the lib path in the wrapper.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2026-05-12 22:45:19 +02:00
Sefa Eyeoglu
7d318dfe3b pnpm_11: init at 11.1.0
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2026-05-11 23:13:15 +02:00
Sefa Eyeoglu
9212518207 pnpm-fixup-state-db: init at 1.0.0
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2026-05-11 18:09:20 +02:00
Sam Pointon
37955437a7 fetchPnpmDeps: don't fail on empty lockfile
If the lockfile is empty, no files will be put in the output directory. 
In this case, the find invocations produce an empty list of results. 
xargs' default behaviour is to always invoke its command at least once; 
if its input is empty, then its command will not be passed any 
filenames. This produces an invocation like `chmod 555`. chmod, however, 
fails in this case, expecting an operand. So we need to tell xargs not 
to invoke its command at all in the case of empty input.
2026-04-26 19:33:22 +01:00