@roomi-fields/grillhouse 0.44.0 → 0.45.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.
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +24 -0
- package/cadre/templates/projet/.claude/settings.json +5 -0
- package/cadre/templates/projet/CLAUDE.md +15 -2
- package/cadre/templates/projet/docs/agents/issue-tracker.md +1 -1
- package/charte.md +3 -2
- package/dist/temporal/circuit/client.d.ts +7 -0
- package/dist/temporal/circuit/client.js +12 -2
- package/dist/temporal/circuit/client.js.map +1 -1
- package/dist/temporal/commande.js +5 -1
- package/dist/temporal/commande.js.map +1 -1
- package/dist/temporal/installation.d.ts +21 -1
- package/dist/temporal/installation.js +103 -12
- package/dist/temporal/installation.js.map +1 -1
- package/dist/temporal/tickets/activites.js +3 -1
- package/dist/temporal/tickets/activites.js.map +1 -1
- package/docs/ARCHITECTURE.md +204 -68
- package/docs/INTERFACE.md +23 -15
- package/package.json +1 -1
- package/scripts/activites.mjs +59 -43
- package/scripts/aiguillage.mjs +1 -0
- package/scripts/attente-de-la-machine.mjs +312 -0
- package/scripts/avancement.mjs +38 -31
- package/scripts/bilan.mjs +30 -5
- package/scripts/circuit.mjs +10 -7
- package/scripts/codes-de-sortie.mjs +1 -1
- package/scripts/coeurs-dedies.mjs +427 -0
- package/scripts/composants-affectes.mjs +3 -1
- package/scripts/consommation-des-passes.mjs +382 -0
- package/scripts/consommation.mjs +45 -0
- package/scripts/copies-finies.mjs +2 -2
- package/scripts/depart-du-ticket.mjs +3 -1
- package/scripts/disque-des-copies.mjs +1 -1
- package/scripts/echantillonneur-de-la-passe.mjs +103 -0
- package/scripts/enveloppe/enveloppe.mjs +1 -11
- package/scripts/enveloppe/travail-de-la-copie.mjs +3 -2
- package/scripts/grillhouse-maj.mjs +8 -4
- package/scripts/integration/file.mjs +10 -4
- package/scripts/jointure.d.ts +20 -9
- package/scripts/langages/cargo/commandes.mjs +8 -8
- package/scripts/langages/python/commandes.mjs +7 -6
- package/scripts/langages/typescript/tests-de-nuit.mjs +17 -4
- package/scripts/langages/typescript/tests.mjs +15 -6
- package/scripts/langages/typescript/verifier.mjs +23 -17
- package/scripts/langages/typescript/vitest-config/base.mjs +3 -3
- package/scripts/langages/typescript/vitest-config/machine.setup.mjs +7 -7
- package/scripts/mesure/base-de-passe.mjs +1 -1
- package/scripts/migrations/0.44.0-seuil-des-codes-de-tickets.mjs +47 -0
- package/scripts/migrations.mjs +2 -0
- package/scripts/passe-de-la-machine.mjs +456 -31
- package/scripts/places-de-la-machine.mjs +508 -61
- package/scripts/plafond-de-la-machine.d.mts +47 -2
- package/scripts/plafond-de-la-machine.mjs +197 -5
- package/scripts/preparation.mjs +1 -0
- package/scripts/regles-des-places.d.mts +40 -0
- package/scripts/regles-des-places.mjs +91 -0
- package/scripts/retirer-les-copies-finies.mjs +1 -1
- package/scripts/seances.mjs +4 -3
- package/scripts/services-du-noyau.mjs +3 -3
- package/scripts/sous-commandes.mjs +6 -7
- package/scripts/tableau.mjs +121 -112
- package/scripts/verrou-de-machine.mjs +0 -829
package/CHANGELOG.md
CHANGED
|
@@ -6,10 +6,34 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.45.0] - 2026-11-18
|
|
10
|
+
|
|
11
|
+
- **The reading of the circuits asks for pages of 100** : on pc3 (2026-11-18), every reading of the circuits by the board, the supervisor and the queue of the tickets said « Temporal ne répond pas en 5 s » while the server answered the same list from its own command in 0.15 s. The server pages a list by 1000 by default; a page of the 255 circuits of the machine, each with its memo, weighed 4.4 MB, over the 4 MB a gRPC message of the client takes (« Received message larger than max »), which the client retried until its deadline. Every list of the frame (`lireLesCircuits`, `circuitsVivants`, `circuitsEnPause`) now asks for pages of 100 (`PAGE`). **Action for projects**: none.
|
|
12
|
+
|
|
13
|
+
- **The Temporal server holds under load** (grillhouse-3uv.108): on pc3, with the load near 30 on 32 cores, « Temporal ne répond pas en 5 s » still showed, the server sharing the processor equally with the passes, its SQLite database (2.4 GB, 4122 workflows kept 30 days) in the rollback journal. The server's unit now carries `CPUWeight=1000` (the workers keep the default 100, no cap), opens its database in WAL with `synchronous=NORMAL` (`--sqlite-pragma`), and the namespace keeps a closed workflow 7 days, not 30 (`--retention 168h`): a circuit stopped for more than 7 days reopens by `--depuis`. When `npx grillhouse temporal installer` applies the server's unit, it first asks the server for the circuits in flight and refuses, naming their tickets, when there is one; then stops the server, compacts its database (`VACUUM`, the runtime's `node:sqlite`) and starts it again, and its report gives the size before and after; a failed compaction starts the server again and refuses the installation by its name. Temporal's reference puts a lasting server on PostgreSQL: the development server stays, PostgreSQL being the next step if these three remedies do not suffice (decision of 2026-11-18). **Action for projects**: `npx grillhouse temporal installer`, at a moment with no circuit in flight.
|
|
14
|
+
|
|
15
|
+
- **A measure of time plays on dedicated cores** (grillhouse-mnn.3): a measure of time (a bench, a time witness named to `npm test`) no longer takes the whole budget of the machine, the rest of it waiting: it reserves precise cores and is attached to them, children included, while the other passes go on on the cores left (as `pyperf system tune`, `cset shield` and the static policy of the CPU Manager of Kubernetes isolate cores for a measure). A unit of dedicated core is a physical core whole, its sibling threads with it, read from the topology of the system (a topology that does not read counts each thread as a core, said once); the count stays in threads, as the budget does (8 cores and 16 threads, reserve 4, budget 12: the default measure gets 4 threads, 2 cores with their siblings, the ordinary passes the 8 others). Each part held now names its precise threads in its file of the parts, and no pass gets a thread another holds. A measure waits for its cores keeping its rank and says « cœurs dédiés » with the passes that hold them; a pass that comes after it waits behind it; one measure plays at a time; at the bound, « à repasser » (75). With the cpuset controller delegated to the user's account the measure and the ordinary passes play in control groups with fixed allowed cores and the programs out of the frame are kept away from the dedicated cores; without it the frame attaches them by the affinity of the launch (`taskset`) and says once that the programs out of the frame are not kept away, with the setting of the poste; in an agent's envelope or on a system with neither, the measure plays without a part held, said once, never refused. The load of the dedicated cores out of the measure (`/proc/stat`, the measure's own time taken from its group) is judged: a measure waits before it starts for it to pass under 10 % of their capacity, and a red measure played while it was over 10 % is « à repasser » (75), not 1; without a reading the measure does not judge it and says so once. The night keeps the whole budget. **Action for projects**: none is required (without a key the dedicated cores are the default part of the budget, 4 threads at least). A project may declare them in the key `grillhouse.mesure` (`{ "coeurs": <integer ≥ 1> }`, read in the main tree, a faulty key refused by its name before any work); a poste that wants the other programs of the account kept away from the dedicated cores delegates the cpuset controller (`Delegate=cpuset cpu io memory pids` in a file of `user@.service.d/`).
|
|
16
|
+
|
|
17
|
+
- **The status line redraws in a session at rest** (grillhouse-3uv.107): in Grillhouse, a « 🔒 Passe finale · open-synth-descriptors » stayed shown long after the pass ended, until the next message; the data was fresh, but Claude Code runs the status line command on the events of the session only, which fall silent at rest. As tmux's `status-interval` does, the `statusLine` the frame sets now carries `refreshInterval: 10` (the template of a project, which had no status line, Grillhouse's settings, and `npx grillhouse maj`, which rewrites the frame's status line whole: another interval is set back to 10, a key the frame does not know is removed); a status line of the project's own stays. **Action for projects**: `npx grillhouse maj`.
|
|
18
|
+
|
|
19
|
+
- **`npm test` gives the tests the tools and the data of the project** (grillhouse-3uv.105): in SyntHub (SH-br0.3, 0.44.0), the Catalogue flow played `npm test -- crates/service`, whose environment lacked `grillhouse.outils.SYNTHHUB_PYTHON`, so 12 page tests fell back on python3 and went red on main while `npm run verifier` was green. As Bazel gives `bazel test` of one target the environment of the whole pass, `environnementDe` now gives every subcommand of the language module (`tests`, `construire`, `typecheck`, `verifier`…) each variable of `grillhouse.outils` and `grillhouse.donnees`, taken from the key whatever the launcher holds, and a faulty key refuses it by its name before any task; a subcommand of the core keeps the launcher's environment. **Action for projects**: remove from a flow a variable the key already carries (`grillhouse.outils`, `grillhouse.donnees`).
|
|
20
|
+
|
|
21
|
+
- **A workflow of main that was cancelled is not red** (grillhouse-554): in SyntHub (SH-br0.4, 708d65b, 0.44.0), the workflow « Deploy hosted server » of main has a concurrency group; the next commit (85592f6, which holds the lot) started a deployment that replaced it, GitHub concluded the first run `cancelled`, and the queue, which took any conclusion but `success` for red, reopened the ticket under `flux-rouge`. As Zuul dequeues without a failure an item a later one supersedes, a cancelled run is now « non jugé »: a comment names the workflow, the run and why, the ticket stays closed, the reading is closed; `failure`, `timed_out` and `startup_failure` stay red. **Action for projects**: none.
|
|
22
|
+
|
|
23
|
+
- **A session starts again in a copy its tool no longer loads** (after grillhouse-3vf): in osc-bridge (OB-20q.7, 0.44.0), a session added `osd-formats.workspace = true` to a crate's manifest, the write of the root manifest was stopped « hors du plan », and after `--etendre .` the resumption threw on `cargo metadata` (« dependency.osd-formats was not found in workspace.dependencies ») before the session that would write the root: the launch of a session read the tests of the lot (`testsDuLot`) through the strict join. It now reads them through `langageDeLaCopie`, as the lock, the envelope and the opening of each act do; so do the reading that says whether the plan carries tests, before each session of the testwriter (`sansTests`), and the preparation of the copy that sorts a conflict by role (`preparer --role`). The proof and the checks keep the strict join. **Action for projects**: none.
|
|
24
|
+
|
|
25
|
+
- **The parts of the passes replace the lock of the machine** (grillhouse-mnn.2): the exclusive lock of the machine (`mesure-lourde.lock`, `GRILLHOUSE_VERROU_MACHINE`, its holder file and its waits directory) is gone. The budget of the machine, its cores and memory less the reserve of the user (`GRILLHOUSE_RESERVE_COEURS`, by default min(4, max(0, cores − 4)): 0 on 4 cores or fewer, 2 on 6, 4 from 8, so a machine of 4 cores plays one pass at a time; a reserve set equal to the cores is refused by its name; and `GRILLHOUSE_RESERVE_MEMOIRE_GO`, 4, in `~/.config/grillhouse/machine.env` or the environment, zero admitted, a faulty value refused by its name), is shared in parts that every pass of the machine takes, whatever its repository: the heavy pass of a circuit, `npm run verifier`, a targeted `npm test`, a CI slice on a machine of ours, the night. A pass no longer takes a place of the machine (a place is a session of an agent or a circuit; a part is a pass). A pass starts when its part fits in what the parts held leave of the budget and the load and the memory of the machine admit it; else it waits, says what it waits for (cores, memory, load) with its figures when it begins and every 30 s, keeps its rank (the frame's measure before a project's, then the order of arrival) and stops at « à repasser » (75) at the bound of the wait. Two passes whose parts fit together play side by side, of two projects or of one. The system holds a pass to its part: it plays in a control group of Linux of its own (`systemd-run --user --scope`, a CPU weight and a memory bound drawn from the part, no hard CPU ceiling) and its tools receive the cores of its part (`GRILLHOUSE_TRAVAILLEURS`); the commands an agent launches in its envelope take no part and play without a group, as a system without a manager of the user does, which the pass says once (« joue sans part tenue »). The night and a measure of time named play alone, on the whole budget. The parts held and waited for are one file per pass in the user's state directory (`GRILLHOUSE_PARTS_DE_LA_MACHINE` names another, which the tests' base configuration gives each test file), which the board reads: it says the budget taken (passes, cores and memory reserved of the total), who holds a part and who waits for what; a pass whose process is gone frees its part. A pass that consumes clearly more than its part is said on the board and by `npx grillhouse consommation`. **Action for projects**: none is required (without a declaration the part is the default one, 4 cores at least, and a part larger than the budget is the budget, one pass at a time, as under the lock). A project may declare the part of its passes in the key `grillhouse.part` of its `package.json` (`{ "coeurs": <integer ≥ 1>, "memoireGo": <number > 0> }`, each optional, read in the main tree, a faulty key refused by its name before any work); a project whose tests named `GRILLHOUSE_VERROU_MACHINE` to isolate their lock names `GRILLHOUSE_PARTS_DE_LA_MACHINE` (a directory) instead; a poste that wants the machine for itself sets a bigger reserve in `~/.config/grillhouse/machine.env`.
|
|
26
|
+
|
|
27
|
+
- **A bd that does not launch is named** : the worker of a project kept in memory the PATH of a Node since removed from the machine, `bd` no longer launched, and the circuit stopped on « ticket grillhouse-mnn.1 illisible : undefined », which names nothing. The launch of a ticket (`scripts/depart-du-ticket.mjs`) and the affected components (`scripts/composants-affectes.mjs`) now give the error of the launch (« spawnSync bd ENOENT ») before the output of bd, as `leTicket` already does. **Action for projects**: none.
|
|
28
|
+
|
|
29
|
+
- **Each heavy pass keeps what it consumes** (grillhouse-mnn.1): a heavy pass (a step of the circuit, `npm run verifier`, the night) runs in a transient scope of the user's systemd manager, opened once the lock is taken, and at its end, before the lock is given back, adds a line to `<git common dir>/grillhouse/consommation.jsonl`: kind, ticket, duration, processor time (`CPUUsageNSec`), peak of memory (`MemoryPeak`), cores, outcome (green, red, interrupted) and end date. A detached sampler keeps the last reading of a pass killed without a final line. `npx grillhouse consommation [--json]` gives, per kind of pass, the median and the maximum of the cores occupied and of the peak of memory. Without the means to measure (no manager of the user, an agent's envelope) the pass plays as before and says « consommation non mesurée : <raison> » once. The order of the passes, the lock and their waits are unchanged; `avecLaMachineEtUnePlace` of the join is replaced by `avecLaPasse`. **Action for projects**: none.
|
|
30
|
+
|
|
9
31
|
## [0.44.0] - 2026-11-18
|
|
10
32
|
|
|
11
33
|
- **A session repairs a copy its tool no longer loads** (grillhouse-3vf): the lock of the writes and the envelope read the packages of the copy through the tool of its language before each write and at the launch of a session; in a copy left between two writes of one change (cargo: a dependency moved in the manifest of the workspace and not yet in a crate's, « dependency.jiff was not found in workspace.dependencies »), every further write was refused, the one that repairs the copy among them, and the circuit stopped without writing its stop (osc-bridge, OB-ud1.6). What must go on in such a copy (the lock of a session's writes, its envelope and its launch, the opening of each act of the circuit on its ticket) now reads the language through `langageDeLaCopie` (`scripts/langages.mjs`): its readings of the tree (the components, the test material, the class of a file, the part of a manifest its tests own) are played in the main tree of the repository when they throw in the copy. A write is judged on the plan as any other, and the stop of a step is written at the ticket; `langageDe` stays strict for the guards, the builds and the red of a reading. **Action for projects**: none.
|
|
12
34
|
|
|
35
|
+
- **The codes of the tickets stay at three characters in every project** (grillhouse-3uv.104): the threshold of Beads that keeps them so (`max_collision_prob`, 0.99) was set by hand in Grillhouse alone, and BPScript went to four-character codes. `npx grillhouse init` now sets it right after its `bd init` (a failure of `bd config set` fails `init`), and `npx grillhouse maj` sets it by a migration (0.44.0) in a project whose Beads has no value, and says so. A project that chose another value keeps it: the report names it with the command that aligns it (`bd config set max_collision_prob 0.99`), as information, not a to-do. A project whose Beads cannot be reached (no `bd`, no store) is not written, and the report says so. **Action for projects**: none.
|
|
36
|
+
|
|
13
37
|
- **The installation of Temporal in one project no longer makes the workers of the others stale** (grillhouse-ftt): on an account that holds several projects, `npx grillhouse temporal installer` replaced the applied state (`unites-appliquees.json`) by the sums of its own three units and rewrote the unit of the machine's worker for its own root, so every other project read « le travailleur de Temporal périmé » at its next session, and its own installation restarted the shared worker under the circuits in flight (pc3, five projects, 2026-11-18). An installation now keeps the sums of the other projects' units. The unit of the machine belongs to the project that wrote it (its `WorkingDirectory`), which rewrites and repairs it; another project takes it only to raise it to a later version of the frame, when its version does not read, or when the project it belonged to is gone (`textesDuProjet` of `src/temporal/installation.ts`). **Action for projects**: after the update, run `npx grillhouse temporal installer` once in each project, at a moment without a circuit in flight; the alert then stays away.
|
|
14
38
|
|
|
15
39
|
- **The frame supports Node 26 alone, and a release does not play again the CI of a commit already judged** (grillhouse-3uv.103): the CI and the night of GitHub played Node 24 and 26, the template's night Node 22 and 24, and the release played the whole CI on a commit the CI of its `agent/**` branch had judged green (9 to 20 minutes). Every trigger now plays Node 26 alone, `engines.node` is `>=26.0.0` (root, package, template), the job `judged` of the CI also judges a tag `v<x.y.z>` (the exact commit of the push), and the release publishes when the CI it calls succeeded or was skipped, never on a failure or a cancellation. **Action for projects**: `npx grillhouse maj` sets `engines.node` `>=22.0.0` or `>=24.0.0` to `>=26.0.0` and writes the frame's workflows again; a project that declares another value keeps it, and the update names it: its workflows play Node 26 alone, so it raises the value or widens its matrix.
|
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
],
|
|
14
14
|
"deny": []
|
|
15
15
|
},
|
|
16
|
+
"statusLine": {
|
|
17
|
+
"type": "command",
|
|
18
|
+
"command": "\"$CLAUDE_PROJECT_DIR/node_modules/.bin/grillhouse\" ligne-etat",
|
|
19
|
+
"refreshInterval": 10
|
|
20
|
+
},
|
|
16
21
|
"enabledPlugins": {
|
|
17
22
|
"rtfm@roomi-fields": true,
|
|
18
23
|
"grillhouse@roomi-fields": true
|
|
@@ -37,7 +37,7 @@ interface publiée…>. Le cadre et l'architecture montent toujours (charte comm
|
|
|
37
37
|
|
|
38
38
|
## Commandes
|
|
39
39
|
|
|
40
|
-
- `npm test` (Turborepo : construction, puis tests ; une tâche dont rien n'a bougé est relue de son cache, `npm run test:forcer` rejoue) · `npm test -- <chemins>` (un lancement ciblé : chaque chemin écrit depuis la racine, joué dans son paquet, avec les constructions dont ses tests dépendent, relues du cache ; ses tests rejouent dès que bouge ce qu'ils importent ; un lancement qui ne joue aucun test échoue ; un test de nuit nommé est refusé, la nuit seule le joue ; une mesure de temps — un banc, un témoin de temps — se joue quand son propre fichier est nommé, sous la mesure du temps) · `npm run verifier` (après la construction, les gardes du cadre, celles du projet — son script `gardes` —, le typage de chaque paquet — son script `typecheck`, ses sources et ses tests —, la mise en forme et le lint de la racine — ses scripts `format:check` et `lint`, joués quand ils existent — et les tests, côte à côte,
|
|
40
|
+
- `npm test` (Turborepo : construction, puis tests ; une tâche dont rien n'a bougé est relue de son cache, `npm run test:forcer` rejoue) · `npm test -- <chemins>` (un lancement ciblé : chaque chemin écrit depuis la racine, joué dans son paquet, avec les constructions dont ses tests dépendent, relues du cache ; ses tests rejouent dès que bouge ce qu'ils importent ; un lancement qui ne joue aucun test échoue ; un test de nuit nommé est refusé, la nuit seule le joue ; une mesure de temps — un banc, un témoin de temps — se joue quand son propre fichier est nommé, sous la mesure du temps) · `npm run verifier` (après la construction, les gardes du cadre, celles du projet — son script `gardes` —, le typage de chaque paquet — son script `typecheck`, ses sources et ses tests —, la mise en forme et le lint de la racine — ses scripts `format:check` et `lint`, joués quand ils existent — et les tests, côte à côte, sur sa part de la machine, sans aucune mesure de temps, que joue la nuit seule : ce que jouent l'intégration, la file, la CI et la nuit ; mesuré contre le dernier vert, un paquet rejoué joue les tests que Vitest relie aux fichiers changés depuis, tous quand un changement sort de son graphe ; 0 vert, 1 rouge, un délai dépassé compris ; 75 quand l'attente de la part de la machine ou de place sous /tmp atteint sa borne, ou quand la veille de la mémoire coupe la passe avant que le système ne tue) · `npm run verifier -- --tout` (la passe complète, chaque test joué pour de vrai : ce que joue la nuit) · `npm run verifier -- --gardes` (les gardes, la mise en forme et le lint, même verdict : ce que joue le relecteur) · `npm run typecheck` · `npm run lint` · `npm run format:check`.
|
|
41
41
|
- Préfixe des tickets : `<prefixe>-`.
|
|
42
42
|
- La politique de poussée : la clé `grillhouse.poussee` du `package.json` (`commit` : la branche où
|
|
43
43
|
part chaque commit, main par défaut ; `nuit` : la branche où la nuit pousse son commit vert ;
|
|
@@ -71,7 +71,20 @@ interface publiée…>. Le cadre et l'architecture montent toujours (charte comm
|
|
|
71
71
|
`~/.config/grillhouse/machine.env`, 3 par défaut), et la place d'une copie de plus sur le disque
|
|
72
72
|
des copies (la plus grande copie mesurée du projet, sinon 1 Go, 8 Go pour Rust, plus 4 Go) ;
|
|
73
73
|
sinon il reste en file, non démarré, et le panneau dit « attend une place » ou « attend le
|
|
74
|
-
disque » avec les copies en pause qui l'occupent.
|
|
74
|
+
disque » avec les copies en pause qui l'occupent. Une passe (la passe lourde d'un circuit,
|
|
75
|
+
`npm run verifier`, la nuit) ne prend aucune place : elle prend sa part, que la clé suivante règle.
|
|
76
|
+
- La part d'une passe : la clé `grillhouse.part` du `package.json` (`{ "coeurs": <entier ≥ 1>,
|
|
77
|
+
"memoireGo": <nombre > 0> }`, chacun facultatif : ses cœurs et sa mémoire, que la passe réserve du
|
|
78
|
+
budget de la machine, son matériel moins la réserve de l'utilisateur —
|
|
79
|
+
`GRILLHOUSE_RESERVE_COEURS` et `GRILLHOUSE_RESERVE_MEMOIRE_GO` de `~/.config/grillhouse/machine.env`,
|
|
80
|
+
4 Go par défaut, et en cœurs min(4, max(0, cœurs − 4)) : 0 sur 4 cœurs ou moins, 2 sur 6, 4 à
|
|
81
|
+
partir de 8 ; zéro admis, une réserve réglée qui égale les cœurs est refusée ; lue dans l'arbre principal ; toute autre valeur est
|
|
82
|
+
refusée par son nom avant tout travail). Absente, la part vaut 4 cœurs au moins, sa mémoire en
|
|
83
|
+
proportion ; une part plus grande que le budget vaut le budget, une seule passe jouant alors à la
|
|
84
|
+
fois. La passe n'a que cette part : le système la tient dans un groupe de contrôle de Linux à elle
|
|
85
|
+
(poids de processeur et plafond de mémoire tirés de la part, sans plafond dur de processeur), et
|
|
86
|
+
elle attend, en disant ce qu'elle attend (cœurs, mémoire, charge), quand le budget manque ; la
|
|
87
|
+
nuit et une mesure de temps demandent le budget entier et jouent seules.
|
|
75
88
|
- Le sigle du projet : la clé `grillhouse.sigle` du `package.json` (une chaîne non vide sans
|
|
76
89
|
espace, le nom court du projet aux affichages partagés entre projets : la ligne des places, qui
|
|
77
90
|
nomme qui tient chaque place, et le panneau de plusieurs projets ; absente, le préfixe de tickets
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Issue tracker: Beads (`bd`)
|
|
2
2
|
|
|
3
|
-
Issues for this repo live in Beads, a git-backed tracker: data under `.beads/`, commands via the `bd` CLI, ids `<prefix>-xxx` (the prefix is set by `grillhouse init`). No remote service. The project owner opens the work; agents take tickets, never invent them.
|
|
3
|
+
Issues for this repo live in Beads, a git-backed tracker: data under `.beads/`, commands via the `bd` CLI, ids `<prefix>-xxx` (the prefix is set by `grillhouse init`). No remote service. The project owner opens the work; agents take tickets, never invent them. The codes of the tickets stay at three characters: `grillhouse init` sets the Beads threshold `max_collision_prob` to 0.99 right after `bd init`, and `grillhouse maj` sets it in a project that has no value (a project that chose another value keeps it; the report names it and the command that aligns it, `bd config set max_collision_prob 0.99`).
|
|
4
4
|
|
|
5
5
|
## Conventions
|
|
6
6
|
|
package/charte.md
CHANGED
|
@@ -120,8 +120,9 @@ test vit autant que son comportement, pas que son ticket.
|
|
|
120
120
|
**Une mesure de temps joue la nuit** (les tests `manual` de Bazel, les bancs de rustc-perf hors de
|
|
121
121
|
la CI de chaque commit) : le jour sert l'activité, et sa machine est toujours chargée. Un test qui
|
|
122
122
|
mesure un temps (un banc de temps, un témoin de temps) est hors du jour dans chaque langage, comme
|
|
123
|
-
un test de nuit ; la nuit le joue seul,
|
|
124
|
-
|
|
123
|
+
un test de nuit ; la nuit le joue seul, sur des cœurs au repos (des cœurs dédiés que personne
|
|
124
|
+
d'autre ne touche, le reste de la machine continuant de travailler), et un échec sous charge y est
|
|
125
|
+
« à repasser » (75). Le jour n'attend aucun repos : un délai de test est un garde-fou, pas une mesure ; dépassé,
|
|
125
126
|
il est rouge, et un délai trop juste s'élargit, très au-dessus de la durée normale du test. Ainsi
|
|
126
127
|
le jour avance, et une mesure se prend au repos.
|
|
127
128
|
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { type Client } from '@temporalio/client';
|
|
2
|
+
/**
|
|
3
|
+
* The workflows a page of a list of the server gives at most. The server pages by 1000 by default,
|
|
4
|
+
* and a page of circuits, each with its memo, passes the 4 MB a gRPC message of the client takes
|
|
5
|
+
* (« Received message larger than max », which the client retries until its deadline, read as
|
|
6
|
+
* « Temporal ne répond pas en 5 s »): every list of the frame asks for pages of PAGE.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PAGE = 100;
|
|
2
9
|
import { type EntreeDuCircuit, type ETAPES_DE_REPRISE, type FinDuCircuit, type VueDuCircuit } from './contrat.js';
|
|
3
10
|
/** Starts the circuit of <entree> on the task queue <file>, or leaves the one that runs: its id. */
|
|
4
11
|
export declare function demarrerLeCircuit(client: Client, entree: EntreeDuCircuit, file: string): Promise<string>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// L_ETAT). A circuit stopped on the supervisor's word has ended its workflow, which gave back the
|
|
6
6
|
// state it wrote last (`FinDuCircuit`): his answer starts a new one on the same id, which reopens
|
|
7
7
|
// from that state (`reprise`, `etatDArret`), not as a first launch, the bounds of the entry it
|
|
8
|
-
// follows kept. The server holds a workflow for the retention of its namespace (
|
|
8
|
+
// follows kept. The server holds a workflow for the retention of its namespace (7 days, the
|
|
9
9
|
// installation's); past it, the state is gone with it, and only `--depuis` reopens the circuit,
|
|
10
10
|
// from the step of its agent, on the task queue of the project's worker (decision Q2 of
|
|
11
11
|
// grillhouse-4nr.12).
|
|
@@ -13,6 +13,13 @@ import { lesReponses, SANS_ISSUE } from '../../../scripts/reponses-du-circuit.mj
|
|
|
13
13
|
import { WorkflowNotFoundError, WorkflowUpdateFailedError } from '@temporalio/client';
|
|
14
14
|
import { ApplicationFailure, defaultPayloadConverter, WorkflowExecutionAlreadyStartedError, } from '@temporalio/common';
|
|
15
15
|
import { fileDuProjet } from '../installation.js';
|
|
16
|
+
/**
|
|
17
|
+
* The workflows a page of a list of the server gives at most. The server pages by 1000 by default,
|
|
18
|
+
* and a page of circuits, each with its memo, passes the 4 MB a gRPC message of the client takes
|
|
19
|
+
* (« Received message larger than max », which the client retries until its deadline, read as
|
|
20
|
+
* « Temporal ne répond pas en 5 s »): every list of the frame asks for pages of PAGE.
|
|
21
|
+
*/
|
|
22
|
+
export const PAGE = 100;
|
|
16
23
|
import { ARRETER, CIRCUIT, DEPUIS, ETENDRE, idDuCircuit, L_ETAT, REFUS_DU_VALIDATEUR, REPRENDRE, } from './contrat.js';
|
|
17
24
|
/** Starts the circuit of <entree> on the task queue <file>, or leaves the one that runs: its id. */
|
|
18
25
|
export async function demarrerLeCircuit(client, entree, file) {
|
|
@@ -215,7 +222,10 @@ export async function finDuCircuit(client, racine, ticket) {
|
|
|
215
222
|
export async function lireLesCircuits(client, racine, { integres = false } = {}) {
|
|
216
223
|
const prefixe = idDuCircuit(racine, '');
|
|
217
224
|
const lus = [];
|
|
218
|
-
for await (const w of client.workflow.list({
|
|
225
|
+
for await (const w of client.workflow.list({
|
|
226
|
+
query: `WorkflowType = '${CIRCUIT}'`,
|
|
227
|
+
pageSize: PAGE,
|
|
228
|
+
})) {
|
|
219
229
|
if (w.workflowId.startsWith(prefixe)) {
|
|
220
230
|
lus.push(w);
|
|
221
231
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/temporal/circuit/client.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,gGAAgG;AAChG,mGAAmG;AACnG,8FAA8F;AAC9F,kGAAkG;AAClG,kGAAkG;AAClG,+FAA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,OAAO,EAAE,IAAI,EAAE,OAAO,IAAI,EAAE;YAC5B,IAAI,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI;YACvF,MAAM,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,CAAC;YAClC,UAAU;YACV,SAAS,EAAE,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC;YACjC,OAAO;YACP,GAAG,EAAE,CAAC,CAAC,KAAK;YACZ,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,CAAC;YACxB,OAAO;YACP,GAAG,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI;SAChD,CAAC,CAAC;IACL,CAAC;IACD,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;AACpE,CAAC"}
|
|
@@ -91,7 +91,11 @@ async function principal(args) {
|
|
|
91
91
|
process.stdout.write(r.change
|
|
92
92
|
? `temporal : ${r.pose ? 'programme posé' : 'programme à jour'} (${r.programme}) ; ` +
|
|
93
93
|
`unités écrites : ${r.unites.join(', ') || 'aucune'} ; ` +
|
|
94
|
-
`appliquées : ${r.appliquees.join(', ') || 'aucune'}
|
|
94
|
+
`appliquées : ${r.appliquees.join(', ') || 'aucune'}` +
|
|
95
|
+
(r.compactage
|
|
96
|
+
? ` ; base compactée : ${r.compactage.avant} octets avant, ${r.compactage.apres} après`
|
|
97
|
+
: '') +
|
|
98
|
+
'.\n'
|
|
95
99
|
: 'temporal : l’installation est à jour, rien ne change.\n');
|
|
96
100
|
return 0;
|
|
97
101
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commande.js","sourceRoot":"","sources":["../../src/temporal/commande.ts"],"names":[],"mappings":";AACA,gEAAgE;AAChE,EAAE;AACF,sGAAsG;AACtG,8FAA8F;AAC9F,+FAA+F;AAC/F,mGAAmG;AACnG,6GAA6G;AAC7G,EAAE;AACF,qGAAqG;AACrG,EAAE;AACF,+FAA+F;AAC/F,mGAAmG;AACnG,oGAAoG;AACpG,sHAAsH;AACtH,kGAAkG;AAClG,UAAU;AACV,+FAA+F;AAC/F,uGAAuG;AACvG,0FAA0F;AAC1F,4FAA4F;AAC5F,2BAA2B;AAC3B,oGAAoG;AACpG,oGAAoG;AACpG,mGAAmG;AACnG,gGAAgG;AAChG,iGAAiG;AACjG,6EAA6E;AAC7E,mEAAmE;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,SAAS,EACT,OAAO,EACP,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,KAAK,GACT,+FAA+F;IAC/F,4FAA4F,CAAC;AAE/F,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC;AAE1F,sEAAsE;AACtE,SAAS,IAAI,CAAC,IAAc;IAC1B,MAAM,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC;IAChC,IAAI,MAAM,KAAK,WAAW,IAAI,MAAM,KAAK,MAAM,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;QACvE,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,OAAO,GAA2B,EAAE,CAAC;IAC3C,MAAM,IAAI,GAAG,K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AC,UAAU,CAAC,KAAK,QAAQ;gBACvF,CAAC,CAAC,EAAE,CAAC;YACP,KAAK;QACT,CAAC,CAAC,yDAAyD,CAC9D,CAAC;IACF,OAAO,CAAC,CAAC;AACX,CAAC;AAED,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CACnC,IAAI,CAAC,EAAE;IACL,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;AAC1B,CAAC,EACD,CAAC,CAAU,EAAE,EAAE;IACb,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACxE,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC,CACF,CAAC"}
|
|
@@ -96,6 +96,18 @@ export interface OptionsDInstallation extends OptionsDuProgramme {
|
|
|
96
96
|
outil?: (version: string) => string;
|
|
97
97
|
/** The path of an account's tool, or null (`trouverDansLePath`). */
|
|
98
98
|
trouver?: (nom: string) => string | null;
|
|
99
|
+
/**
|
|
100
|
+
* The tickets whose circuit runs on the server (`circuitDuTicket`, status Running); none when the
|
|
101
|
+
* server does not answer (`circuitsEnVolDuServeur`).
|
|
102
|
+
*/
|
|
103
|
+
circuitsEnVol?: () => string[];
|
|
104
|
+
/** Compacts the database file <base> and gives its size before and after (`compacterLaBase`). */
|
|
105
|
+
compacter?: (base: string) => Compactage;
|
|
106
|
+
}
|
|
107
|
+
/** The size of the database before and after its compaction, in bytes. */
|
|
108
|
+
export interface Compactage {
|
|
109
|
+
avant: number;
|
|
110
|
+
apres: number;
|
|
99
111
|
}
|
|
100
112
|
/** What the installation did. */
|
|
101
113
|
export interface RapportDInstallation {
|
|
@@ -108,7 +120,15 @@ export interface RapportDInstallation {
|
|
|
108
120
|
appliquees: string[];
|
|
109
121
|
/** Whether anything changed. */
|
|
110
122
|
change: boolean;
|
|
123
|
+
/** The size of the database before and after its compaction; absent when it was not compacted. */
|
|
124
|
+
compactage?: Compactage;
|
|
111
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* Compacts the SQLite database <base> (`VACUUM`, by the runtime's `node:sqlite`, no tool of the
|
|
128
|
+
* PATH), its journal folded into it first; its size before and after. SQLite's own message refuses
|
|
129
|
+
* a file that is not a database.
|
|
130
|
+
*/
|
|
131
|
+
export declare function compacterLaBase(base: string): Compactage;
|
|
112
132
|
/**
|
|
113
133
|
* Lays down the program `temporal` of the pin at the places <lieux>, its archive checked against
|
|
114
134
|
* its pinned sum, unless it lies there already; whether it laid it down.
|
|
@@ -132,4 +152,4 @@ export declare function travailleurPerime({ lieux, epingle, node, trouver, }: {
|
|
|
132
152
|
trouver?: (nom: string) => string | null;
|
|
133
153
|
}): boolean;
|
|
134
154
|
/** Installs the account's Temporal at the places <lieux> (see the header). */
|
|
135
|
-
export declare function installer({ lieux, systemctl, epingle, plateforme, obtenir, node, outil, travailleur, trouver, }: OptionsDInstallation): Promise<RapportDInstallation>;
|
|
155
|
+
export declare function installer({ lieux, systemctl, epingle, plateforme, obtenir, node, outil, travailleur, trouver, circuitsEnVol, compacter, }: OptionsDInstallation): Promise<RapportDInstallation>;
|
|
@@ -9,10 +9,18 @@
|
|
|
9
9
|
// refused before anything is laid down, the expected and the read sums named.
|
|
10
10
|
// - The server is Temporal's development server (`temporal server start-dev`), on the loopback
|
|
11
11
|
// only, its state in a file of the machine (~/.local/share/grillhouse/temporal/temporal.db), the
|
|
12
|
-
// frame's search attributes registered, its web interface on Temporal's port plus 1000.
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
12
|
+
// frame's search attributes registered, its web interface on Temporal's port plus 1000. Under
|
|
13
|
+
// load it takes the processor first (`CPUWeight=1000` against the workers' 100, no cap) and opens
|
|
14
|
+
// its database in WAL with a normal synchronous write (`--sqlite-pragma`). Its namespace
|
|
15
|
+
// `default` keeps a closed workflow 7 days (RETENTION), set at each start of the unit once the
|
|
16
|
+
// server answers (`temporal operator namespace update --retention`), where start-dev gives 24 h:
|
|
17
|
+
// a circuit stopped for more than 7 days reopens by `--depuis`.
|
|
18
|
+
// - Applying the server's unit (its text changed, or the program newly laid down) asks the server
|
|
19
|
+
// for the circuits in flight before any writing and refuses, naming their tickets, when there is
|
|
20
|
+
// one (`circuitsEnVol`; a server that does not answer has none); then stops the server, compacts
|
|
21
|
+
// its database (`compacterLaBase`, `VACUUM` by the runtime's `node:sqlite`) and starts it again,
|
|
22
|
+
// and the report says the sizes before and after. A failed compaction starts the server again and
|
|
23
|
+
// refuses the installation by its name, the unit not recorded as applied.
|
|
16
24
|
// - Each worker runs the frame's worker (dist/temporal/travailleur.js) on its task queue:
|
|
17
25
|
// `grillhouse-projet-<projet>` for the project's, `grillhouse-machine` for the machine's. A
|
|
18
26
|
// project that names its version of the frame (`grillhouse.outil`, scripts/aiguillage.mjs) runs
|
|
@@ -44,7 +52,8 @@
|
|
|
44
52
|
// trial home, never in the account's systemd.
|
|
45
53
|
import { spawnSync } from 'node:child_process';
|
|
46
54
|
import { createHash } from 'node:crypto';
|
|
47
|
-
import { chmodSync, existsSync, mkdirSync, mkdtempSync, readFileSync, realpathSync, renameSync, rmSync, writeFileSync, } from 'node:fs';
|
|
55
|
+
import { chmodSync, existsSync, mkdirSync, mkdtempSync, readFileSync, realpathSync, renameSync, rmSync, statSync, writeFileSync, } from 'node:fs';
|
|
56
|
+
import { createRequire } from 'node:module';
|
|
48
57
|
import os from 'node:os';
|
|
49
58
|
import path from 'node:path';
|
|
50
59
|
import { fileURLToPath } from 'node:url';
|
|
@@ -65,8 +74,12 @@ export const EPINGLE = {
|
|
|
65
74
|
};
|
|
66
75
|
/** The port of the account's server, Temporal's, on the loopback. */
|
|
67
76
|
const PORT_DU_SERVEUR = 7233;
|
|
68
|
-
/** How long the server keeps a closed workflow:
|
|
69
|
-
const RETENTION = '
|
|
77
|
+
/** How long the server keeps a closed workflow: 7 days. */
|
|
78
|
+
const RETENTION = '168h';
|
|
79
|
+
/** The processor weight of the server's unit, above the passes' and the workers' (100). */
|
|
80
|
+
const POIDS_DU_SERVEUR = 1000;
|
|
81
|
+
/** The pragmas of SQLite the server opens its database with: WAL, the synchronous write WAL advises. */
|
|
82
|
+
const PRAGMAS_DU_SERVEUR = ['journal_mode=wal', 'synchronous=NORMAL'];
|
|
70
83
|
/** The account's tools a circuit runs, whose folders each worker's PATH names. */
|
|
71
84
|
const OUTILS_DU_COMPTE = ['node', 'npm', 'claude', 'bd', 'gh'];
|
|
72
85
|
// The folders of the system, after the tools' own.
|
|
@@ -144,6 +157,7 @@ export function textesDesUnites(lieux, { version, node, travailleur, chemin, out
|
|
|
144
157
|
'start-dev',
|
|
145
158
|
'--db-filename',
|
|
146
159
|
donnees,
|
|
160
|
+
...PRAGMAS_DU_SERVEUR.flatMap(p => ['--sqlite-pragma', p]),
|
|
147
161
|
'--ip',
|
|
148
162
|
'127.0.0.1',
|
|
149
163
|
'--port',
|
|
@@ -185,7 +199,11 @@ export function textesDesUnites(lieux, { version, node, travailleur, chemin, out
|
|
|
185
199
|
`ExecStart=${[node, travailleur, '--file', file].map(arg).join(' ')}`,
|
|
186
200
|
];
|
|
187
201
|
return {
|
|
188
|
-
[UNITE_DU_SERVEUR]: service(`Grillhouse : le serveur Temporal du compte (temporal ${version})`, [
|
|
202
|
+
[UNITE_DU_SERVEUR]: service(`Grillhouse : le serveur Temporal du compte (temporal ${version})`, [
|
|
203
|
+
`CPUWeight=${POIDS_DU_SERVEUR}`,
|
|
204
|
+
`ExecStart=${serveur.map(arg).join(' ')}`,
|
|
205
|
+
`ExecStartPost=/bin/sh -c ${arg(retenir)}`,
|
|
206
|
+
]),
|
|
189
207
|
[uniteDuProjet(lieux.racine)]: service(`Grillhouse : le travailleur du projet ${nomDuProjet(lieux.racine)}`, travailleurSur(fileDuProjet(lieux.racine)), apres),
|
|
190
208
|
[UNITE_DE_LA_MACHINE]: service('Grillhouse : le travailleur de la machine', travailleurSur(FILE_DE_LA_MACHINE), apres),
|
|
191
209
|
};
|
|
@@ -252,6 +270,54 @@ async function telecharger(url) {
|
|
|
252
270
|
}
|
|
253
271
|
return Buffer.from(await r.arrayBuffer());
|
|
254
272
|
}
|
|
273
|
+
/**
|
|
274
|
+
* Compacts the SQLite database <base> (`VACUUM`, by the runtime's `node:sqlite`, no tool of the
|
|
275
|
+
* PATH), its journal folded into it first; its size before and after. SQLite's own message refuses
|
|
276
|
+
* a file that is not a database.
|
|
277
|
+
*/
|
|
278
|
+
export function compacterLaBase(base) {
|
|
279
|
+
const { DatabaseSync } = createRequire(import.meta.url)('node:sqlite');
|
|
280
|
+
const avant = statSync(base).size;
|
|
281
|
+
const db = new DatabaseSync(base);
|
|
282
|
+
try {
|
|
283
|
+
db.exec('PRAGMA wal_checkpoint(TRUNCATE)');
|
|
284
|
+
db.exec('VACUUM');
|
|
285
|
+
}
|
|
286
|
+
finally {
|
|
287
|
+
db.close();
|
|
288
|
+
}
|
|
289
|
+
return { avant, apres: statSync(base).size };
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* The tickets whose circuit runs on the account's server: `temporal workflow list` of the program
|
|
293
|
+
* <programme>, the workflows `circuitDuTicket` Running (their id `circuit:<racine>:<ticket>`). A
|
|
294
|
+
* server that does not answer, or an answer that does not read, is no circuit in flight.
|
|
295
|
+
*/
|
|
296
|
+
function circuitsEnVolDuServeur(programme) {
|
|
297
|
+
const r = spawnSync(programme, [
|
|
298
|
+
'workflow',
|
|
299
|
+
'list',
|
|
300
|
+
'--address',
|
|
301
|
+
`127.0.0.1:${PORT_DU_SERVEUR}`,
|
|
302
|
+
'--query',
|
|
303
|
+
"WorkflowType='circuitDuTicket' AND ExecutionStatus='Running'",
|
|
304
|
+
'--output',
|
|
305
|
+
'json',
|
|
306
|
+
], { encoding: 'utf8', timeout: 30_000 });
|
|
307
|
+
if (r.status !== 0) {
|
|
308
|
+
return [];
|
|
309
|
+
}
|
|
310
|
+
try {
|
|
311
|
+
const lus = JSON.parse(r.stdout);
|
|
312
|
+
const ids = (Array.isArray(lus) ? lus : [])
|
|
313
|
+
.map((w) => String(w.workflowId ?? w.execution?.workflowId ?? ''))
|
|
314
|
+
.filter(Boolean);
|
|
315
|
+
return [...new Set(ids.map(id => id.slice(id.lastIndexOf(':') + 1)))].sort();
|
|
316
|
+
}
|
|
317
|
+
catch {
|
|
318
|
+
return [];
|
|
319
|
+
}
|
|
320
|
+
}
|
|
255
321
|
// Lays down the program `temporal` of the archive <contenu> as <programme>: extracted under a
|
|
256
322
|
// directory beside its own, then renamed into its own, so that a broken extraction lays nothing.
|
|
257
323
|
function poser(contenu, programme) {
|
|
@@ -475,7 +541,7 @@ export function travailleurPerime({ lieux, epingle = EPINGLE, node, trouver, })
|
|
|
475
541
|
}
|
|
476
542
|
}
|
|
477
543
|
/** Installs the account's Temporal at the places <lieux> (see the header). */
|
|
478
|
-
export async function installer({ lieux, systemctl, epingle = EPINGLE, plateforme = plateformeDe(), obtenir = telecharger, node = process.execPath, outil = v => installerLOutil(v, { cache: cacheDesOutils(lieux.maison) }).dossier, travailleur, trouver = nom => trouverDansLePath(nom), }) {
|
|
544
|
+
export async function installer({ lieux, systemctl, epingle = EPINGLE, plateforme = plateformeDe(), obtenir = telecharger, node = process.execPath, outil = v => installerLOutil(v, { cache: cacheDesOutils(lieux.maison) }).dossier, travailleur, trouver = nom => trouverDansLePath(nom), circuitsEnVol = () => circuitsEnVolDuServeur(cheminsDe(lieux, epingle.version).programme), compacter = compacterLaBase, }) {
|
|
479
545
|
const { donnees, appliquees: fichierDesAppliquees } = cheminsDe(lieux, epingle.version);
|
|
480
546
|
// Every refusal before any writing: the archive, the account's tools, the project's tools , then the worker of the published version, which lays that
|
|
481
547
|
// version down in its cache first.
|
|
@@ -489,6 +555,17 @@ export async function installer({ lieux, systemctl, epingle = EPINGLE, plateform
|
|
|
489
555
|
});
|
|
490
556
|
const textes = textesDuProjet(lieux, tous);
|
|
491
557
|
const pose = contenu !== null;
|
|
558
|
+
const deja = lireLesAppliquees(fichierDesAppliquees);
|
|
559
|
+
const enAttente = Object.keys(textes).filter(n => deja[n] !== sommeDe(textes[n]));
|
|
560
|
+
// The server's unit is applied when a program is laid down, or when it is still to apply.
|
|
561
|
+
const serveurApplique = pose || enAttente.includes(UNITE_DU_SERVEUR);
|
|
562
|
+
// Before any writing: a circuit in flight refuses the stop of the server.
|
|
563
|
+
if (serveurApplique) {
|
|
564
|
+
const enVol = circuitsEnVol();
|
|
565
|
+
if (enVol.length > 0) {
|
|
566
|
+
throw new Error(`temporal : l'unité du serveur ne s'applique pas sous un circuit en vol (${enVol.join(', ')}) ; rien n'est écrit, à rejouer quand ils sont arrêtés.`);
|
|
567
|
+
}
|
|
568
|
+
}
|
|
492
569
|
if (contenu) {
|
|
493
570
|
poser(contenu, programme);
|
|
494
571
|
}
|
|
@@ -503,14 +580,27 @@ export async function installer({ lieux, systemctl, epingle = EPINGLE, plateform
|
|
|
503
580
|
writeFileSync(f, texte);
|
|
504
581
|
unites.push(nom);
|
|
505
582
|
}
|
|
506
|
-
const deja = lireLesAppliquees(fichierDesAppliquees);
|
|
507
|
-
const enAttente = Object.keys(textes).filter(n => deja[n] !== sommeDe(textes[n]));
|
|
508
583
|
// A program newly laid down starts again the units of this project, the machine's when it is
|
|
509
584
|
// its own.
|
|
510
585
|
const appliquees = pose ? Object.keys(textes) : enAttente;
|
|
586
|
+
let compactage;
|
|
511
587
|
if (appliquees.length) {
|
|
512
588
|
systemd(systemctl, ['daemon-reload']);
|
|
513
|
-
systemd(systemctl, ['enable', ...unitesDe(lieux.racine)]);
|
|
589
|
+
systemd(systemctl, ['enable', ...unitesDe(lieux.racine).filter(n => appliquees.includes(n))]);
|
|
590
|
+
if (serveurApplique) {
|
|
591
|
+
// The server stopped, its database compacted, then every unit applied started again; without
|
|
592
|
+
// a database file there is nothing to compact, and the server is not stopped.
|
|
593
|
+
if (existsSync(donnees)) {
|
|
594
|
+
systemd(systemctl, ['stop', UNITE_DU_SERVEUR]);
|
|
595
|
+
try {
|
|
596
|
+
compactage = compacter(donnees);
|
|
597
|
+
}
|
|
598
|
+
catch (e) {
|
|
599
|
+
systemd(systemctl, ['start', UNITE_DU_SERVEUR]);
|
|
600
|
+
throw new Error(`temporal : le compactage de la base ${donnees} échoue : ${e instanceof Error ? e.message : String(e)} ; le serveur est redémarré, l'unité sera appliquée au prochain passage.`, { cause: e });
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
514
604
|
systemd(systemctl, ['restart', ...appliquees]);
|
|
515
605
|
mkdirSync(path.dirname(fichierDesAppliquees), { recursive: true });
|
|
516
606
|
// The sums of this project's units, beside those of the other projects of the account.
|
|
@@ -526,6 +616,7 @@ export async function installer({ lieux, systemctl, epingle = EPINGLE, plateform
|
|
|
526
616
|
unites,
|
|
527
617
|
appliquees,
|
|
528
618
|
change: pose || unites.length > 0 || appliquees.length > 0,
|
|
619
|
+
...(compactage ? { compactage } : {}),
|
|
529
620
|
};
|
|
530
621
|
}
|
|
531
622
|
//# sourceMappingURL=installation.js.map
|