@roomi-fields/grillhouse 0.47.1 → 0.48.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 (101) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +48 -0
  3. package/cadre/templates/projet/.github/workflows/ci.yml +18 -38
  4. package/cadre/templates/projet/.github/workflows/machine-vierge.yml +5 -0
  5. package/cadre/templates/projet/.github/workflows/nuit.yml +5 -0
  6. package/cadre/templates/projet/CLAUDE.md +23 -6
  7. package/charte.md +9 -2
  8. package/dist/temporal/circuit/commande.js +5 -3
  9. package/dist/temporal/circuit/commande.js.map +1 -1
  10. package/dist/temporal/commande.js +2 -13
  11. package/dist/temporal/commande.js.map +1 -1
  12. package/dist/temporal/deroules.d.ts +1 -1
  13. package/dist/temporal/deroules.js +2 -2
  14. package/dist/temporal/deroules.js.map +1 -1
  15. package/dist/temporal/file/activites.d.ts +1 -4
  16. package/dist/temporal/file/activites.js +13 -14
  17. package/dist/temporal/file/activites.js.map +1 -1
  18. package/dist/temporal/file/contrat.d.ts +20 -91
  19. package/dist/temporal/file/contrat.js +7 -3
  20. package/dist/temporal/file/contrat.js.map +1 -1
  21. package/dist/temporal/file/deroule.d.ts +1 -9
  22. package/dist/temporal/file/deroule.js +54 -163
  23. package/dist/temporal/file/deroule.js.map +1 -1
  24. package/dist/temporal/installation.d.ts +26 -1
  25. package/dist/temporal/installation.js +111 -2
  26. package/dist/temporal/installation.js.map +1 -1
  27. package/dist/temporal/nuits/activites.d.ts +11 -2
  28. package/dist/temporal/nuits/activites.js +16 -5
  29. package/dist/temporal/nuits/activites.js.map +1 -1
  30. package/dist/temporal/nuits/choix.d.ts +15 -0
  31. package/dist/temporal/nuits/choix.js +20 -0
  32. package/dist/temporal/nuits/choix.js.map +1 -1
  33. package/dist/temporal/nuits/contrat.d.ts +16 -3
  34. package/dist/temporal/nuits/deroule.js +9 -2
  35. package/dist/temporal/nuits/deroule.js.map +1 -1
  36. package/dist/temporal/places/client.d.ts +13 -2
  37. package/dist/temporal/places/client.js +17 -2
  38. package/dist/temporal/places/client.js.map +1 -1
  39. package/dist/temporal/places/contrat.d.ts +41 -4
  40. package/dist/temporal/places/contrat.js +8 -0
  41. package/dist/temporal/places/contrat.js.map +1 -1
  42. package/dist/temporal/places/deroule.js +46 -6
  43. package/dist/temporal/places/deroule.js.map +1 -1
  44. package/docs/ARCHITECTURE.md +166 -41
  45. package/docs/INTERFACE.md +13 -3
  46. package/package.json +1 -1
  47. package/scripts/activites.mjs +48 -10
  48. package/scripts/aiguillage.mjs +1 -0
  49. package/scripts/attente-a-l-arret.mjs +2 -5
  50. package/scripts/attente-au-tour.mjs +2 -5
  51. package/scripts/branche-de-nuit.mjs +32 -44
  52. package/scripts/ci-de-main.mjs +215 -16
  53. package/scripts/circuit.mjs +45 -33
  54. package/scripts/composition-des-langages.mjs +2 -0
  55. package/scripts/crochets.mjs +2 -2
  56. package/scripts/effets.mjs +2 -1
  57. package/scripts/enveloppe/enveloppe.mjs +61 -6
  58. package/scripts/enveloppe/travail-de-la-copie.mjs +2 -0
  59. package/scripts/etapes.mjs +11 -1
  60. package/scripts/etat-du-depot.mjs +23 -0
  61. package/scripts/faits-du-circuit.mjs +12 -23
  62. package/scripts/fermeture-de-la-machine.d.mts +27 -0
  63. package/scripts/fermeture-de-la-machine.mjs +108 -0
  64. package/scripts/greffons.mjs +1 -1
  65. package/scripts/integration/file.mjs +16 -13
  66. package/scripts/integration/integrer.mjs +2 -0
  67. package/scripts/jointure.d.ts +5 -0
  68. package/scripts/langages/c/index.mjs +2 -0
  69. package/scripts/langages/c/squelette.mjs +1 -1
  70. package/scripts/langages/cargo/index.mjs +2 -0
  71. package/scripts/langages/python/index.mjs +2 -0
  72. package/scripts/langages/typescript/index.mjs +3 -0
  73. package/scripts/langages/typescript/module-absent.mjs +24 -0
  74. package/scripts/langages/typescript/turbo-des-paquets.mjs +19 -1
  75. package/scripts/langages/typescript/vitest-config/lances.mjs +3 -1
  76. package/scripts/langages.mjs +25 -3
  77. package/scripts/machine.mjs +103 -0
  78. package/scripts/matieres-cles.mjs +17 -0
  79. package/scripts/matieres-lues.mjs +104 -0
  80. package/scripts/migrations/0.48.0-ci-declenchee-par-la-file.mjs +32 -0
  81. package/scripts/migrations/0.48.0-poussee-retiree.mjs +31 -0
  82. package/scripts/migrations.mjs +4 -0
  83. package/scripts/nuit.sh +16 -44
  84. package/scripts/passe-de-la-machine.mjs +9 -7
  85. package/scripts/places-de-la-machine.mjs +74 -11
  86. package/scripts/places-du-serveur.mjs +29 -8
  87. package/scripts/poussee-retiree.mjs +18 -0
  88. package/scripts/registre.d.mts +2 -2
  89. package/scripts/regles-des-places.d.mts +36 -5
  90. package/scripts/regles-des-places.mjs +56 -9
  91. package/scripts/reponses-du-circuit.d.mts +2 -0
  92. package/scripts/reponses-du-circuit.mjs +26 -0
  93. package/scripts/resultats.mjs +40 -0
  94. package/scripts/sous-commandes.mjs +15 -2
  95. package/scripts/superviseur.mjs +64 -57
  96. package/scripts/tableau.mjs +132 -67
  97. package/scripts/transitions.d.mts +8 -0
  98. package/scripts/transitions.mjs +21 -3
  99. package/skills/pitmaster/SKILL.md +6 -3
  100. package/skills/relecteur/SKILL.md +3 -1
  101. package/scripts/poussee-cles.mjs +0 -46
@@ -6,6 +6,12 @@ export declare const ENTRER = "entrer";
6
6
  export declare const ISSUE_DE_LA_FILE = "issueDeLaFile";
7
7
  /** The query of the queue: the entry under way and those that wait. */
8
8
  export declare const L_ETAT_DE_LA_FILE = "etatDeLaFile";
9
+ /**
10
+ * The signal that asks the queue to restart as new (the installation of a new version): at rest it
11
+ * continues as new at once; busy, it finishes its entry under way, gives its issue to the circuit,
12
+ * then continues as new with those that wait, none of them treated before.
13
+ */
14
+ export declare const RELANCER = "relancer";
9
15
  /** The bounds of the reading of the CI, in ms: its search (2 min), its wait (30 min), its step (10 s). */
10
16
  export interface DelaisDeLaCI {
11
17
  rechercheMs?: number;
@@ -30,6 +36,12 @@ export interface EntreeDeLaFileDuProjet {
30
36
  export interface VueDeLaFile {
31
37
  enCours: string | null;
32
38
  attente: string[];
39
+ /**
40
+ * The version of the tool the queue started under (`lireLaVersionDeLOutil`, read when a run
41
+ * starts); a queue recorded before this field answers without it, which reads « inconnue »
42
+ * (`temporal installer` restarts it).
43
+ */
44
+ version?: string;
33
45
  }
34
46
  /**
35
47
  * The issue of an entry, the fact `file` of the circuit (scripts/transitions.mjs); `echec`, an act
@@ -41,46 +53,6 @@ export interface IssueDeLaFile {
41
53
  /** A branch reopened because it does not replay on main: its lot goes back to the developpeur. */
42
54
  conflit?: boolean;
43
55
  }
44
- /**
45
- * One reading of the CI of every expected workflow of a commit (`lireLesPassagesDeLaCI`): green,
46
- * its run the first workflow's; red, the run of the first red workflow `flux`; or under way, each
47
- * workflow `nom` with its run (null while it is looked for) and whether it finished.
48
- */
49
- export type LectureDesPassages = {
50
- etat: 'sans-ci';
51
- } | {
52
- etat: 'non-lue';
53
- raison: string;
54
- } | {
55
- etat: 'verte';
56
- passage: string;
57
- } | {
58
- etat: 'rouge';
59
- passage: string;
60
- flux: string;
61
- } | {
62
- etat: 'en-cours';
63
- flux: {
64
- nom: string;
65
- passage: string | null;
66
- fini: boolean;
67
- }[];
68
- };
69
- /** The verdict of the CI of a commit, its run, the reason of a CI not read. */
70
- export interface VerdictDeLaCI {
71
- verdict: 'verte' | 'rouge' | 'sans-ci' | 'non-lue';
72
- passage: string | null;
73
- raison: string | null;
74
- }
75
- /** What the CI of a commit receives. */
76
- export interface EntreeDeLaCI {
77
- racine: string;
78
- ticket: string;
79
- sha: string;
80
- /** The branch the commit was pushed to, whose workflows run. */
81
- branche: string;
82
- ci?: DelaisDeLaCI;
83
- }
84
56
  /** Where the lot of a ticket stands: the status of the ticket in Beads, and its reason of closure. */
85
57
  interface Lot {
86
58
  statut: string | null;
@@ -95,13 +67,15 @@ interface Rendus {
95
67
  effets: EffetDeLaFile[];
96
68
  }
97
69
  export interface ActivitesDeLaFile {
70
+ /** The version of the tool of the package that carries the worker running this activity. */
71
+ lireLaVersionDeLOutil(): Promise<string>;
98
72
  /** Where the lot of <ticket> stands: closed, or to enter by the queue. */
99
73
  situerLeLot(e: {
100
74
  racine: string;
101
75
  ticket: string;
102
76
  }): Promise<Lot>;
103
77
  /**
104
- * The branch made the candidate its CI judges (scripts/integration/file.mjs
78
+ * The branch made the candidate the final pass judges (scripts/integration/file.mjs
105
79
  * `preparerLaBranche`): on top of main, replaced when main moved, pushed to origin; `{ entre }`,
106
80
  * a lot already on main; or the issue for the circuit, the ticket told of a branch out of the
107
81
  * queue or kept.
@@ -137,40 +111,18 @@ export interface ActivitesDeLaFile {
137
111
  issue: IssueDeLaFile;
138
112
  }) & Rendus>;
139
113
  /**
140
- * The CI of main read once, the defect ticket of a red passage opened for the owner
141
- * (scripts/ci-de-main.mjs `ouvrirLeDefautDeMain`); the queue goes on whatever it reads.
114
+ * The CI of main started when the tip and the hour ask for it (scripts/ci-de-main.mjs
115
+ * `declencherLaCiDeMain`, <apresEntree> after an entry), then read once, the defect ticket of a red
116
+ * passage opened for the owner (`ouvrirLeDefautDeMain`); the queue goes on whatever it reads.
142
117
  */
143
118
  surveillerLaCiDeMain(e: {
144
119
  racine: string;
120
+ apresEntree?: boolean;
145
121
  }): Promise<{
146
122
  etat: 'verte' | 'rouge' | 'non-lue';
147
123
  }>;
148
124
  /**
149
- * Former path (grillhouse-3uv.131): one reading of the CI of <sha> on <branche>, every expected
150
- * workflow together; the act that answers it reads nothing.
151
- */
152
- lireLesPassagesDeLaCI(e: {
153
- racine: string;
154
- ticket: string;
155
- sha: string;
156
- branche: string;
157
- }): Promise<LectureDesPassages>;
158
- /**
159
- * The CI of the candidate <sha> concluded at the ticket (`conclureLaCI`): `{ avancer: true }`,
160
- * green or no CI for the branch; or the issue for the circuit, red or not read.
161
- */
162
- conclureLaCI(e: {
163
- racine: string;
164
- ticket: string;
165
- sha: string;
166
- branche: string;
167
- } & VerdictDeLaCI): Promise<({
168
- avancer: true;
169
- } | {
170
- issue: IssueDeLaFile;
171
- }) & Rendus>;
172
- /**
173
- * Main moved forward onto the candidate <commit> its CI judged (`avancerMain`): `{ entre }`;
125
+ * Main moved forward onto the candidate <commit> the final pass judged (`avancerMain`): `{ entre }`;
174
126
  * `{ bouge: true }`, main moved meanwhile; or the issue for the circuit, main kept.
175
127
  */
176
128
  avancerMain(e: {
@@ -202,29 +154,6 @@ export interface ActivitesDeLaFile {
202
154
  raison?: string | null;
203
155
  livraison?: string | null;
204
156
  } & Rendus>;
205
- /**
206
- * The reading of the workflows of main of <sha>, pushed to <branche> at <poussee> ms, recorded as
207
- * due (`inscrireLesFluxDeMain`): nothing is read, nothing waited for.
208
- */
209
- inscrireLesFluxDeMain(e: {
210
- racine: string;
211
- ticket: string;
212
- sha: string;
213
- branche: string;
214
- brancheDuTicket: string;
215
- poussee: number;
216
- }): Promise<void>;
217
- /**
218
- * Every reading due of the workflows of main read once, without waiting (`relireLesLecturesDues`):
219
- * the number still due; a red workflow reopens its ticket, a comment is given back.
220
- */
221
- relireLesFluxDeMain(e: {
222
- racine: string;
223
- maintenant: number;
224
- ci?: DelaisDeLaCI;
225
- }): Promise<{
226
- dues: number;
227
- } & Rendus>;
228
157
  /**
229
158
  * One effect <effet> an act of the queue gave back, written under the key of this activity (its
230
159
  * workflow, its run, its activity id, which the workflow sets): one that is not written fails.
@@ -3,9 +3,7 @@
3
3
  // type is the name of its function, ./deroule.ts), its signals and its query by their names, what
4
4
  // they receive and give back, and the activities it calls (./activites.ts, each an act of
5
5
  // scripts/faits-du-circuit.mjs over scripts/integration/file.mjs). The workflows, their activities
6
- // and their clients share it. The types and activities of the former path (the CI of a ticket's
7
- // branch, the readings of the workflows of main) stay for the executions in flight, which replay
8
- // their history through `patched`; grillhouse-3uv.131 retires them.
6
+ // and their clients share it.
9
7
  /** The id of the one queue of the repository at <racine>. */
10
8
  export const idDeLaFile = (racine) => `file:${racine}`;
11
9
  /** The signal that puts a ticket's branch in the queue. */
@@ -14,4 +12,10 @@ export const ENTRER = 'entrer';
14
12
  export const ISSUE_DE_LA_FILE = 'issueDeLaFile';
15
13
  /** The query of the queue: the entry under way and those that wait. */
16
14
  export const L_ETAT_DE_LA_FILE = 'etatDeLaFile';
15
+ /**
16
+ * The signal that asks the queue to restart as new (the installation of a new version): at rest it
17
+ * continues as new at once; busy, it finishes its entry under way, gives its issue to the circuit,
18
+ * then continues as new with those that wait, none of them treated before.
19
+ */
20
+ export const RELANCER = 'relancer';
17
21
  //# sourceMappingURL=contrat.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contrat.js","sourceRoot":"","sources":["../../../src/temporal/file/contrat.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,mGAAmG;AACnG,kGAAkG;AAClG,0FAA0F;AAC1F,mGAAmG;AACnG,gGAAgG;AAChG,iGAAiG;AACjG,oEAAoE;AAEpE,6DAA6D;AAC7D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,QAAQ,MAAM,EAAE,CAAC;AAC/D,2DAA2D;AAC3D,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC;AAC/B,0FAA0F;AAC1F,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAChD,uEAAuE;AACvE,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC"}
1
+ {"version":3,"file":"contrat.js","sourceRoot":"","sources":["../../../src/temporal/file/contrat.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,mGAAmG;AACnG,kGAAkG;AAClG,0FAA0F;AAC1F,mGAAmG;AACnG,8BAA8B;AAE9B,6DAA6D;AAC7D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,QAAQ,MAAM,EAAE,CAAC;AAC/D,2DAA2D;AAC3D,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC;AAC/B,0FAA0F;AAC1F,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAChD,uEAAuE;AACvE,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAChD;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC"}
@@ -1,13 +1,5 @@
1
- import { type EntreeDeLaCI, type EntreeDeLaFile, type EntreeDeLaFileDuProjet, type IssueDeLaFile, type VerdictDeLaCI } from './contrat.js';
1
+ import { type EntreeDeLaFile, type EntreeDeLaFileDuProjet, type IssueDeLaFile } from './contrat.js';
2
2
  export declare const issueDeLaFile: import("@temporalio/workflow").SignalDefinition<[IssueDeLaFile], string>;
3
- /**
4
- * The CI of a commit, read to its conclusion: its verdict, its run, the reason of a CI not read.
5
- * Every expected workflow is read at each reading (`lireLesPassagesDeLaCI`), which keeps nothing:
6
- * green when all are green, red as soon as one is, whatever the others do; the runs are looked for
7
- * during `rechercheMs` from the start, then waited for during `attenteMs` from the moment each
8
- * workflow has its run.
9
- */
10
- export declare function ciDuCommit(e: EntreeDeLaCI): Promise<VerdictDeLaCI>;
11
3
  /**
12
4
  * The entry <e> sent to the queue of the project <projet> from the workflow of its circuit; the
13
5
  * queue started first when none runs, as a child that outlives its parent and that its
@@ -10,18 +10,18 @@
10
10
  // judge, and the next entry waits. An act that fails gives the entry the issue `echec`, its reason,
11
11
  // on which the circuit of the ticket stops, and the queue goes on. The queue reads the CI of main
12
12
  // (`surveillerLaCiDeMain`) at its start, after each entry and at each quarter of an hour it waits
13
- // for none, which opens the defect ticket of a red passage; it never waits for it. Past its length
14
- // of history, the queue continues as new between two entries, with those that wait.
15
- //
16
- // The former path, which the executions in flight replay (`patched('passe-finale-de-main')`):
17
- // the CI of the candidate's branch read by a child workflow (`ciDuCommit`), then the workflows of
18
- // main read after the push. It stays as it was, its acts answering without reading anything, until
19
- // grillhouse-3uv.131 retires it. Deterministic: it imports the workflow API and the contract.
20
- import { allHandlersFinished, ChildWorkflowCancellationType, condition, continueAsNew, defineQuery, defineSignal, executeChild, getExternalWorkflowHandle, isCancellation, ParentClosePolicy, patched, proxyActivities, setHandler, sleep, startChild, workflowInfo, } from '@temporalio/workflow';
13
+ // for none: it starts the CI of main when the tip and the hour ask for it (one pass an hour at most,
14
+ // after a lot entered), then reads it, which opens the defect ticket of a red passage; it never
15
+ // waits for it. Past its length
16
+ // of history, or when the signal RELANCER asks it (the installation of a new version), the queue
17
+ // continues as new between two entries, with those that wait: busy, it finishes its entry under
18
+ // way first and treats none of those that wait before restarting. The histories recorded with the
19
+ // marker of the final pass (`deprecatePatch`) replay on it. Deterministic: it imports the workflow API and the contract.
20
+ import { allHandlersFinished, ChildWorkflowCancellationType, condition, continueAsNew, defineQuery, defineSignal, deprecatePatch, getExternalWorkflowHandle, isCancellation, ParentClosePolicy, patched, proxyActivities, setHandler, startChild, workflowInfo, } from '@temporalio/workflow';
21
21
  import { WorkflowExecutionAlreadyStartedError } from '@temporalio/common';
22
- import { idDeLaFile, ENTRER, ISSUE_DE_LA_FILE, L_ETAT_DE_LA_FILE, } from './contrat.js';
23
- // Every act of the queue: a replacement of a branch and its install last 2 h at most; the reading
24
- // of the CI a minute. An act played again after its worker died replays its gestures without harm
22
+ import { idDeLaFile, ENTRER, ISSUE_DE_LA_FILE, L_ETAT_DE_LA_FILE, RELANCER, } from './contrat.js';
23
+ // Every act of the queue: a replacement of a branch and its install last 2 h at most; the rest
24
+ // are short. An act played again after its worker died replays its gestures without harm
25
25
  // (scripts/integration/file.mjs), and gives back its comments, which the workflow writes one per
26
26
  // activity, under the key of that activity (`jouerLesEffets`).
27
27
  const actes = proxyActivities({
@@ -54,11 +54,7 @@ async function jouerLesEffets(racine, effets, lieu) {
54
54
  const entrer = defineSignal(ENTRER);
55
55
  export const issueDeLaFile = defineSignal(ISSUE_DE_LA_FILE);
56
56
  const lEtat = defineQuery(L_ETAT_DE_LA_FILE);
57
- const DELAIS = {
58
- rechercheMs: 2 * 60_000,
59
- attenteMs: 30 * 60_000,
60
- pasMs: 10_000,
61
- };
57
+ const relancer = defineSignal(RELANCER);
62
58
  const LIMITE_D_HISTOIRE = 10_000;
63
59
  // How long the queue waits idle before it reads the CI of main again.
64
60
  const INTERVALLE_DE_LA_CI = 15 * 60_000;
@@ -80,55 +76,6 @@ function messageDe(e) {
80
76
  }
81
77
  return String(c?.message ?? c);
82
78
  }
83
- /**
84
- * The CI of a commit, read to its conclusion: its verdict, its run, the reason of a CI not read.
85
- * Every expected workflow is read at each reading (`lireLesPassagesDeLaCI`), which keeps nothing:
86
- * green when all are green, red as soon as one is, whatever the others do; the runs are looked for
87
- * during `rechercheMs` from the start, then waited for during `attenteMs` from the moment each
88
- * workflow has its run.
89
- */
90
- export async function ciDuCommit(e) {
91
- const { rechercheMs, attenteMs, pasMs } = { ...DELAIS, ...e.ci };
92
- const debut = Date.now();
93
- let limite = Infinity;
94
- for (;;) {
95
- const l = await actes.lireLesPassagesDeLaCI({
96
- racine: e.racine,
97
- ticket: e.ticket,
98
- sha: e.sha,
99
- branche: e.branche,
100
- });
101
- if (l.etat === 'sans-ci') {
102
- return { verdict: 'sans-ci', passage: null, raison: null };
103
- }
104
- if (l.etat === 'non-lue') {
105
- return { verdict: 'non-lue', passage: null, raison: l.raison };
106
- }
107
- if (l.etat === 'verte') {
108
- return { verdict: 'verte', passage: l.passage, raison: null };
109
- }
110
- if (l.etat === 'rouge') {
111
- return { verdict: 'rouge', passage: l.passage, raison: null };
112
- }
113
- const manquants = l.flux.filter(f => f.passage === null);
114
- const enCours = l.flux.find(f => f.passage !== null && !f.fini);
115
- const passage = enCours?.passage ?? null;
116
- if (manquants.length === 0 && limite === Infinity) {
117
- limite = Date.now() + attenteMs;
118
- }
119
- const reste = manquants.length > 0 ? debut + rechercheMs - Date.now() : limite - Date.now();
120
- if (reste <= 0) {
121
- const raison = manquants.length > 0
122
- ? `aucun passage de la CI pour ce commit en ${Math.round(rechercheMs / 1000)} s : ${manquants.map(f => `« ${f.nom} »`).join(', ')}.`
123
- : `en ${Math.round(attenteMs / 60_000)} min, ${l.flux
124
- .filter(f => !f.fini)
125
- .map(f => `le passage ${f.passage} de « ${f.nom} » n'a pas fini`)
126
- .join(', ')}.`;
127
- return { verdict: 'non-lue', passage, raison };
128
- }
129
- await sleep(Math.min(pasMs, reste));
130
- }
131
- }
132
79
  /**
133
80
  * The entry <e> sent to the queue of the project <projet> from the workflow of its circuit; the
134
81
  * queue started first when none runs, as a child that outlives its parent and that its
@@ -154,43 +101,39 @@ export async function entrerDansLaFile(projet, e) {
154
101
  /** The queue of the project at <racine>: one entry at a time, judged by a final pass before main moves. */
155
102
  export async function fileDuProjet(entree) {
156
103
  const { racine } = entree;
157
- // False for an execution recorded before the final pass: it keeps its former path.
158
- const surLaPasseFinale = patched('passe-finale-de-main');
159
104
  const attente = [...(entree.suite?.attente ?? [])];
160
105
  let enCours = null;
106
+ // The restart asked: no entry waiting starts any more in this run. The handlers are set first,
107
+ // outside the commands of the history, so that they answer on either path.
108
+ let relance = false;
109
+ // The marker of the final pass, which the histories recorded under the former path carry.
110
+ deprecatePatch('passe-finale-de-main');
111
+ setHandler(relancer, () => {
112
+ relance = true;
113
+ });
161
114
  // An entry already in the queue, under way or waiting, is not added twice.
162
115
  setHandler(entrer, e => {
163
116
  if (enCours?.ticket !== e.ticket && !attente.some(a => a.ticket === e.ticket)) {
164
117
  attente.push(e);
165
118
  }
166
119
  });
120
+ // The version of the tool the queue runs under, read by an activity when the run starts; absent
121
+ // until read, and for a history recorded before the marker.
122
+ let version;
167
123
  setHandler(lEtat, () => ({
168
124
  enCours: enCours?.ticket ?? null,
169
125
  attente: attente.map(a => a.ticket),
126
+ ...(version === undefined ? {} : { version }),
170
127
  }));
128
+ // The marker keeps the histories recorded before this activity replaying; a later ticket retires it.
129
+ if (patched('version-de-la-file')) {
130
+ version = await actes.lireLaVersionDeLOutil();
131
+ }
171
132
  const aContinuer = () => workflowInfo().continueAsNewSuggested || workflowInfo().historyLength >= LIMITE_D_HISTOIRE;
172
- let n = 0;
173
133
  let entrees = 0;
174
134
  // The commit main moved onto for the entry under way, until it is pushed.
175
135
  let avance = null;
176
- // The CI of the candidate <sha> of <e> on its branch, read as a child workflow: its verdict, a
177
- // reading that fails concluding it not read, the failure its reason.
178
- const juger = async (e, sha) => {
179
- n += 1;
180
- try {
181
- return await executeChild(ciDuCommit, {
182
- workflowId: `${workflowInfo().workflowId}:ci:${workflowInfo().runId}:${n}`,
183
- args: [{ racine, ticket: e.ticket, sha, branche: e.branche, ci: entree.ci }],
184
- });
185
- }
186
- catch (x) {
187
- if (isCancellation(x)) {
188
- throw x;
189
- }
190
- return { verdict: 'non-lue', passage: null, raison: `sa lecture échoue : ${messageDe(x)}` };
191
- }
192
- };
193
- // The branch of <e> brought onto main once its CI judged it, the entry's <lieu> keying its
136
+ // The branch of <e> brought onto main once the final pass judged it, the entry's <lieu> keying its
194
137
  // effects: the commit main is at, or the issue for the circuit when main does not move.
195
138
  const surMain = async (e, lieu) => {
196
139
  for (let essai = 1; essai <= ESSAIS; essai++) {
@@ -204,31 +147,15 @@ export async function fileDuProjet(entree) {
204
147
  return p.entre;
205
148
  }
206
149
  const sha = p.candidat.commit;
207
- if (surLaPasseFinale) {
208
- const j = await passeFinale.jugerLeCandidat({
209
- racine,
210
- ticket: e.ticket,
211
- branche: e.branche,
212
- commit: sha,
213
- });
214
- await jouerLesEffets(racine, j.effets, `${ici}:juger`);
215
- if ('issue' in j) {
216
- return j.issue;
217
- }
218
- }
219
- else {
220
- const verdict = await juger(e, sha);
221
- const c = await actes.conclureLaCI({
222
- racine,
223
- ticket: e.ticket,
224
- sha,
225
- branche: e.branche,
226
- ...verdict,
227
- });
228
- await jouerLesEffets(racine, c.effets, `${ici}:conclure`);
229
- if ('issue' in c) {
230
- return c.issue;
231
- }
150
+ const j = await passeFinale.jugerLeCandidat({
151
+ racine,
152
+ ticket: e.ticket,
153
+ branche: e.branche,
154
+ commit: sha,
155
+ });
156
+ await jouerLesEffets(racine, j.effets, `${ici}:juger`);
157
+ if ('issue' in j) {
158
+ return j.issue;
232
159
  }
233
160
  const a = await actes.avancerMain({
234
161
  racine,
@@ -246,7 +173,7 @@ export async function fileDuProjet(entree) {
246
173
  }
247
174
  return {
248
175
  etat: 'en-file',
249
- raison: `${e.branche} reste en file : main bouge sans cesse, ${ESSAIS} jugements de sa CI n'ont pas suffi.`,
176
+ raison: `${e.branche} reste en file : main bouge sans cesse, ${ESSAIS} jugements n'ont pas suffi.`,
250
177
  };
251
178
  };
252
179
  // The entry <e> to its issue.
@@ -263,18 +190,6 @@ export async function fileDuProjet(entree) {
263
190
  const f = await actes.fermerLEntree({ racine, ticket: e.ticket, branche: e.branche, commit });
264
191
  await jouerLesEffets(racine, f.effets, `${lieu}:fermer`);
265
192
  avance = null;
266
- // Former path: the push done, the reading of the workflows of main is recorded as due.
267
- if (!surLaPasseFinale && f.poussee) {
268
- await actes.inscrireLesFluxDeMain({
269
- racine,
270
- ticket: e.ticket,
271
- sha: commit,
272
- branche: f.poussee,
273
- brancheDuTicket: e.branche,
274
- poussee: Date.now(),
275
- });
276
- dues = true;
277
- }
278
193
  // The lot is on main: its closure first, then why it is not pushed.
279
194
  const ferme = `intégré : ${commit.slice(0, 7)}`;
280
195
  return { etat: 'ferme', raison: [ferme, f.raison, f.livraison].filter(Boolean).join(' ; ') };
@@ -300,9 +215,11 @@ export async function fileDuProjet(entree) {
300
215
  }
301
216
  };
302
217
  // The CI of main read once, never waited for: its failure does not stop the queue.
303
- const surveiller = async () => {
218
+ // It starts the CI of main when the tip and the hour ask for it, then reads it: <apresEntree>
219
+ // after an entry, so that a project with no pass known on main starts at its first lot.
220
+ const surveiller = async (apresEntree) => {
304
221
  try {
305
- await actes.surveillerLaCiDeMain({ racine });
222
+ await actes.surveillerLaCiDeMain({ racine, apresEntree });
306
223
  }
307
224
  catch (x) {
308
225
  if (isCancellation(x)) {
@@ -310,45 +227,18 @@ export async function fileDuProjet(entree) {
310
227
  }
311
228
  }
312
229
  };
313
- // Former path: each pass of the queue reads the readings due of the workflows of main, without
314
- // waiting: once at its start (the file of the readings outlives the workflow), then while one is
315
- // due, the bounds of the CI of the branch the same for the workflows of main.
316
- const delais = { ...DELAIS, ...entree.ci };
317
- let dues = true;
318
- let lectures = 0;
319
- const relireLesFluxDeMain = async () => {
320
- lectures += 1;
321
- const r = await actes.relireLesFluxDeMain({
322
- racine,
323
- maintenant: Date.now(),
324
- ci: delais,
325
- });
326
- await jouerLesEffets(racine, r.effets, `flux-de-main:${lectures}`);
327
- dues = r.dues > 0;
328
- };
329
230
  let aSurveiller = true;
231
+ let apresEntree = false;
330
232
  for (;;) {
331
- const pret = () => attente.length > 0 || aContinuer();
332
- if (surLaPasseFinale) {
333
- if (aSurveiller) {
334
- await surveiller();
335
- aSurveiller = false;
336
- }
337
- // Woken by an entry, or by the quarter of an hour that asks for another reading.
338
- aSurveiller = !(await condition(pret, INTERVALLE_DE_LA_CI));
339
- }
340
- else {
341
- if (dues) {
342
- await relireLesFluxDeMain();
343
- }
344
- if (dues) {
345
- await condition(pret, delais.pasMs * 3);
346
- }
347
- else {
348
- await condition(pret);
349
- }
233
+ const pret = () => attente.length > 0 || relance || aContinuer();
234
+ if (aSurveiller) {
235
+ await surveiller(apresEntree);
236
+ aSurveiller = false;
237
+ apresEntree = false;
350
238
  }
351
- if (attente.length > 0) {
239
+ // Woken by an entry, or by the quarter of an hour that asks for another reading.
240
+ aSurveiller = !(await condition(pret, INTERVALLE_DE_LA_CI));
241
+ if (attente.length > 0 && !relance) {
352
242
  enCours = attente.shift();
353
243
  const issue = await traiterSansTomber(enCours);
354
244
  // A circuit gone (stopped meanwhile) has no issue to await.
@@ -357,8 +247,9 @@ export async function fileDuProjet(entree) {
357
247
  .catch(() => undefined);
358
248
  enCours = null;
359
249
  aSurveiller = true;
250
+ apresEntree = true;
360
251
  }
361
- if (aContinuer()) {
252
+ if (relance || aContinuer()) {
362
253
  await condition(allHandlersFinished);
363
254
  return continueAsNew({ ...entree, suite: { attente } });
364
255
  }
@@ -1 +1 @@
1
- {"version":3,"file":"deroule.js","sourceRoot":"","sources":["../../../src/temporal/file/deroule.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,mGAAmG;AACnG,iGAAiG;AACjG,qGAAqG;AACrG,+FAA+F;AAC/F,mGAAmG;AACnG,kGAAkG;AAClG,gGAAgG;AAChG,gGAAgG;AAChG,oGAAoG;AACpG,kGAAkG;AAClG,kGAAkG;AAClG,mGAAmG;AACnG,oFAAoF;AACpF,EAAE;AACF,8FAA8F;AAC9F,kGAAkG;AAClG,mGAAmG;AACnG,8FAA8F;AAC9F,OAAO,EACL,mBAAmB,EACnB,6BAA6B,EAC7B,SAAS,EACT,aAAa,EACb,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,yBAAyB,EACzB,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,eAAe,EACf,UAAU,EACV,KAAK,EACL,UAAU,EACV,YAAY,GACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,oCAAoC,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EACL,UAAU,EACV,MAAM,EACN,gBAAgB,EAChB,iBAAiB,GAWlB,MAAM,cAAc,CAAC;AAEtB,kGAAkG;AAClG,kGAAkG;AAClG,iGAAiG;AACjG,+DAA+D;AAC/D,MAAM,KAAK,GAAG,eAAe,CAAoB;IAC/C,mBAAmB,EAAE,SAAS;IAC9B,gBAAgB,EAAE,YAAY;IAC9B,KAAK,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EAAE,CAAC,EAAE;CAC3D,CAAC,CAAC;AAEH,oGAAoG;AACpG,yEAAyE;AACzE,MAAM,WAAW,GAAG,eAAe,CAAoB;IACrD,mBAAmB,EAAE,SAAS;IAC9B,gBAAgB,EAAE,YAAY;IAC9B,KAAK,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EAAE,CAAC,EAAE;CAC3D,CAAC,CAAC;AAEH,yFAAyF;AACzF,MAAM,OAAO,GAAG,CAA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YAC9B,WAAW,GAAG,KAAK,CAAC;YACpB,WAAW,GAAG,KAAK,CAAC;QACtB,CAAC;QACD,iFAAiF;QACjF,WAAW,GAAG,CAAC,CAAC,MAAM,SAAS,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC;QAC5D,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YACnC,OAAO,GAAG,OAAO,CAAC,KAAK,EAAG,CAAC;YAC3B,MAAM,KAAK,GAAG,MAAM,iBAAiB,CAAC,OAAO,CAAC,CAAC;YAC/C,4DAA4D;YAC5D,MAAM,yBAAyB,CAAC,OAAO,CAAC,OAAO,CAAC;iBAC7C,MAAM,CAAC,aAAa,EAAE,KAAK,CAAC;iBAC5B,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;YAC1B,OAAO,GAAG,IAAI,CAAC;YACf,WAAW,GAAG,IAAI,CAAC;YACnB,WAAW,GAAG,IAAI,CAAC;QACrB,CAAC;QACD,IAAI,OAAO,IAAI,UAAU,EAAE,EAAE,CAAC;YAC5B,MAAM,SAAS,CAAC,mBAAmB,CAAC,CAAC;YACrC,OAAO,aAAa,CAAsB,EAAE,GAAG,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC;QAC/E,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { type VueDeLaFile } from './file/contrat.js';
1
2
  /** A platform the pin has an archive for, in the release's words. */
2
3
  export type Plateforme = 'linux_amd64' | 'linux_arm64' | 'darwin_amd64' | 'darwin_arm64';
3
4
  /** The version of the program `temporal` and the SHA-256 of the archive of each platform. */
@@ -103,7 +104,20 @@ export interface OptionsDInstallation extends OptionsDuProgramme {
103
104
  circuitsEnVol?: () => string[];
104
105
  /** Compacts the database file <base> and gives its size before and after (`compacterLaBase`). */
105
106
  compacter?: (base: string) => Compactage;
107
+ /**
108
+ * The queue of the project on the server, by its id (`idDeLaFile`): its view, null when no queue
109
+ * runs, a failure when the server does not answer; and the signal that restarts it as new
110
+ * (`laFileDuServeur`).
111
+ */
112
+ file?: ClientDeLaFile;
113
+ }
114
+ /** The client of the queue of a project that the installation reads and signals. */
115
+ export interface ClientDeLaFile {
116
+ vue(id: string): Promise<VueDeLaFile | null>;
117
+ relancer(id: string): Promise<void>;
106
118
  }
119
+ /** The line the command writes of a report. */
120
+ export declare function texteDeLInstallation(r: RapportDInstallation): string;
107
121
  /** The size of the database before and after its compaction, in bytes. */
108
122
  export interface Compactage {
109
123
  avant: number;
@@ -127,6 +141,17 @@ export interface RapportDInstallation {
127
141
  * applies; absent when nothing deferred them.
128
142
  */
129
143
  serveurDiffere?: string[];
144
+ /**
145
+ * What became of the queue of the project: « repartie (<ancienne> → <nouvelle>) » (at rest,
146
+ * restarted as new), « repart après l'entrée de <ticket> (<ancienne> → <nouvelle>) » (busy, it
147
+ * restarts once that entry has its issue), or « aucune » (no queue in flight, a queue of the
148
+ * installed version, or a server that does not answer).
149
+ */
150
+ file: string;
151
+ /** The version the queue started under, « inconnue » when its view carries none; absent without a queue. */
152
+ versionDeLaFile?: string;
153
+ /** The version installed, that of the package the worker comes from; absent without a queue. */
154
+ versionInstallee?: string;
130
155
  }
131
156
  /**
132
157
  * Compacts the SQLite database <base> (`VACUUM`, by the runtime's `node:sqlite`, no tool of the
@@ -157,4 +182,4 @@ export declare function travailleurPerime({ lieux, epingle, node, trouver, }: {
157
182
  trouver?: (nom: string) => string | null;
158
183
  }): boolean;
159
184
  /** Installs the account's Temporal at the places <lieux> (see the header). */
160
- export declare function installer({ lieux, systemctl, epingle, plateforme, obtenir, node, outil, travailleur, trouver, circuitsEnVol, compacter, }: OptionsDInstallation): Promise<RapportDInstallation>;
185
+ export declare function installer({ lieux, systemctl, epingle, plateforme, obtenir, node, outil, travailleur, trouver, circuitsEnVol, compacter, file, }: OptionsDInstallation): Promise<RapportDInstallation>;