@roomi-fields/grillhouse 0.28.3 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +739 -0
  3. package/bin/grillhouse.mjs +128 -26
  4. package/cadre/templates/projet/.github/workflows/ci.yml +2 -13
  5. package/cadre/templates/projet/CLAUDE.md +5 -1
  6. package/cadre/templates/projet/README.md +11 -11
  7. package/cadre/templates/projet/_gitignore +2 -5
  8. package/cadre/templates/projet/docs/agents/issue-tracker.md +1 -1
  9. package/cadre/templates/projet/package.json +2 -2
  10. package/charte.md +37 -4
  11. package/dist/temporal/acte.d.ts +24 -0
  12. package/dist/temporal/acte.js +139 -0
  13. package/dist/temporal/acte.js.map +1 -0
  14. package/dist/temporal/attributs.d.ts +6 -0
  15. package/dist/temporal/attributs.js +15 -0
  16. package/dist/temporal/attributs.js.map +1 -0
  17. package/dist/temporal/circuit/activites.d.ts +13 -0
  18. package/dist/temporal/circuit/activites.js +33 -0
  19. package/dist/temporal/circuit/activites.js.map +1 -0
  20. package/dist/temporal/circuit/client.d.ts +72 -0
  21. package/dist/temporal/circuit/client.js +247 -0
  22. package/dist/temporal/circuit/client.js.map +1 -0
  23. package/dist/temporal/circuit/commande.d.ts +2 -0
  24. package/dist/temporal/circuit/commande.js +238 -0
  25. package/dist/temporal/circuit/commande.js.map +1 -0
  26. package/dist/temporal/circuit/contrat.d.ts +305 -0
  27. package/dist/temporal/circuit/contrat.js +24 -0
  28. package/dist/temporal/circuit/contrat.js.map +1 -0
  29. package/dist/temporal/circuit/deroule.d.ts +3 -0
  30. package/dist/temporal/circuit/deroule.js +540 -0
  31. package/dist/temporal/circuit/deroule.js.map +1 -0
  32. package/dist/temporal/client.d.ts +47 -0
  33. package/dist/temporal/client.js +69 -0
  34. package/dist/temporal/client.js.map +1 -0
  35. package/dist/temporal/commande.d.ts +2 -0
  36. package/dist/temporal/commande.js +95 -0
  37. package/dist/temporal/commande.js.map +1 -0
  38. package/dist/temporal/deroules.d.ts +5 -0
  39. package/dist/temporal/deroules.js +10 -0
  40. package/dist/temporal/deroules.js.map +1 -0
  41. package/dist/temporal/etat.d.ts +33 -0
  42. package/dist/temporal/etat.js +59 -0
  43. package/dist/temporal/etat.js.map +1 -0
  44. package/dist/temporal/file/activites.d.ts +10 -0
  45. package/dist/temporal/file/activites.js +25 -0
  46. package/dist/temporal/file/activites.js.map +1 -0
  47. package/dist/temporal/file/client.d.ts +4 -0
  48. package/dist/temporal/file/client.js +6 -0
  49. package/dist/temporal/file/client.js.map +1 -0
  50. package/dist/temporal/file/contrat.d.ts +158 -0
  51. package/dist/temporal/file/contrat.js +14 -0
  52. package/dist/temporal/file/contrat.js.map +1 -0
  53. package/dist/temporal/file/deroule.d.ts +15 -0
  54. package/dist/temporal/file/deroule.js +235 -0
  55. package/dist/temporal/file/deroule.js.map +1 -0
  56. package/dist/temporal/installation.d.ts +124 -0
  57. package/dist/temporal/installation.js +408 -0
  58. package/dist/temporal/installation.js.map +1 -0
  59. package/dist/temporal/places/activites.d.ts +8 -0
  60. package/dist/temporal/places/activites.js +13 -0
  61. package/dist/temporal/places/activites.js.map +1 -0
  62. package/dist/temporal/places/client.d.ts +28 -0
  63. package/dist/temporal/places/client.js +64 -0
  64. package/dist/temporal/places/client.js.map +1 -0
  65. package/dist/temporal/places/contrat.d.ts +106 -0
  66. package/dist/temporal/places/contrat.js +21 -0
  67. package/dist/temporal/places/contrat.js.map +1 -0
  68. package/dist/temporal/places/deroule.d.ts +3 -0
  69. package/dist/temporal/places/deroule.js +198 -0
  70. package/dist/temporal/places/deroule.js.map +1 -0
  71. package/dist/temporal/sonde/activites.d.ts +6 -0
  72. package/dist/temporal/sonde/activites.js +52 -0
  73. package/dist/temporal/sonde/activites.js.map +1 -0
  74. package/dist/temporal/sonde/contrat.d.ts +35 -0
  75. package/dist/temporal/sonde/contrat.js +10 -0
  76. package/dist/temporal/sonde/contrat.js.map +1 -0
  77. package/dist/temporal/sonde/deroule.d.ts +3 -0
  78. package/dist/temporal/sonde/deroule.js +39 -0
  79. package/dist/temporal/sonde/deroule.js.map +1 -0
  80. package/dist/temporal/tickets/activites.d.ts +7 -0
  81. package/dist/temporal/tickets/activites.js +81 -0
  82. package/dist/temporal/tickets/activites.js.map +1 -0
  83. package/dist/temporal/tickets/client.d.ts +10 -0
  84. package/dist/temporal/tickets/client.js +31 -0
  85. package/dist/temporal/tickets/client.js.map +1 -0
  86. package/dist/temporal/tickets/contrat.d.ts +56 -0
  87. package/dist/temporal/tickets/contrat.js +13 -0
  88. package/dist/temporal/tickets/contrat.js.map +1 -0
  89. package/dist/temporal/tickets/deroule.d.ts +3 -0
  90. package/dist/temporal/tickets/deroule.js +94 -0
  91. package/dist/temporal/tickets/deroule.js.map +1 -0
  92. package/dist/temporal/travailleur.d.ts +2 -0
  93. package/dist/temporal/travailleur.js +69 -0
  94. package/dist/temporal/travailleur.js.map +1 -0
  95. package/docs/ARCHITECTURE.md +813 -53
  96. package/docs/CADRE.md +17 -0
  97. package/docs/INTERFACE.md +161 -30
  98. package/hooks/crochet.mjs +19 -2
  99. package/hooks/hooks.json +11 -0
  100. package/package.json +16 -4
  101. package/scripts/activites.mjs +2182 -0
  102. package/scripts/aiguillage.d.mts +37 -0
  103. package/scripts/aiguillage.mjs +328 -0
  104. package/scripts/avancement.mjs +159 -64
  105. package/scripts/bilan.mjs +37 -19
  106. package/scripts/cadre.mjs +11 -2
  107. package/scripts/circuit.mjs +888 -3654
  108. package/scripts/circuits-cles.d.mts +4 -0
  109. package/scripts/circuits-cles.mjs +21 -0
  110. package/scripts/circuits-du-serveur.mjs +105 -0
  111. package/scripts/codes-de-sortie.mjs +9 -0
  112. package/scripts/commandes-composees.mjs +45 -41
  113. package/scripts/commandes-du-path.d.mts +7 -0
  114. package/scripts/commandes-du-path.mjs +25 -0
  115. package/scripts/composition-des-langages.mjs +30 -11
  116. package/scripts/conformite.mjs +19 -10
  117. package/scripts/copies-finies.mjs +188 -42
  118. package/scripts/depart-du-ticket.d.mts +53 -0
  119. package/scripts/depart-du-ticket.mjs +124 -0
  120. package/scripts/dependances-internes.mjs +115 -0
  121. package/scripts/dernier-vert.mjs +7 -15
  122. package/scripts/donnees-cles.mjs +228 -0
  123. package/scripts/droits.mjs +11 -1
  124. package/scripts/effets.mjs +352 -0
  125. package/scripts/enveloppe/enveloppe.mjs +119 -8
  126. package/scripts/enveloppe/lancer.sh +27 -32
  127. package/scripts/enveloppe/paquets-du-plan.mjs +2 -2
  128. package/scripts/enveloppe/travail-de-la-copie.mjs +99 -12
  129. package/scripts/etapes.mjs +6 -3
  130. package/scripts/faits-du-circuit.mjs +493 -0
  131. package/scripts/file-des-tickets.d.mts +21 -0
  132. package/scripts/file-des-tickets.mjs +58 -0
  133. package/scripts/flux-des-paquets.mjs +187 -0
  134. package/scripts/fusion-du-changelog.mjs +0 -1
  135. package/scripts/gardes-du-cadre.mjs +12 -2
  136. package/scripts/grillhouse-maj.mjs +16 -7
  137. package/scripts/integration/file.mjs +477 -422
  138. package/scripts/integration/integrer.mjs +20 -22
  139. package/scripts/integration/rejeu.mjs +19 -4
  140. package/scripts/jointure.d.ts +168 -28
  141. package/scripts/langages/cargo/commandes.mjs +426 -119
  142. package/scripts/langages/cargo/composants.mjs +187 -3
  143. package/scripts/langages/cargo/exemples.mjs +75 -17
  144. package/scripts/langages/cargo/index.mjs +32 -13
  145. package/scripts/langages/cargo/migrations/0.28.4-tailles-des-tests.mjs +35 -0
  146. package/scripts/langages/cargo/sccache.mjs +62 -16
  147. package/scripts/langages/cargo/squelette.mjs +72 -3
  148. package/scripts/langages/cargo/tailles-des-tests.mjs +195 -0
  149. package/scripts/langages/cargo/tests-de-head.mjs +159 -0
  150. package/scripts/langages/python/commandes.mjs +232 -79
  151. package/scripts/langages/python/composants.mjs +65 -3
  152. package/scripts/langages/python/exemples.mjs +21 -12
  153. package/scripts/langages/python/index.mjs +25 -5
  154. package/scripts/langages/python/lot.mjs +1 -36
  155. package/scripts/langages/python/squelette.mjs +119 -17
  156. package/scripts/langages/typescript/construire.mjs +6 -163
  157. package/scripts/langages/typescript/exemples.mjs +19 -11
  158. package/scripts/langages/typescript/frontieres.mjs +1 -1
  159. package/scripts/langages/typescript/index.mjs +48 -63
  160. package/scripts/langages/typescript/interfaces-contre-code.mjs +4 -4
  161. package/scripts/langages/typescript/migrations/0.30.0-prefixe-des-tickets.mjs +63 -0
  162. package/scripts/langages/typescript/migrations/0.30.0-tailles-des-outils-lourds.mjs +31 -0
  163. package/scripts/langages/typescript/migrations/0.30.0-titres-nommant-un-ticket.mjs +40 -0
  164. package/scripts/langages/typescript/mise-a-jour.mjs +1 -2
  165. package/scripts/langages/typescript/regle-des-tests.mjs +13 -0
  166. package/scripts/langages/typescript/squelette.mjs +18 -2
  167. package/scripts/langages/typescript/tailles-des-tests.mjs +40 -9
  168. package/scripts/langages/typescript/tests-de-nuit.mjs +44 -21
  169. package/scripts/langages/typescript/tests.mjs +17 -8
  170. package/scripts/langages/typescript/titres-de-tests.mjs +297 -0
  171. package/scripts/langages/typescript/turbo-des-paquets.mjs +183 -38
  172. package/scripts/langages/typescript/verdict.mjs +1 -1
  173. package/scripts/langages/typescript/verifier.mjs +110 -296
  174. package/scripts/langages/typescript/vitest-config/base.mjs +30 -10
  175. package/scripts/langages/typescript/vitest-config/bornes.mjs +13 -0
  176. package/scripts/langages/typescript/vitest-config/cibles.mjs +123 -62
  177. package/scripts/langages/typescript/vitest-config/delais.mjs +54 -0
  178. package/scripts/langages/typescript/vitest-config/delais.setup.mjs +11 -0
  179. package/scripts/langages/typescript/vitest-config/duree.classement.mjs +100 -0
  180. package/scripts/langages/typescript/vitest-config/duree.reporter.mjs +56 -64
  181. package/scripts/langages/typescript/vitest-config/machine.setup.mjs +7 -2
  182. package/scripts/langages/typescript/vitest-config/mesure.mjs +3 -2
  183. package/scripts/langages/typescript/vitest.nuit.config.mjs +22 -13
  184. package/scripts/lecture-unique.mjs +51 -0
  185. package/scripts/mesure/pression.mjs +11 -9
  186. package/scripts/mesure-de-la-machine.d.mts +21 -0
  187. package/scripts/mesure-de-la-machine.mjs +76 -0
  188. package/scripts/migrations/0.23.2-copies-du-cadre.mjs +8 -2
  189. package/scripts/migrations/0.30.0-ci-appelle-la-verification.mjs +120 -0
  190. package/scripts/migrations/0.31.0-paquets-dans-le-graphe.mjs +81 -0
  191. package/scripts/migrations.mjs +5 -0
  192. package/scripts/nuit.sh +29 -15
  193. package/scripts/outil.mjs +72 -0
  194. package/scripts/outils-cles.d.mts +24 -0
  195. package/scripts/outils-cles.mjs +0 -1
  196. package/scripts/paquet-npm.mjs +147 -0
  197. package/scripts/paquet.mjs +112 -14
  198. package/scripts/paquets.mjs +34 -6
  199. package/scripts/passe-de-la-machine.mjs +66 -0
  200. package/scripts/places-de-la-machine.mjs +360 -0
  201. package/scripts/places-du-serveur.mjs +170 -0
  202. package/scripts/prefixe-des-tickets.mjs +68 -0
  203. package/scripts/preparation.mjs +10 -3
  204. package/scripts/registre.mjs +3 -2
  205. package/scripts/regles-des-places.d.mts +36 -0
  206. package/scripts/regles-des-places.mjs +70 -0
  207. package/scripts/reponses-du-circuit.d.mts +6 -0
  208. package/scripts/reponses-du-circuit.mjs +28 -0
  209. package/scripts/resultats.mjs +29 -14
  210. package/scripts/retirer-les-copies-finies.mjs +25 -0
  211. package/scripts/sans-reponse.d.mts +4 -0
  212. package/scripts/sans-reponse.mjs +13 -0
  213. package/scripts/seances.mjs +918 -0
  214. package/scripts/services-du-noyau.mjs +28 -11
  215. package/scripts/session-start.sh +10 -1
  216. package/scripts/sortie.mjs +23 -4
  217. package/scripts/sources.mjs +3 -3
  218. package/scripts/sous-commandes.mjs +39 -9
  219. package/scripts/style-a-l-ecriture.mjs +229 -0
  220. package/scripts/superviseur.mjs +382 -16
  221. package/scripts/tableau.mjs +329 -130
  222. package/scripts/taches-du-graphe.mjs +328 -0
  223. package/scripts/ticket-du-circuit.mjs +206 -0
  224. package/scripts/transitions.d.mts +148 -0
  225. package/scripts/transitions.mjs +901 -0
  226. package/scripts/verrou-de-fichier.mjs +2 -2
  227. package/scripts/verrou-de-machine.mjs +322 -62
  228. package/skills/developpeur/SKILL.md +11 -3
  229. package/skills/explorateur/SKILL.md +2 -1
  230. package/skills/pitmaster/SKILL.md +62 -28
  231. package/skills/pitmaster/references/consigne-agent.md +5 -1
  232. package/skills/release/SKILL.md +3 -3
  233. package/skills/relecteur/SKILL.md +22 -8
  234. package/skills/testwriter/SKILL.md +47 -39
  235. package/scripts/demon.mjs +0 -138
  236. package/scripts/integration/file-attente.mjs +0 -61
  237. package/scripts/langages/cargo/touches.mjs +0 -93
  238. package/scripts/langages/typescript/script-des-tests.mjs +0 -6
@@ -0,0 +1,36 @@
1
+ // The types of the rules of the places of the machine (./regles-des-places.mjs), which the
2
+ // workflow of the machine under Temporal (src/temporal/places/) imports.
3
+
4
+ /** The memory a start wants free, in bytes: 4 GB. */
5
+ export const MEMOIRE_MIN: number;
6
+
7
+ /** A duration as a line says it: seconds under 2 min, else minutes. */
8
+ export function duree(ms: number): string;
9
+
10
+ /** What the machine gives at a moment: its cores, its load over one minute, its free memory. */
11
+ export interface MesureDeLaMachine {
12
+ coeurs: number;
13
+ charge: number;
14
+ /** In bytes. */
15
+ memoireLibre: number;
16
+ }
17
+
18
+ /** Whether a start is admitted at this load and this free memory; a refusal says why. */
19
+ export function admission(m: MesureDeLaMachine): { ok: true } | { ok: false; raison: string };
20
+
21
+ /** Why a taking does not pass now on a state of the places, null when it passes. */
22
+ export function refusDeLaPlace(
23
+ etat: {
24
+ prises: readonly unknown[];
25
+ attentes: readonly { id: string; rang: number; ticket?: string | null; raison?: string }[];
26
+ dernier: number;
27
+ },
28
+ o: {
29
+ id: string;
30
+ rang: number;
31
+ plafond: number;
32
+ espacementMs: number;
33
+ maintenant: number;
34
+ mesurer: () => MesureDeLaMachine;
35
+ }
36
+ ): string | null;
@@ -0,0 +1,70 @@
1
+ // The rules of the places of the machine, with no input nor output: whether a start is admitted
2
+ // at a load and a free memory, as `make -l` admits it, and why a taking does not pass now. The
3
+ // workflow of the machine (src/temporal/places/, grillhouse-4nr.7) holds the places of the machine
4
+ // and decides by them; a session or a pass takes its place there by
5
+ // scripts/places-de-la-machine.mjs. The workflow bundles this module, which imports nothing. What
6
+ // the machine gives, its load and its memory, is measured by scripts/mesure-de-la-machine.mjs.
7
+
8
+ /** The memory a start wants free, in bytes: 4 GB. */
9
+ export const MEMOIRE_MIN = 4 * 1024 ** 3;
10
+
11
+ // 11.2 → « 11,2 », 4 → « 4 ».
12
+ const nombre = n => (Number.isInteger(n) ? String(n) : n.toFixed(1).replace('.', ','));
13
+
14
+ /**
15
+ * A duration as a line says it: seconds under 2 min, else minutes.
16
+ * @param {number} ms
17
+ * @returns {string}
18
+ */
19
+ export const duree = ms =>
20
+ ms < 120_000 ? `${Math.round(ms / 1000)} s` : `${Math.round(ms / 60_000)} min`;
21
+
22
+ /**
23
+ * Whether a start is admitted at this load and this free memory, as `make -l` admits it: the load
24
+ * under the number of cores, and at least MEMOIRE_MIN free. A refusal says why.
25
+ * @param {{ coeurs: number, charge: number, memoireLibre: number }} o `memoireLibre` in bytes
26
+ * @returns {{ ok: true } | { ok: false, raison: string }}
27
+ */
28
+ export function admission({ coeurs, charge, memoireLibre }) {
29
+ if (charge >= coeurs) {
30
+ return { ok: false, raison: `charge de la machine ${nombre(charge)} sur ${coeurs} cœurs` };
31
+ }
32
+ if (memoireLibre < MEMOIRE_MIN) {
33
+ return {
34
+ ok: false,
35
+ raison: `mémoire libre ${nombre(memoireLibre / 1024 ** 3)} Go, sous les ${MEMOIRE_MIN / 1024 ** 3} Go demandés`,
36
+ };
37
+ }
38
+ return { ok: true };
39
+ }
40
+
41
+ /**
42
+ * Why the taking <id> of the rank <rang> does not pass now on the state <etat> (`prises`,
43
+ * `attentes`, `dernier`, the time of the last start), null when it passes: no free place under
44
+ * <plafond>; a wait of a lower rank alive, which keeps its turn between projects; the admission at
45
+ * the load and the memory <mesurer> gives (read only when the place and the turn pass); two starts
46
+ * closer than <espacementMs> at the time <maintenant>.
47
+ * @param {{ prises: object[], attentes: { id: string, rang: number, ticket?: string | null,
48
+ * raison?: string }[], dernier: number }} etat
49
+ * @param {{ id: string, rang: number, plafond: number, espacementMs: number, maintenant: number,
50
+ * mesurer: () => { coeurs: number, charge: number, memoireLibre: number } }} o
51
+ * @returns {string | null}
52
+ */
53
+ export function refusDeLaPlace(etat, { id, rang, plafond, espacementMs, maintenant, mesurer }) {
54
+ if (etat.prises.length >= plafond) {
55
+ return `aucune place libre : ${etat.prises.length} prises sur ${plafond}`;
56
+ }
57
+ const avant = etat.attentes.find(a => a.id !== id && a.rang < rang);
58
+ if (avant) {
59
+ return `place réservée : ${avant.ticket ?? 'un départ'} est arrivé avant et attend (${avant.raison})`;
60
+ }
61
+ const a = admission(mesurer());
62
+ if (!a.ok) {
63
+ return a.raison;
64
+ }
65
+ const ecoule = maintenant - etat.dernier;
66
+ if (ecoule < espacementMs) {
67
+ return `espacement des départs : le dernier date de ${duree(ecoule)}, ${duree(espacementMs)} au moins`;
68
+ }
69
+ return null;
70
+ }
@@ -0,0 +1,6 @@
1
+ // The types of ./reponses-du-circuit.mjs, for the frame's TypeScript (src/temporal/circuit/client.ts).
2
+
3
+ /** The statuses of a workflow ended without its issue. */
4
+ export const SANS_ISSUE: Set<string>;
5
+ /** The answers accepted for the circuit of <ticket> whose workflow has the status <statut>. */
6
+ export function lesReponses(ticket: string, statut: string, ecrit: boolean): string;
@@ -0,0 +1,28 @@
1
+ // The answers a circuit accepts from the supervisor, by the status of its workflow, with no input
2
+ // nor output: the one rule the client (src/temporal/circuit/client.ts: its refusals and the
3
+ // circuits it reads), the opening, the wait, the board and the line of a stop name.
4
+
5
+ /** The statuses of a workflow ended without its issue. */
6
+ export const SANS_ISSUE = new Set(['TERMINATED', 'FAILED', 'TIMED_OUT', 'CANCELLED']);
7
+
8
+ /**
9
+ * The answers accepted for the circuit of <ticket> whose workflow has the status <statut>, a state
10
+ * written in its memo or not (<ecrit>), each a command between backquotes after the first, which
11
+ * has none: ended without its issue, `--reprendre` from that state or `--depuis`; running, every
12
+ * answer; stopped on the supervisor's word, all but `--arreter`.
13
+ * @param {string} ticket
14
+ * @param {string} statut
15
+ * @param {boolean} ecrit
16
+ * @returns {string}
17
+ */
18
+ export function lesReponses(ticket, statut, ecrit) {
19
+ const circuit = `npx grillhouse circuit ${ticket}`;
20
+ const depuis = '--depuis <testwriter|developpeur> --contexte <texte>';
21
+ if (SANS_ISSUE.has(statut)) {
22
+ return ecrit ? `${circuit} --reprendre\` ou \`${depuis}` : `${circuit} ${depuis}`;
23
+ }
24
+ const etendre = '--etendre <paquet>';
25
+ return statut === 'RUNNING'
26
+ ? `${circuit} --reprendre\`, \`${depuis}\`, \`${etendre}\` ou \`--arreter`
27
+ : `${circuit} --reprendre\`, \`${depuis}\` ou \`${etendre}`;
28
+ }
@@ -13,8 +13,9 @@
13
13
  // with its `piece`: the circuit goes on, or stops at « hors-portee » or « besoin », the piece
14
14
  // with the stop (testwriter, developpeur, and the explorateur's gesture of a mechanical ticket,
15
15
  // its own schema, `geste`);
16
- // - `verts_attendus` (`fichier` from the root, `test` its full name, or none for every green of a
17
- // file HEAD holds, `raison`): the proof of the red (testwriter);
16
+ // - `portent_le_travail` (`fichier` from the root, `test` its full name, or none for every test of
17
+ // the file): the tests of the lot that carry the ticket's work, which the proof of the red
18
+ // requires red (testwriter);
18
19
  // - `renvoi` (`role` testwriter): the circuit relaunches the testwriter, then the proof and the
19
20
  // developpeur (developpeur);
20
21
  // - `hors_plan` (`critere` its number, `paquet` the package out of the plan that would hold it,
@@ -51,10 +52,11 @@
51
52
  // and the circuit refuses a sheet without a line for each element, or with a line on an
52
53
  // element out of the list, a file the lot changes named alone or as `<fichier>#<nom>`
53
54
  // (`conformiteDuLot`) (reviewer);
54
- // - `suivi` (`titre`, `etat` levé or non levé, `preuve`): after a review sent back, each finding
55
- // before it judged on the difference of the lot, by its title (its number « Constat N — »
56
- // recognised, `cleDuConstat`), which the circuit writes at the ticket with the verdict, for
57
- // the human (reviewer);
55
+ // - `suivi` (`titre`, `etat` levé or non levé, `preuve`): each finding still open judged on the
56
+ // lot, bounded or whole, by its title (its number « Constat N — » recognised, `cleDuConstat`),
57
+ // which the circuit writes at the ticket with the verdict, for the human; the circuit refuses
58
+ // a sheet without a line for one, or an ACCEPTÉ that holds one not lifted
59
+ // (`suiviDesConstats`) (reviewer);
58
60
  // - `question`, with its `piece` (reviewer): what goes up to the owner, a real word of the
59
61
  // language written in the code; the circuit stops at « besoin » before it commits or
60
62
  // relaunches anyone;
@@ -302,18 +304,15 @@ const FICHES = {
302
304
  testwriter: objet(
303
305
  {
304
306
  ...STATUT,
305
- verts_attendus: liste(
307
+ portent_le_travail: liste(
306
308
  objet(
307
309
  {
308
310
  fichier: texte('Le fichier de tests, depuis la racine du dépôt.'),
309
- test: texte(
310
- 'Le nom complet du test ; absent, chaque vert du fichier, s’il est un fichier que HEAD tient.'
311
- ),
312
- raison: texte('Pourquoi ce test passe avant le code.'),
311
+ test: texte('Le nom complet du test ; absent, chaque test du fichier.'),
313
312
  },
314
- ['fichier', 'raison']
313
+ ['fichier']
315
314
  ),
316
- 'Chaque test vert avant le code, que la preuve du rouge admet.'
315
+ 'Les tests du lot qui portent le travail du ticket : la preuve du rouge exige qu’ils échouent avant le code.'
317
316
  ),
318
317
  ...DECOUVERTES,
319
318
  },
@@ -425,7 +424,7 @@ const FICHES = {
425
424
  },
426
425
  ['titre', 'etat']
427
426
  ),
428
- 'Relecture bornée : chaque constat de la relecture d’avant, levé ou non.'
427
+ 'Chaque constat encore ouvert, levé ou non, en relecture bornée comme entière.'
429
428
  ),
430
429
  question: texte(
431
430
  'Ce qui revient au responsable (par exemple un vrai mot du langage écrit en dur) : la question et ta recommandation ; le circuit s’arrête avant de commiter ou de relancer.'
@@ -618,6 +617,22 @@ export function reponsesAuxConstats(fiche, titres) {
618
617
  return `reponses : sans réponse ${sans.length > 1 ? 'aux constats' : 'au constat'} ${sans.join(', ')}`;
619
618
  }
620
619
 
620
+ // What makes the reviewer's sheet <fiche> out of conformity with the findings still open (their
621
+ // <titres>), as Gerrit carries each unresolved comment to the next patch set whatever the form of
622
+ // the review: a finding without its line in `suivi` (by its title, numbered or not), or an ACCEPTÉ
623
+ // that holds one not lifted. The fault, or null.
624
+ export function suiviDesConstats(fiche, titres) {
625
+ const etats = new Map((fiche.suivi ?? []).map(s => [cleDuConstat(s.titre), s.etat]));
626
+ const liste = l => l.map(t => `« ${t} »`).join(', ');
627
+ const sans = titres.filter(t => !etats.has(t));
628
+ if (sans.length) {
629
+ return `suivi : sans ligne pour ${sans.length > 1 ? 'les constats' : 'le constat'} ${liste(sans)}`;
630
+ }
631
+ const tenus = fiche.verdict === 'ACCEPTÉ' ? titres.filter(t => etats.get(t) !== 'levé') : [];
632
+ if (!tenus.length) return null;
633
+ return `suivi : un ACCEPTÉ tient ${tenus.length > 1 ? 'les constats' : 'le constat'} ${liste(tenus)} non levé${tenus.length > 1 ? 's' : ''}`;
634
+ }
635
+
621
636
  // What makes the sheet of the tri <fiche> out of conformity with the discoveries <decouvertes> of
622
637
  // the ticket (their ids), as a reviewer gives a line to each element of its lot: a discovery
623
638
  // without its line, a line on an id out of the list, a discovery with two lines. The fault, or
@@ -0,0 +1,25 @@
1
+ // The command of the removal of the finished copies (./copies-finies.mjs), which the night runs
2
+ // once its steps are played (scripts/nuit.sh):
3
+ //
4
+ // node scripts/retirer-les-copies-finies.mjs [<copie finie de jouer>…] from the main tree
5
+ //
6
+ // - The circuits that run are what the Temporal server says (./circuits-du-serveur.mjs, one call,
7
+ // 5 s at most); a server that does not answer, a client not built or any other fault of that
8
+ // reading leaves them unread (null), as the removal of ./copies-finies.mjs takes them.
9
+ // - The removal lives in ./copies-finies.mjs, which imports nothing of the built `dist/`: the lock
10
+ // of the machine (./verrou-de-machine.mjs) and the base configuration of the tests import it,
11
+ // and a project of trial holds the frame's scripts without `dist/`.
12
+ import { circuitsDuServeur } from './circuits-du-serveur.mjs';
13
+ import { retirerLesCopiesDuDepot } from './copies-finies.mjs';
14
+
15
+ const racine = process.cwd();
16
+ let vivants = null;
17
+ try {
18
+ vivants = new Set((await circuitsDuServeur(racine)).filter(c => c.vivant).map(c => c.ticket));
19
+ } catch {
20
+ vivants = null;
21
+ }
22
+ const lignes = retirerLesCopiesDuDepot(racine, process.argv.slice(2), vivants);
23
+ if (lignes.length) {
24
+ process.stdout.write(`${lignes.join('\n')}\n`);
25
+ }
@@ -0,0 +1,4 @@
1
+ // The types of ./sans-reponse.mjs, for the frame's TypeScript (src/temporal/circuit/commande.ts).
2
+
3
+ /** « Temporal ne répond pas en <n> s », <n> the delay <delaiMs> in seconds. */
4
+ export function sansReponseEn(delaiMs: number): string;
@@ -0,0 +1,13 @@
1
+ // What a reading of the Temporal server says when the server does not answer within its delay:
2
+ // the fact measured, « Temporal ne répond pas en <n> s », since a server slow under load and a port
3
+ // where none listens look the same from the client. One rule for every reader: the board, the
4
+ // opening of a session (scripts/circuits-du-serveur.mjs), the command of the circuit
5
+ // (src/temporal/circuit/commande.ts) and the state of the service (src/temporal/etat.ts), each
6
+ // with the delay of its own reading.
7
+
8
+ /**
9
+ * « Temporal ne répond pas en <n> s », <n> the delay <delaiMs> in seconds.
10
+ * @param {number} delaiMs
11
+ * @returns {string}
12
+ */
13
+ export const sansReponseEn = delaiMs => `Temporal ne répond pas en ${delaiMs / 1000} s`;