Skip to content

fix: disable workspace package injection to restore link: layout - #2717

Draft
shikanime wants to merge 2 commits into
mainfrom
fix/workspace-package-injection
Draft

fix: disable workspace package injection to restore link: layout#2717
shikanime wants to merge 2 commits into
mainfrom
fix/workspace-package-injection

Conversation

@shikanime

Copy link
Copy Markdown
Member

Quel est le comportement actuel ?

Le lockfile de main (après le revert lockfile-only) embarque injectWorkspacePackages: true dans son bloc settings : pnpm 11 persiste ce drapeau dans pnpm-lock.yaml, donc toutes les installations (locale, CI, Docker) restent en mode copies injectées. Les copies file: des packages workspace sont prises à l'install et ne contiennent pas les types/ générés à la construction — le build Docker de apps/server échoue sur un store froid (TS2307 types/class.js via sonarqube, TS2339 harbor sur arm64).

Quel est le nouveau comportement ?

injectWorkspacePackages: false dans pnpm-workspace.yaml + lockfile régénéré : les importers repassent en link: (symlinks vivants), le bloc settings du lockfile enregistre le drapeau à false. Séquence CI exacte validée localement : pnpm install --frozen-lockfile OK, pnpm --filter "./packages/**" build OK, pnpm --filter "./plugins/**" build OK (sonarqube + harbor inclus). Les bumps de sécurité de fa0677c sont conservés.

Cette PR introduit-elle un breaking change ?

Non.

Autres informations

Un revert lockfile-only seul ne suffit pas : le drapeau vit dans le lockfile lui-même et se ré-applique à chaque résolution.

@shikanime
shikanime requested a review from a team as a code owner September 11, 2026 13:47
@shikanime
shikanime marked this pull request as draft September 11, 2026 13:49
@shikanime
shikanime force-pushed the fix/workspace-package-injection branch from e806869 to 55085e7 Compare September 11, 2026 14:07
@github-actions github-actions Bot added the built label Sep 11, 2026
shikanime and others added 2 commits September 11, 2026 16:22
The fa0677c lock refresh materialized injectWorkspacePackages as file: copies; install-time snapshots lack the build-generated types/ dirs, breaking keycloak-plugin dependents (TS2307/TS2741/TS2339) on cold caches.

Co-authored-by: Automata <automata@shikanime.studio>
Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr>
Change-Id: I2c4fc9558c697e19ca614e6e7d4e09366a6a6964

fix: force legacy pnpm deploy in server Dockerfiles

pnpm v10+ restricts deploy to injected workspaces; with injectWorkspacePackages disabled the deploy step fails with ERR_PNPM_DEPLOY_NONINJECTED_WORKSPACE. --legacy restores the pre-v10 deploy path.

Co-authored-by: Automata <automata@shikanime.studio>
Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr>
Change-Id: I20c7b40edd0bb69676168ff45a3a50c06a6a6964

fix(server-nestjs): make the gitlab mirror rotation test deterministic

Draw the vault secret age with faker.date.birthdate({min: 1, max: 2, mode: 'age'}): the draw always lands 1-2 years past, beyond the 250-day rotation threshold, so the rotation branch fires deterministically instead of failing ~1 run in 3.

Refs #2706

Co-authored-by: Automata <automata@shikanime.studio>
Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr>
Change-Id: I28e75a5704c2d7f9f964bb5315b592946a6a6964
Draw the secret age with faker.date.birthdate({min:1, max:2, mode:'age'}): always 1-2 years past, beyond the 250-day rotation threshold, so the rotation branch fires deterministically.

Refs #2706

Co-authored-by: Automata <automata@shikanime.studio>
Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr>
Change-Id: I73bd8e79f76b28102a82d8e2d24b3c306a6a6964
@shikanime
shikanime force-pushed the fix/workspace-package-injection branch from 55085e7 to b9d9ee6 Compare September 11, 2026 14:23
@shikanime

Copy link
Copy Markdown
Member Author

Ajout du correctif déterministe du test de rotation miroir (refs #2706, PR #2707) en tête de branche : la PR couvre désormais les deux défaillances (layout pnpm injecté + flake ). Validé 3/3 en local.

@cloud-pi-native-sonarqube

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant