@roomi-fields/grillhouse 0.47.0 → 0.47.1
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.
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,12 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.47.1] - 2026-11-21
|
|
10
|
+
|
|
11
|
+
- **A project without a TypeScript package keeps its last green, and its pushes to main pass**: the last green and the judged tree were kept by the pass of the module of package.json alone, so a project of cargo alone (open-synth-descriptors, osc-bridge) never had a tree judged, and since 0.47.0 the pre-push hook refused each of its commits to main, a green `npm run verifier` included (2026-11-21). The composed `verifier` keeps the green itself in such a project, when every module is green and the verification is whole. Action for such a project: after the update, `npm run verifier` in a clean copy of the commit, then the push.
|
|
12
|
+
|
|
13
|
+
- **A skipped flow is not a red of the CI of main**: the reading took the latest pass of each workflow, and any conclusion but `success` and `cancelled` as red; the flow that alerts on a red one, skipped on a green, was told « CI de main rouge » to the supervisor (SyntHub, 2026-11-21). A skipped pass judges nothing: the pass before it decides.
|
|
14
|
+
|
|
9
15
|
## [0.47.0] - 2026-11-21
|
|
10
16
|
|
|
11
17
|
- **A list of the server halves its page when the page is too large**: on 2026-11-21 a page of 100 circuits passed, by 3 kB, the 4 MB a gRPC message of the client takes; every reading of the circuits failed in every project (« Temporal ne répond pas » on the board), and the queues of the tickets of SyntHub and BPScript failed on it in the night, starting no ticket more. No size of page is safe for good, a memo having no bound of its own: the lists of the frame go by one function (`listerLesDeroules`), which asks for pages of 20 and starts again with pages of half the size when the client refuses one, down to one workflow a page. Action for projects: after the update, play `npx grillhouse temporal installer` (the worker takes the fix), and launch a ticket again if the queue of the tickets of the project had failed.
|
package/package.json
CHANGED
package/scripts/ci-de-main.mjs
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
// main on an hourly schedule, and this module reads it:
|
|
5
5
|
//
|
|
6
6
|
// - `lireLaCiDeMain`: the latest finished pass of each workflow of the branch (`gh run list`),
|
|
7
|
-
// green when every one succeeded, red as soon as one failed (any conclusion but `success
|
|
8
|
-
// `cancelled`: a cancelled pass is replaced by a later one, the one before it
|
|
7
|
+
// green when every one succeeded, red as soon as one failed (any conclusion but `success`,
|
|
8
|
+
// `cancelled` and `skipped`: a cancelled pass is replaced by a later one, the one before it
|
|
9
|
+
// decides, and a skipped pass judged nothing, as the flow that alerts on a red one, which skips
|
|
10
|
+
// itself on a green), and not
|
|
9
11
|
// read, never silence, when gh fails, does not start, answers garbage or no pass at all.
|
|
10
12
|
// - `lotsDepuisLeVert`: the lots of the circuit between the last green and the tip, by git alone
|
|
11
13
|
// (the commits whose subject ends with « (<ticket>) »), no state kept.
|
|
@@ -61,7 +63,8 @@ export function lireLaCiDeMain(o, { branche = 'main' } = {}) {
|
|
|
61
63
|
p?.databaseId &&
|
|
62
64
|
p.workflowName &&
|
|
63
65
|
p.status === 'completed' &&
|
|
64
|
-
p.conclusion !== 'cancelled'
|
|
66
|
+
p.conclusion !== 'cancelled' &&
|
|
67
|
+
p.conclusion !== 'skipped'
|
|
65
68
|
)
|
|
66
69
|
.sort((a, b) => b.databaseId - a.databaseId);
|
|
67
70
|
if (finis.length === 0) {
|
package/scripts/circuit.mjs
CHANGED
|
@@ -606,7 +606,8 @@
|
|
|
606
606
|
// no reference writes, or whose command fails), 24 hors-plan (a testwriter or developpeur session its lock
|
|
607
607
|
// stops on a write out of the plan, `hors-plan` that lancer.sh ranges under the session's id), 25 inattendu
|
|
608
608
|
// (an act that fails, an exception no rule of the circuit settles: its message, its stack and its
|
|
609
|
-
// step in its question, `arretInattendu`), each a question for the supervisor;
|
|
609
|
+
// step in its question, `arretInattendu`), each a question for the supervisor; 26 limite-d-usage (a session the
|
|
610
|
+
// usage limit cuts: no question, the circuit reports itself to the hour the usage returns and resumes the step); 75 a-repasser (a check or the integration still at 75 once played again,
|
|
610
611
|
// or the branch still in the queue), the gesture `a-repasser`.
|
|
611
612
|
import { spawnSync } from 'node:child_process';
|
|
612
613
|
import { createHash } from 'node:crypto';
|
|
@@ -21,10 +21,15 @@
|
|
|
21
21
|
// module takes is refused, named, and nothing plays (code 2).
|
|
22
22
|
// - The launcher's `construire --echec <fichier> <plan>` is one implementation for every language
|
|
23
23
|
// (scripts/taches-du-graphe.mjs): the first module plays it, once.
|
|
24
|
-
// - No
|
|
25
|
-
//
|
|
26
|
-
//
|
|
27
|
-
//
|
|
24
|
+
// - No module is given a green to defer: the last green (scripts/dernier-vert.mjs) is kept by the
|
|
25
|
+
// one pass of the verification, once, when every task of every language of the graph is green
|
|
26
|
+
// (scripts/langages/typescript/verifier.mjs). A module that plays after a red one gets
|
|
27
|
+
// `PASSE_ROUGE` in its environment: that pass keeps none. A project without a module of
|
|
28
|
+
// package.json (cargo alone, python alone) has no such pass: the composed `verifier` keeps the
|
|
29
|
+
// green itself then, on the tree the repository had before the modules played, when every module
|
|
30
|
+
// is green and the verification is whole (`garderSansLeGraphe`). Without it no tree of such a
|
|
31
|
+
// project was ever judged, and the pre-push hook let none of its commits go to main
|
|
32
|
+
// (open-synth-descriptors and osc-bridge, 2026-11-21).
|
|
28
33
|
// - `verifier`: the module of package.json plays last, and passes over the whole graph (every task
|
|
29
34
|
// of every language, once); the others play before it in their declared order and get
|
|
30
35
|
// `GRAPHE_JOUE` and play no task of it again (cargo: its `deny check` alone), so that nextest
|
|
@@ -35,6 +40,8 @@ import { spawnSync } from 'node:child_process';
|
|
|
35
40
|
import { constants } from 'node:os';
|
|
36
41
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
37
42
|
import { moduleDuFichier } from './composition-des-langages.mjs';
|
|
43
|
+
import { garderLeVert } from './dernier-vert.mjs';
|
|
44
|
+
import { etatDuDepot } from './etat-du-depot.mjs';
|
|
38
45
|
import { langagesDe } from './langages.mjs';
|
|
39
46
|
import { GRAPHE_JOUE, PASSE_ROUGE } from './taches-du-graphe.mjs';
|
|
40
47
|
|
|
@@ -96,13 +103,30 @@ function repartir(nom, args, modules, racine) {
|
|
|
96
103
|
};
|
|
97
104
|
}
|
|
98
105
|
|
|
106
|
+
// The options that make a verification partial: its green is kept by no one.
|
|
107
|
+
const PARTIELLE = /^(--gardes|--sans-tests|--tranche(=.*)?|--filter(=.*)?|-F)$/;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* The state a composed `verifier` keeps as the last green when its modules are all green: the one
|
|
111
|
+
* of the repository at <racine> before they play, for a whole verification (<args>) of a project
|
|
112
|
+
* that has no module of package.json (<duGraphe>), whose pass keeps it otherwise; null when this
|
|
113
|
+
* command keeps none.
|
|
114
|
+
*/
|
|
115
|
+
function garderSansLeGraphe(nom, args, duGraphe, racine) {
|
|
116
|
+
if (nom !== 'verifier' || duGraphe || args.some(a => PARTIELLE.test(a))) {
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
const etat = etatDuDepot(racine);
|
|
120
|
+
return etat.raison ? null : etat;
|
|
121
|
+
}
|
|
122
|
+
|
|
99
123
|
/**
|
|
100
124
|
* Plays the command <nom> with <args> in each module of <modules> that describes it, in the
|
|
101
125
|
* project at <racine>, under <env>: the joined exit code.
|
|
102
126
|
* @param {string} nom
|
|
103
127
|
* @param {string[]} args
|
|
104
128
|
* @param {{ racine?: string, modules?: import('./jointure.js').Langage[], env?: NodeJS.ProcessEnv,
|
|
105
|
-
* dire?: (ligne: string) => void }} [o]
|
|
129
|
+
* dire?: (ligne: string) => void, garder?: (etat: object) => void }} [o]
|
|
106
130
|
* @returns {number}
|
|
107
131
|
*/
|
|
108
132
|
export function jouer(
|
|
@@ -113,6 +137,7 @@ export function jouer(
|
|
|
113
137
|
modules = langagesDe(racine),
|
|
114
138
|
env = process.env,
|
|
115
139
|
dire = l => process.stderr.write(`${l}\n`),
|
|
140
|
+
garder = garderLeVert,
|
|
116
141
|
} = {}
|
|
117
142
|
) {
|
|
118
143
|
const avec = modules.filter(m => Object.hasOwn(m.commandes(racine), nom));
|
|
@@ -133,6 +158,7 @@ export function jouer(
|
|
|
133
158
|
nom === 'verifier' && duGraphe
|
|
134
159
|
? [...r.parts.filter(x => x.module !== duGraphe), ...r.parts.filter(x => x.module === duGraphe)]
|
|
135
160
|
: r.parts;
|
|
161
|
+
const aGarder = garderSansLeGraphe(nom, args, duGraphe, racine);
|
|
136
162
|
for (const { module, args: siens } of ordre) {
|
|
137
163
|
const c = module.commandes(racine)[nom];
|
|
138
164
|
dire(`▶ ${module.nom} : ${nom}`);
|
|
@@ -153,7 +179,11 @@ export function jouer(
|
|
|
153
179
|
codes.push(p.status ?? 128 + (constants.signals[p.signal ?? 'SIGTERM'] ?? 0));
|
|
154
180
|
}
|
|
155
181
|
}
|
|
156
|
-
|
|
182
|
+
const code = unir(codes);
|
|
183
|
+
if (code === 0 && aGarder && codes.length) {
|
|
184
|
+
garder(aGarder);
|
|
185
|
+
}
|
|
186
|
+
return code;
|
|
157
187
|
}
|
|
158
188
|
|
|
159
189
|
if (import.meta.url === pathToFileURL(process.argv[1] ?? '').href) {
|