Typechecker ce que le cron exécute - #17
Merged
Merged
Conversation
Le tsconfig racine exclut `src/solver`, donc le `tsc --noEmit` de `bun run build` ne lit jamais generate-daily.ts — l'entrypoint du cron. Et le service cron construit avec `bun install`, sans typecheck du tout. Le solveur partait donc en production sans qu'aucun compilateur ne l'ait lu. `src/solver/tsconfig.json` existait déjà mais aucun script ne l'invoquait. `typecheck:solver` lui donne un appelant, en un seul endroit : la CI l'exécute sur chaque PR, le build Railway du cron sur chaque déploiement. Deux trous restent ouverts, consignés dans AGENTS.md : un run qui casse à 05:00 sur du code qui compile est toujours muet — l'IaC Railway n'a aucune primitive de notification, `webhook` et `notification` n'apparaissent nulle part dans les types du SDK — et le domaine public du service cron n'est pas supprimable depuis le fichier.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Le trou
Le tsconfig racine exclut
src/solver:Donc le
tsc --noEmitdebun run buildne lit jamaisgenerate-daily.ts,l'entrypoint du cron. Et le service cron construit avec
bun install, sanstypecheck du tout. Le solveur partait en production sans qu'aucun compilateur ne
l'ait lu — y compris les 8 commits déployés hier.
src/solver/tsconfig.jsonexistait déjà (commit « le projet TS du solveurretypecheck ») mais aucun script ne l'invoquait.
Ce qui change
typecheck:solverdanspackage.json— une seule définition de la commande.lintettest: l'échec bloque la PR.bun install && bun run typecheck:solver) : l'échec bloque le déploiement.Comment vérifier
Le reste reste vert : lint 0, test 340/340, verify 0, build 0.
Ce qui n'est PAS réglé
reste invisible. L'IaC Railway n'a aucune primitive pour ça :
webhooketnotificationont 0 occurrence dans les types du SDK. Ça se règle auniveau workspace, dans le dashboard.
documentées par le type (
serviceDomains: { "<host>": null }etserviceDomains: null) planifient en no-op sur railway 3.5.7. Un commentairedans
.railway/railway.tsdit où le faire.Risque / rollback
Aucun changement de comportement à l'exécution : c'est une vérification ajoutée,
pas du code modifié. Rollback = revert du commit.