@roomi-fields/grillhouse 0.33.1 → 0.34.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/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +81 -0
- package/cadre/templates/projet/CLAUDE.md +9 -3
- package/charte.md +23 -6
- package/dist/temporal/acte.d.ts +7 -0
- package/dist/temporal/acte.js +19 -2
- package/dist/temporal/acte.js.map +1 -1
- package/dist/temporal/circuit/activites.d.ts +3 -1
- package/dist/temporal/circuit/activites.js +25 -1
- package/dist/temporal/circuit/activites.js.map +1 -1
- package/dist/temporal/circuit/appel.d.ts +19 -0
- package/dist/temporal/circuit/appel.js +93 -0
- package/dist/temporal/circuit/appel.js.map +1 -0
- package/dist/temporal/circuit/client.d.ts +7 -0
- package/dist/temporal/circuit/client.js +20 -0
- package/dist/temporal/circuit/client.js.map +1 -1
- package/dist/temporal/circuit/commande.js +27 -87
- package/dist/temporal/circuit/commande.js.map +1 -1
- package/dist/temporal/circuit/contrat.d.ts +19 -0
- package/dist/temporal/circuit/contrat.js +2 -0
- package/dist/temporal/circuit/contrat.js.map +1 -1
- package/dist/temporal/circuit/deroule.js +86 -11
- package/dist/temporal/circuit/deroule.js.map +1 -1
- package/dist/temporal/file/activites.d.ts +3 -0
- package/dist/temporal/file/activites.js +9 -0
- package/dist/temporal/file/activites.js.map +1 -1
- package/dist/temporal/file/contrat.d.ts +58 -0
- package/dist/temporal/file/deroule.d.ts +8 -1
- package/dist/temporal/file/deroule.js +100 -2
- package/dist/temporal/file/deroule.js.map +1 -1
- package/dist/temporal/nuits/contrat.d.ts +2 -0
- package/dist/temporal/nuits/deroule.js +3 -0
- package/dist/temporal/nuits/deroule.js.map +1 -1
- package/dist/temporal/places/activites.d.ts +8 -0
- package/dist/temporal/places/activites.js +12 -1
- package/dist/temporal/places/activites.js.map +1 -1
- package/dist/temporal/places/client.d.ts +8 -1
- package/dist/temporal/places/client.js +25 -2
- package/dist/temporal/places/client.js.map +1 -1
- package/dist/temporal/places/contrat.d.ts +35 -3
- package/dist/temporal/places/contrat.js +5 -4
- package/dist/temporal/places/contrat.js.map +1 -1
- package/dist/temporal/places/deroule.js +55 -9
- package/dist/temporal/places/deroule.js.map +1 -1
- package/dist/temporal/tickets/activites.d.ts +3 -0
- package/dist/temporal/tickets/activites.js +73 -4
- package/dist/temporal/tickets/activites.js.map +1 -1
- package/dist/temporal/tickets/contrat.d.ts +31 -0
- package/dist/temporal/tickets/deroule.js +61 -10
- package/dist/temporal/tickets/deroule.js.map +1 -1
- package/docs/ARCHITECTURE.md +225 -57
- package/docs/CADRE.md +6 -1
- package/docs/INTERFACE.md +24 -8
- package/hooks/crochet.mjs +17 -2
- package/hooks/hooks.json +24 -0
- package/package.json +1 -1
- package/scripts/activites.mjs +77 -14
- package/scripts/aiguillage.mjs +2 -0
- package/scripts/attente-a-l-arret.mjs +141 -0
- package/scripts/attente-au-tour.mjs +32 -16
- package/scripts/avancement.mjs +5 -3
- package/scripts/branche-de-nuit.mjs +63 -3
- package/scripts/ci-des-branches.mjs +4 -2
- package/scripts/circuit.mjs +57 -4
- package/scripts/circuits-du-serveur.mjs +34 -1
- package/scripts/commandes-composees.mjs +11 -4
- package/scripts/copies-finies.mjs +43 -29
- package/scripts/crochets.mjs +1 -1
- package/scripts/dette.mjs +55 -4
- package/scripts/disque-des-copies.d.mts +28 -0
- package/scripts/disque-des-copies.mjs +155 -0
- package/scripts/droits.mjs +2 -0
- package/scripts/etapes.mjs +6 -4
- package/scripts/faits-du-circuit.mjs +24 -0
- package/scripts/file-des-tickets.d.mts +16 -0
- package/scripts/file-des-tickets.mjs +65 -7
- package/scripts/gardes-du-cadre.mjs +4 -2
- package/scripts/integration/file.mjs +308 -10
- package/scripts/jointure.d.ts +41 -2
- package/scripts/langages/cargo/commandes.mjs +81 -12
- package/scripts/langages/cargo/composants.mjs +12 -4
- package/scripts/langages/cargo/executables-de-tests.mjs +118 -0
- package/scripts/langages/cargo/exemples.mjs +17 -3
- package/scripts/langages/cargo/index.mjs +8 -3
- package/scripts/langages/cargo/migrations/0.28.4-tailles-des-tests.mjs +2 -2
- package/scripts/langages/cargo/migrations/0.34.0-executables-de-tests.mjs +35 -0
- package/scripts/langages/cargo/squelette.mjs +8 -3
- package/scripts/langages/cargo/tailles-des-tests.mjs +68 -6
- package/scripts/langages/cargo/tests-de-head.mjs +12 -9
- package/scripts/langages/cargo/verdict.mjs +40 -14
- package/scripts/langages/python/commandes.mjs +14 -2
- package/scripts/langages/python/index.mjs +12 -4
- package/scripts/langages/python/verdict.mjs +8 -1
- package/scripts/langages/typescript/index.mjs +9 -2
- package/scripts/langages/typescript/resume-du-lanceur.mjs +92 -0
- package/scripts/langages/typescript/tests.mjs +1 -1
- package/scripts/langages/typescript/verdict.mjs +4 -60
- package/scripts/langages/typescript/verifier.mjs +1 -1
- package/scripts/langages/typescript/vitest-config/changements.mjs +12 -7
- package/scripts/langages/typescript/vitest-config/lances.mjs +45 -0
- package/scripts/langages/typescript/vitest-config/machine.setup.mjs +1 -0
- package/scripts/messages-non-lus.mjs +166 -0
- package/scripts/mesure-de-la-machine.mjs +7 -4
- package/scripts/migrations-des-gardes.mjs +179 -0
- package/scripts/places-de-la-machine.mjs +44 -40
- package/scripts/places-du-serveur.mjs +82 -14
- package/scripts/plafond-de-la-machine.d.mts +18 -0
- package/scripts/plafond-de-la-machine.mjs +45 -0
- package/scripts/recommencer.d.mts +4 -0
- package/scripts/recommencer.mjs +29 -0
- package/scripts/regles-des-places.d.mts +35 -0
- package/scripts/regles-des-places.mjs +82 -1
- package/scripts/resultats.mjs +38 -4
- package/scripts/retirer-les-copies-finies.mjs +11 -7
- package/scripts/seances.mjs +1 -1
- package/scripts/services-du-noyau.mjs +1 -0
- package/scripts/sous-commandes.mjs +2 -0
- package/scripts/superviseur.mjs +235 -56
- package/scripts/tableau.mjs +468 -267
- package/scripts/taches-du-graphe.mjs +49 -8
- package/scripts/ticket-du-circuit.mjs +25 -0
- package/scripts/transitions.d.mts +27 -1
- package/scripts/transitions.mjs +96 -4
- package/scripts/verrou-de-machine.mjs +41 -17
- package/skills/explorateur/SKILL.md +8 -2
- package/skills/pitmaster/SKILL.md +18 -15
- package/skills/pitmaster/references/tour.md +3 -1
- package/skills/questionneur/SKILL.md +5 -1
- package/skills/testwriter/SKILL.md +32 -6
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,87 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.34.1] - 2026-11-12
|
|
10
|
+
|
|
11
|
+
- **Pruning the debt no longer empties the debt of the guard of the migrations of the guards** (grillhouse-7jk): `npm run grillhouse:dette:elaguer`, run in a copy whose frame's scripts were another tree's (its `node_modules` linked to the main tree), emptied the whole section `migrations-des-gardes` of `grillhouse-dette.json`: the guard measures nothing outside the frame's own scripts, and pruning read that nothing as every finding corrected; the guard then turned red at the CI. As a baseline (ESLint, Betterer) only moves on what it measured, the guard no longer judges nor prunes its debt where it does not measure. **Action for projects**: none.
|
|
12
|
+
|
|
13
|
+
- **A restart of the worker for an update no longer stops the circuits in flight** (grillhouse-63z): on 2026-11-12, `npx grillhouse temporal installer` (the update to 0.34.0) restarted the workers, and the acts in flight of two circuits failed « acte … annulé » with no attempt again, each circuit raising a question « inattendu » that a mere `--reprendre` lifted. As Temporal advises for the stop of a worker (its activities cancelled with `WORKER_SHUTDOWN`, failed so that the server tries them again at once), an act cancelled by the stop of its worker now fails as one Temporal tries again on the next worker (`echecDeLAnnulation`, src/temporal/acte.ts), its session resumed as after a dead worker; a cancellation by the supervisor or a timeout still fails for good. **Action for projects**: none.
|
|
14
|
+
|
|
15
|
+
- **A stop « à repasser » whose replays are spent goes up with its question** (grillhouse-xxvc): on 2026-11-12, a circuit whose queue could not read the CI stopped « a-repasser », played it again, then, its replays spent, failed to write its stop (« Cannot read properties of null (reading 'question') »): the stop had no question, being a gesture, so the supervisor received a question « inattendu » instead of the real one. As a CI calls a person once its retries are spent, « a-repasser » now carries its question in the list of the questions (`MONTEES`, scripts/etapes.mjs), asked only once the circuit has played it again as often as it may. **Action for projects**: none.
|
|
16
|
+
|
|
17
|
+
- **The verification of a Rust or Python project names each red task** (grillhouse-d1a): `npm run verifier` of a cargo project exited 1 with no line naming the red task, its log ending on cargo deny's « advisories ok » (reported by OSD, 2026-11-12), so a red under load could only be told by replaying each task by hand. As the pass of the module typescript names each red task from Turborepo's summary, the common runner of the graph's tasks (`lancerLesTaches`) now always asks for the summary and names, on a red run, each task whose code is not 0, « ⛔ <tâche> (code N) » (`garderLesResumes` gives each task's verdict); the `verifier` of cargo names its cargo deny when red, and those of cargo and python end on « ⛔ rouge. ». **Action for projects**: none.
|
|
18
|
+
|
|
19
|
+
- **A workflow pushed on main with a filter on paths no longer passes for the CI of the ticket branches** (grillhouse-snn): osc-bridge's `docs.yml` (a push on `[main]` with `paths`) made the frame read the project as already listening to `agent/**`, so the update of 0.33.0 did not add `agent/**` to its `ci.yml`, and the pre-push hook refused main for want of a CI on a ticket branch. As GitHub asks both filters, the reading of a workflow's push (`pousseeSurLaBranche`, scripts/integration/file.mjs) now lets the branch filter decide first: a branch it leaves out never runs, whatever the paths; a filter on the paths still counts a branch it takes in as one that runs. The update no longer adds `agent/**` to a workflow filtered on paths, which is no CI of the lots. **Action for projects**: a project whose `ci.yml` the update left without `agent/**` adds it to `on.push.branches` (the opening of a session says so).
|
|
20
|
+
|
|
21
|
+
- **The line of a ticket in direct no longer says who claimed it** (grillhouse-7td): « ✎ <number> <subject> · en direct · <assignee> » named the account that claimed the ticket, always the same one, since the owner and his agents are the only ones to work. As the owner asks, the line now ends on « · en direct ». **Action for projects**: none.
|
|
22
|
+
|
|
23
|
+
- **The board shows under AGENTS only the tickets at work, and its head counts the queue of the circuit apart from the direct one** (grillhouse-d7y): a ticket labelled `direct` had its line « ✎ … · en direct » as soon as it was open, so three tickets waiting their turn looked worked at once, and « en attente » in the head counted only the circuit's ready tickets without saying so. As the owner asks, a direct ticket now has its line only once claimed (several at once, each its line), and an open one counts in a new state, « en direct — mené hors du circuit, pas encore pris » (`fileDirecte`). The head of one project reads « ▶ <n> en cours · <n> bloqués · <n> faits », then « ⏭ file : <n> en circuit · <n> en direct »; a project's line among several, and the status line, « ▶ <n> en cours · ⏭ <n> · ✎ <n> · <n> faits ». **Action for projects**: none.
|
|
24
|
+
|
|
25
|
+
- **FAITS AUJOURD'HUI says the way of each ticket done, its duration and its tokens** (grillhouse-592): every line of the day's done tickets began with ✓ and showed its time and tokens only when its agents had some, so a ticket led directly looked like a circuit and stood bare. As the owner's maquette asks, the sign now says the way: ● a full circuit, ○ a short one (through 1.1 Geste mécanique, read from the launch of object `geste` in the circuit's kept results, `voiesDesCircuits`), ✎ a direct ticket (labelled `direct`, or closed with no circuit). Every line carries « <duration> · <tokens> »: a circuit's working time, a direct ticket's time from its claim to its close (« — » without a claim), and the tokens of the agents the register ties to the ticket, the supervisor's staying out. The day's total in the title is unchanged. **Action for projects**: none.
|
|
26
|
+
|
|
27
|
+
## [0.34.0] - 2026-11-12
|
|
28
|
+
|
|
29
|
+
- **The board shows the night under way, the tickets worked in direct, and the memory of the poste** (grillhouse-bf5.9): a night that ran loaded the machine without a line on the board, and a ticket claimed with no circuit stood as a circuit at step 1, « attend une place ». As a dashboard shows every job that holds a machine, AGENTS now shows, under the line of the places, the night under way, « 🌙 nuit · <project> · depuis <duration> », read by the query of the workflow of the nights (`nuitDuServeur`, `scripts/circuits-du-serveur.mjs`; the view `etatDesNuits` gains `depuis`, when the night under way started), a reading that fails showing none; and each ticket claimed with no circuit on the server that holds it, a mother of it or a ticket under it (one that runs or waits for an answer; a circuit the supervisor stopped holds none), and each ticket labelled `direct`, open or claimed, once, out of the steps, « ✎ <number> <subject> · en direct · <assignee> », from its claim to its close (none while the circuits do not read). The line of the places says the available memory of the total, « mémoire 15/30 Go » (`memoireTotaleGo` of `etatDesPlaces`; the trial measure `GRILLHOUSE_MESURE_D_ESSAI` gains `memoireTotale`). Without a marker file, the board's first reading sets the day's marker to midnight and keeps it, so that only `grillhouse newday` moves it; a ticket waiting for a place turns yellow, as the other waits. A ticket led out of the circuit carries the label `direct`: the queue of the tickets never starts it, even labelled `circuit` (a label `bd create --parent` copies from its epic), as the charter's three ways of a ticket say. **Action for projects**: label `direct` a ticket led by hand.
|
|
30
|
+
|
|
31
|
+
- **A queue of the tickets started before the journal of states replays again** (grillhouse-jye.5): the journal of states (grillhouse-4nr.20) added the activity `tracerLaFile` to the workflow of the queue of the tickets without Temporal's patching, so a history recorded before it no longer replayed (« Nondeterminism error: Activity machine does not handle this event: TimerStarted », the night of 2026-11-12), and a project's queue still running from before would fail at its next replay. As Temporal's versioning asks of a changed workflow, each line of the journal of the queue (a circuit started, a circuit ended) is now written under `patched('trace-de-la-file')`: a run recorded before the change replays without them, a new run writes them. **Action for projects**: none.
|
|
32
|
+
|
|
33
|
+
- **The testwriter decomposes a behaviour along the pyramid and plays the size guard before handing back** (grillhouse-d4n.6): the testwriter wrote big tests (git repositories mounted, a hook launched as a process) where the pyramid of sizes asks for the logic to be proved small, so the guard `tailles-des-tests` refused the big day test and the circuit looped (grillhouse-d4n.2, `attente-au-tour.spec.ts`). As Google's pyramid and Bazel's sizes want each test at the smallest size that proves its criterion, the skill now teaches to prove the logic by the interface of a module called in its process, to isolate the real launch in a night test only when the plan prescribes it, to take the interface from the plan or the package's `INTERFACE.md` (ending on BESOIN when none publishes the behaviour), and to play `npx grillhouse tailles-des-tests` before handing back, decomposing a refused big day test itself; its rights gain that command, with no wildcard, and no other role gains it. **Action for projects**: none.
|
|
34
|
+
|
|
35
|
+
- **An absent server of the places stays a red, a busy one a wait** (grillhouse-4nr.31.1): a server absent (its port refused) also exceeds its deadline, and the bridge exited 75 for it. After its attempts, the bridge now knocks on the port: refused, the server is absent, exit 1 and « requis sur le poste »; open, it is busy, exit 75. **Action for projects**: none.
|
|
36
|
+
- **A busy Temporal server is a wait, never a red** (grillhouse-4nr.31): under the load of the night (about 20 on 12 cores) the bridge to the places of the machine (`scripts/places-du-serveur.mjs`) failed its queries at once (« 4 DEADLINE_EXCEEDED: Deadline exceeded after 0.000s »), and every pass of the poste stopped red, a final pass of the circuit included. As Temporal's clients retry a transient failure, each call now gets its own deadline (8 s) and is played again after a growing pause while the server fails it transiently (gRPC codes 1, 4 and 14), three attempts at most; still failing, the bridge exits 75 (to be played again), which the caller turns into a wait of the machine, never a red. The wait for a place asks the server once a second instead of four times. **Action for projects**: none.
|
|
37
|
+
|
|
38
|
+
- **A test that judges a list of the repository complete plays in the circuit's targeted passes** (grillhouse-44b.17): since grillhouse-44b.15 a circuit's pass plays only the tests Vitest relates to its lot by import, and a test that reads files by their path to judge a list complete (the share of `scripts/` and `bin/`, the callers of each subcommand, the scripts the dead-code trial of the generator copies, the regular expressions of the circuit) never played there: its red reached the CI of the ticket's branch alone, five times in one night. As a target of Bazel declares its `data`, such a test now declares what it reads in the comment at its head, a line `// @lit <pattern> …`, each pattern a glob from the top of the repository, and every pass, targeted or measured against the last green, plays it when a file changed, added or removed falls under one of its patterns (`testsQuiDeclarent`, `scripts/langages/typescript/vitest-config/lances.mjs`); the general relation « read by path » stays out of the targeted pass. The frame's five such tests declare their reads. **Action for projects**: none; a project's test that reads a list of its repository may declare it the same way.
|
|
39
|
+
|
|
40
|
+
- **A question the cited piece settles no longer goes up to the supervisor** (grillhouse-d4n.3): the circuit raised a plan question that a fact decides (2026-11-09, grillhouse-ecf: criterion 3 said a `| head` pipe stayed refused, the cited test proved the opposite). As a code review settles what a verifiable fact decides and escalates only the arbitration, the explorateur's answer to a questionneur's question (aimed at a criterion, its piece a `file:line`) may now carry a `correction` (criterion, corrected text, the same piece, a literal extract of that line). The circuit accepts it only if the extract stands at the cited line of the copy and the piece is the question's: it then writes the corrected criterion in place of the old one in the description, names each correction with its piece and extract in the comment of the questionnement, and counts the question settled. Any other question (flou, intention, référence, règle), a command-and-output piece (never played again), a ticket piece, or an extract not found stays open and goes up. The consignes of the explorateur and the questionneur say to signal and correct such an inconsistency, and not to extend it to a real decision. **Action for projects**: none.
|
|
41
|
+
|
|
42
|
+
- **A stopped circuit can start over, and the proof of the red accepts committed code** (grillhouse-d4n.5): a resumed ticket whose developer's code was already in the copy could neither finish (the proof of the red found 0 red under `--reprendre`, `--depuis testwriter` and `--depuis developpeur`) nor start afresh (a fresh launch after `--arreter` is refused). As Temporal resets a workflow on request, `npx grillhouse circuit <ticket> --recommencer` now starts a circuit stopped on the supervisor's word over: its copy (with any work it carries) and its branch, sheets and journal are removed, the line names the copy removed, and the ticket goes back in the queue to start from the testwriter in a fresh copy; the ticket, its plan, criteria, comments and label stay. A circuit that runs is refused by its name, and the option goes alone (usage, exit 2 with `--reprendre`, `--depuis`, `--etendre` or `--arreter`). The refusal of a fresh launch after `--arreter` names it. The sign « the code is already in the copy » is also raised by production code committed on the copy's branch ahead of main, with or without the developer's sheet; a new lot whose code is not in the copy still demands its red. **Action for projects**: none.
|
|
43
|
+
|
|
44
|
+
- **The tree of HEAD's version of a Python file reuses the uv environment of the copy** (grillhouse-3e2.3.2): the proof of the red installed a whole environment under `<copie>.travail/avant-*` for each Python file, then threw it away. As uv reuses one environment per project (`UV_PROJECT_ENVIRONMENT`) and tox or nox one per session, the module python now gives the tree of a file of a package the folder of the copy's environments, `<copie>/.venv`, in `GRILLHOUSE_VENV_DE_LA_COPIE` (empty for a file out of every package); a pass that receives it gives uv `<value>/<package folder>`, else `<root>/.venv/<package folder>` as before, and still overwrites a `UV_PROJECT_ENVIRONMENT` of the caller. `uv run --locked` brings that environment in line with the tree's manifest and lock, so the test of HEAD imports the tree's code. **Action for projects**: none.
|
|
45
|
+
|
|
46
|
+
- **A red workflow of main after a lot entered wakes the supervisor** (grillhouse-bf5.7): the queue judged every workflow of the ticket's branch before main moved, but a workflow that runs on a push to main alone (SyntHub's « Deploy hosted server », 2026-11-03) turned red after the push and woke no one. As Zuul's post pipeline signals its failure and GitHub notifies a failed run of the default branch, the queue now, after the push of main, records a reading due (ticket, commit, expected workflows, time of the push; `grillhouse.poussee.commit`'s branch) of the workflows `fluxDuCommit` gives for that commit and branch whose path the branch `agent/<ticket>` does not also run (the ones already judged), and goes on to the next entry without waiting. Each pass of the queue reads the readings due without waiting, a workflow still running staying due: a red one (any conclusion but `success`) reopens the ticket of the commit pushed under the label `flux-rouge`, with a comment giving the workflow, the URL of the run and the commit; green or none says nothing. A workflow the queue cannot judge (`gh` failing, no run within the search bound, a run unfinished at the wait bound, both counted from the push of main and the same as for the CI of the branch) is not taken for red: a comment at the ticket names it and why, nothing is reopened. The wait of the supervisor (`npx grillhouse superviseur --attendre`) gives a ticket carrying `flux-rouge` and open as a batch, once per run, with the address of the run; taken up or closed, no more. **Action for projects**: none.
|
|
47
|
+
|
|
48
|
+
- **A Turborepo cache hit leaves a cargo or python task in the verdict** (grillhouse-44b.5.3): the verdict of cargo and python read only what `tests-du-paquet` writes into the results folder, and a task Turborepo replays from its cache writes nothing, so the circuit saw zero tasks for that crate or project. As Turborepo reports each task's cache status in its run summary, `lancerLesTaches` now passes `--summarize` when a results folder is named and files the summary there (none under `.turbo/runs` without one), and the verdict of cargo and python takes its tasks from that summary, recognised by task id (`<package>#test:unit`): a cache `HIT` is a `test:unit` task of the package, `tests` true, `code` 0, no report; a task written by `tests-du-paquet` is added only when the summary lacks its id. The reading of the summary stays in the typescript module, which drives Turborepo; the core serves it to the other modules through three optional members of the join (`lireLesResumes`, `garderLesResumes`, `resumesDuLancement`, described in `INTERFACE.md`), and names no tool. The verdict of typescript is unchanged. **Action for projects**: none.
|
|
49
|
+
|
|
50
|
+
- **Main moves only onto a tree a ticket branch's CI judged green** (grillhouse-4nr.30): the queue entered main only on a judged tree, but a direct push to main skipped the gate, and three of them left main red on 2026-11-11. As bors and the merge queues, the frame's pre-push hook now refuses, in a project whose CI runs on `agent/**`, a push to origin of the branch of `grillhouse.poussee.commit` (`main` by default) whose commit no run concluded green on a ticket branch, naming it and the way (push to `agent/<ticket>`, wait for its green CI, then move main onto that commit); the queue's push of a judged commit passes, a reading of the runs that fails lets the push go. The repository's ruleset on GitHub (required checks `gardes (26.x)`, `fusion (26.x)`, `build`, no bypass) holds the same rule on the server. **Action for projects**: none for the hook (`npx grillhouse maj`); a project may add the same ruleset, its own checks named.
|
|
51
|
+
|
|
52
|
+
- **Each state of the board has one tone, defined once** (grillhouse-bf5.8): a circuit that waited for the supervisor showed yellow on its line and, past two intervals of re-presentation, red in the head's alert: each site of `scripts/tableau.mjs` chose its tone case by case, and an alert's level hung on its duration. As a dashboard of states (GitHub Checks, Alertmanager) gives each state one severity, the table `TONS` of `scripts/tableau.mjs` now names each state the board shows and its tone, and every line and every alert takes it there, whatever its duration, which its text says: red only for what asks for a correction (frozen, a fault, a question with no live wait, a ceiling refused, a red night), yellow for what waits for an answer or a look (the supervisor, the owner, the disk, a loaded machine), cyan for what runs or waits for its place or the lock. An alert carries its state (`etat`) and its tone (`ton`) in place of `niveau`; the option `rappel` of `assembler` goes. A ceiling refused turns red, a ticket « sans go » or « à valider » yellow in the chantier and the states' view, as on the head's line. **Action for projects**: none.
|
|
53
|
+
|
|
54
|
+
- **The regeneration of the debt inscribes a guard the lot adds** (grillhouse-44b.10.8.3): a ticket that added a guard stayed red on its debt until a gesture of the supervisor, since `dette.mjs --abaisser` only lowered. As betterer updates its reference when a rule arrives, a guard absent from the guards of main (named to the passes by `GRILLHOUSE_GARDES_DE_LA_BASE`) now writes a note `a-inscrire` per file and rule, with its count, beside its refusals; the regeneration of the debt of the final pass and of the checks inscribes the whole section from these notes, lowers the others as before, and writes each inscription (guard, file, rule, count) to the ticket, which the reviewer reads with the difference. A guard of main never gets a note, a key or a higher count: its new finding stays a refusal, and the guard of the migrations still demands the migration for installed projects. **Action for projects**: none.
|
|
55
|
+
|
|
56
|
+
- **A guard with a debt arrives with its migration** (grillhouse-44b.10.8.2): the guard of the titles of tests had no migration, so a project that updated saw it red until `npm run grillhouse:dette:inscrire`. As the codemods of `nx migrate` or the baselines of ESLint, a new guard of the frame, `grillhouse migrations-des-gardes` (`scripts/migrations-des-gardes.mjs`, played by `grillhouse:gardes`), reads the scripts' texts and refuses, naming it, a script that calls `trancher(` of `scripts/dette.mjs` that no played migration covers (one that imports the guard's script and inscribes its name by `trancher(projet, GARDE, constats, 'inscrire')`, on the model of `0.30.0-tailles-des-outils-lourds.mjs`). The guards without migration at its entry are its own frozen debt (`migrations-des-gardes`, rule `garde-sans-migration`), pruned as each receives its migration. It judges only the scripts of the repository where it plays (the frame's own); the scripts installed under `node_modules` are not judged, so a project that updates sees it green. The charter and the architecture of the package say it. **Action for projects**: none.
|
|
57
|
+
|
|
58
|
+
- **The size and the targeted run of a test of Rust are judged per module of `tests/it/`** (grillhouse-pkl.10): under the crate's one executable (grillhouse-pkl.9), the guard of the sizes read `tests/it/main.rs` with every module it declares, so one large module made the whole `it` large, its finding on `main.rs`; and `npm test -- crates/x/tests/it/foo.rs` played the whole day of the crate. As Bazel sizes each target, the guard now classes each module of tests of a target `tests/<dossier>/main.rs` apart (`it`, `it_nuit`, `it_budget`), its submodules with it and a helper of the root (`tests/common/`) read when the module names it (`common::`), its finding on the module's file; the root counts only when it holds a test of its own. A path to a module builds its target and plays its tests alone, by the filterset of nextest (`-E 'binary_id(<crate>::it) & test(/^foo::/)'`), as Cargo filters its own testsuite; several modules of a target join, and the target named whole plays whole. A module of `tests/it_nuit/` is refused as a night test. **Action for projects**: none.
|
|
59
|
+
|
|
60
|
+
- **A crate of Rust has one executable of integration tests per moment** (grillhouse-pkl.9): cargo links each file of `tests/` as an executable of its own, with every dependency: a copy of SyntHub held 62 test executables of about 90 MB (5.3 of its 7.3 GB), and each pass linked the dependencies 62 times. As Cargo's own testsuite (`tests/testsuite/main.rs`) and matklad's « Delete Cargo Integration Tests », each test file is now a module of one executable per moment: `tests/it/main.rs` for the day, `tests/it_nuit/main.rs` for the night, `tests/it_budget/main.rs` for the time budget benches, each declaring its files (`mod <fichier>;`), their helpers under `tests/common/` (`#[path = "../common/mod.rs"] mod common;`). The night and the benches keep their recognition by the target's name (`_nuit`, `_budget`), so `it_nuit` and `it_budget` play at night unchanged. A new guard of the module cargo, `grillhouse executables-de-tests` (`scripts/langages/cargo/executables-de-tests.mjs`), refuses a crate with more than one executable of a moment, naming each one out of the address; a single executable of a moment passes whatever its name. The skeleton of a new crate (`npx grillhouse paquet`) is born with `tests/it/main.rs` in place of `tests/.gitkeep`, none when the folder already holds a test target. The charter and the testwriter's skill name the address. The proof of the red reads each test under the file of its module: the verdict gives a test `foo::bar` of `tests/it/main.rs` to `tests/it/foo.rs` (or `foo/mod.rs`, the deepest module file that exists), as it gives a unit test to its `tests.rs`, and the names of HEAD's version of a file of such a target (`testsDeHead`) are that file's alone, its root's own tests for `main.rs`. **Action for projects**: `npx grillhouse maj` (migration 0.34.0) inscribes each executable too many of every crate in `grillhouse-dette.json`, frozen: what exists keeps playing as it is, a new test file out of `tests/it/` is refused, and the count only comes down. Then, crate by crate: move each `tests/<nom>.rs` to `tests/it/<nom>.rs` and declare it in `tests/it/main.rs` (`mod <nom>;`), each night test `tests/<nom>_nuit.rs` to `tests/it_nuit/<nom>.rs`, each bench to `tests/it_budget/`; a module's `mod common;` becomes `use crate::common;` once `main.rs` declares it; then `npm run grillhouse:dette:elaguer` lowers the debt.
|
|
61
|
+
|
|
62
|
+
- **The copy of a closed ticket goes with its working directory** (grillhouse-4nr.29): on 2026-11-11 the removal of the copies kept 9 copies of closed tickets (delivered directly, or their circuit stopped), some 480 MB each, 4.3 GB in all, « son circuit a son dossier .travail »: no circuit would ever remove that directory, and under the disk bound of 4nr.27 those dead copies held starts back. As `git worktree prune` removes what no owner holds, the owner of a `<ticket>.travail` is now the circuit the Temporal server holds — it runs, waits an answer or a place, or ended without its issue — not the directory: a copy whose ticket is closed and whose circuit the server no longer holds is judged as any other copy, and removed with its `.travail` once its content is on main (« son dossier <ticket>.travail retiré »), its balance `<ticket>.bilan.json` kept; local work not entered keeps it, named as before. The circuits the server holds unread, or the closed tickets unread, every such copy stays. The option `vivants` of `retirerLesCopiesFinies` and `retirerLesCopiesDuDepot` becomes `tenus`. The integration copy already opens clean (`git checkout --force` then `git clean -x`), the conflict a refused lot left in it included; a test now holds it. **Action for projects**: none.
|
|
63
|
+
|
|
64
|
+
- **A red check outside the graph keeps the last green from being set** (grillhouse-44b.5.4): in a project of several languages, `verifier` played the modules in the order of the table of components, and the pass of package.json, which alone sets the last green, could play before cargo: a red `cargo deny check` then left the green set. As a Turborepo green covers every check of the pass, the module of package.json now plays last under `verifier` (also `--gardes` and `--tout`); the others keep their relative order, and the modules before it that are red (a code 75 included) give it `PASSE_ROUGE`, so that it sets no green. `tester`, `construire` and `typer` keep their order. **Action for projects**: none.
|
|
65
|
+
|
|
66
|
+
- **A circuit stopped at its plan resumes at its plan** (grillhouse-d4n.11): a circuit that stopped during step 1 Plan on a failure of its opening or of a step of its plan (« le code attend l'architecture »), or on `--arreter`, wrote its stop at the step `plan` the workflow holds until its opening, which the table of transitions does not know: `--reprendre` then stopped again at once, « inattendu », on « étape inconnue dans l'état : plan », and the only way out was to delete its workflow by hand. As a Temporal resumption replays from the step it stopped at, such a stop is now written at the state the plan writes (the testwriter's first attempt, the work on the plan named, which the board shows at « 1 Plan »), and an answer reopens from it: `--reprendre` plays the plan again, the explorateur then the questionneur, with the context given; `--depuis` is unchanged. The workflow does so under `patched('reprise-au-plan')`, which also maps a stop at `plan` a run recorded before the change when its answer reopens it; a history recorded before the change replays as it was. **Action for projects**: none.
|
|
67
|
+
|
|
68
|
+
- **The supervisor is woken by each question, however the wait is launched** (grillhouse-d4n.9): on 2026-11-11, bf5 stopped on a question at 17:06 and 44b.5.3 soon after; the supervisor read them 40 min later, on the owner's word. `superviseur --attendre` never ended: launched in the background behind a pipe (`| tail -30`), its output was read only at its end, so never; without a pipe, it needed a watch that expires every 30 min. As `gh run watch` or `kubectl wait` return on their event, the wait now writes the batch of the questions due at its start, else waits for one, and ends once it has written one batch (a new question, a question presented again after its 5 min, the end of a circuit): the end of its task wakes the session, whatever pipe follows it, and its last line asks to launch it again once the batch is dealt with (`attendreUneQuestion` gives one batch, no longer an iterator). An integration between two waits is given by the next one (`.claude/worktrees/integrations-rendues.json`, set by the opening to its own time). The opening, the signal of the turn and the skill pitmaster say to launch it again after each batch, never behind a pipe nor a watch with a duration. As an alert not acknowledged pages again, the plugin's new hook `Stop` runs `grillhouse attente-a-l-arret` (`scripts/attente-a-l-arret.mjs`): the session of supervision does not end its turn to wait for the owner while a circuit waits for its answer (each question, its command) or while a circuit runs with no wait alive (the lock of the wait names a live process); each question blocks once, and each state of the circuits running without a wait once (`.claude/worktrees/signale-a-l-arret.json`), so that a question carried to the owner lets the next stop pass. **Action for projects**: none — `npx grillhouse maj` brings the package and the plugin together; a supervisor launches the wait again after each batch.
|
|
69
|
+
|
|
70
|
+
- **The queue does not start a ticket without its section « ## Architecture », and says so** (grillhouse-d4n.10): eight tickets put in the queue on 2026-11-11 had no such section; the circuit of 44b.5.3 started, then stopped at 1 Plan on « le code attend l'architecture », an unexpected stop for the supervisor, and the others would have done the same. As a merge queue admits only a change that passes its checks of entry, the rule of the queue (`ticketsAPartir` of `scripts/file-des-tickets.mjs`) now starts a ticket only when its description holds a line that begins with `## Architecture`; a ticket that has it starts as before. The tickets of the queue without it (`enFileSansArchitecture`, their dependencies open or closed) are named by an orange alert of the board and by the section « ## La file des tickets » of the opening of a session of supervision: « En file sans architecture : <tickets> », for the supervisor to write it. **Action for projects**: write the section « ## Architecture » of each ticket the board names.
|
|
71
|
+
|
|
72
|
+
- **A circuit paused on a question gives its place back, and the disk of the copies bounds a start** (grillhouse-4nr.27): a circuit stopped on its question held a place of the project and of the machine for as long as the question waited, while its copy held gigabytes (a copy of TypeScript 0.5 to 1 GB, of Rust 2 to 7.6 GB, measured on 2026-11-11). As a block step of Buildkite frees its agent and Nomad reserves the disk of a client: a circuit whose question waits is paused, and holds no place of a circuit; the queue counts only the circuits active (`circuitsEnPause`, read from the memo of the workflows) and gives the machine those alone. Resumed, the circuit asks its place again by itself (the update `reserverDesCircuits` with `reprise`, its rank of arrival kept) and waits at the step `attend-une-place` before it reopens. Its copy is measured once, when it pauses or ends (`<ticket>.taille` beside the copy, `scripts/disque-des-copies.mjs`), never at each judgement. A start now also wants the room of one more copy on the disk of the project's copies (`statfs` of `<racine>/.claude/worktrees`): the largest copy measured of the project, else the expected size of a copy of its languages (the new member `tailleDUneCopie` of the join: 1 GB for typescript and python, 8 GB for cargo), plus the charter's margin of 4 GB; a candidate short of it waits with its reason, which names the paused copies and their size, without holding the others back, and the board says « attend le disque » and what holds it. The changes of the workflows follow Temporal's patching (`patched('pause-rend-sa-place')` for the circuit, under `patched('places-de-la-machine')` for the queue). **Action for projects**: none.
|
|
73
|
+
|
|
74
|
+
- **The queue judges a commit on every workflow that runs on its branch, not on the first run** (grillhouse-bf5): a merge queue (GitHub's, bors) judges a commit on all its checks, but the queue read only the first run `gh run list --commit` gave, so a red second workflow reopened and told no one (SyntHub, SH-13y.6.8.3). `ciDuCommit` now reads, at each reading, the runs of every expected workflow (`fluxDuCommit` gives each its path and its name, the `name` key or the path, as GitHub names it), joined by `workflowName`: green when all are green, red as soon as one is (its run, address, log and rerun command in the comment), not read naming the workflow with no run or no end. It is under `patched('ci-tous-les-flux')`: the histories recorded before replay on the old loop. Workflows that run only on main after the entry are not read (grillhouse-bf5.7).
|
|
75
|
+
|
|
76
|
+
- **The lock of the machine stands on the line of its circuit, and a pass out of a ticket is named by its copy** (grillhouse-bf5.5.1): AGENTS showed the final pass of a circuit twice, on a line « 🔒 Passe finale · <projet> · <ticket> » cut by the width and on the circuit's own line with its progress, and a verification without a ticket by its repository alone, « ⏳ Vérification · roomis-grillhouse », whichever copy played it. A holder or a wait of a circuit AGENTS shows now stands on that circuit's line, in place of the progress of its pass: « ▶ 5hn Le journal… · 🔒 passe finale 54/311 · 2 min », « · ⏳ contrôles · 1 min », one line per ticket. Any other keeps its line at the head of AGENTS, named by its ticket, else by the folder of its copy: the identity of the lock now keeps the root of the working tree the measure plays in (`copie`, `racineDeLaCopie` of `scripts/verrou-de-machine.mjs`), « ⏳ Vérification · direct-panneau-file · 1 min ». The project is named only for another project than the board's (the lock holds for the whole machine). The width cuts the subject first, then the project, then leaves out « attend », then cuts the copy; never the kind, the figures nor the time. **Action for projects**: none.
|
|
77
|
+
|
|
78
|
+
- **A ticket in the queue stands at no step of AGENTS** (grillhouse-bf5.5): once the queue launched, every ticket labelled `circuit` without a circuit yet showed at « 2 Tests », waiting for the testwriter, as the board deduced the step of a ticket from the roles that had run on it and the reviewer's last verdict, a reading of the time before the circuit under Temporal. A ticket now stands at a step only by its circuit, running or stopped, or by an agent that runs on it; the others stand in CHANTIER alone. Removed with their tests: the deduction (`etape`, `verdict` of `scripts/tableau.mjs`), the reading of the reviewer's comments by the board, and the waits of the blocks (`attend`). The counters of the head and the states' view are unchanged. **Action for projects**: none.
|
|
79
|
+
|
|
80
|
+
- **An agent of a team does not stop while its box holds an unread message** (grillhouse-d4n.8): a message SendMessage left while an agent wrote its last answer was read by no one, the agent waiting and the instruction with it. As a consumer of a queue does not stop on messages it has not acknowledged, the plugin's hooks `SubagentStop` and `TeammateIdle` now run `grillhouse messages-non-lus` (`scripts/messages-non-lus.mjs`): it reads the box of the agent that stops (`~/.claude/teams/<équipe>/inboxes/<nom>.json`, its name from the hook's input and its meta file, its team from the meta file or the lead's session) and blocks the stop with each unread message, its sender and its text, as the agent's next instruction (exit 2). Each message blocks once, its `msg_id` noted under `~/.claude/grillhouse/messages-signales/`; the box is never written, and a box absent or unreadable lets the stop pass. The plugin's hook now leaves without effect a subcommand the installed package does not know (« sous-commande inconnue »), so that a hook the plugin adds never blocks with the usage under an older package. **Action for projects**: none — `npx grillhouse maj` brings the package and the plugin together.
|
|
81
|
+
|
|
82
|
+
- **The queue of a project starts a circuit only when the machine has a place for it, in the order of arrival of every project** (grillhouse-4nr.24): the queue started a circuit on the setting of its project alone (`grillhouse.circuits`), and its session then waited for its place in the middle of its work. As Buildkite bounds its pipelines in one fleet of agents, the queue now gives the workflow of the machine its circuits alive and the tickets it would start (the activity `placesDeLaMachine`, the new update `reserverDesCircuits`, the pure rule `reserverDesCircuits` of `scripts/regles-des-places.mjs`) and starts only those that hold a place of a circuit: the circuits of every project hold at most the ceiling of the machine (`GRILLHOUSE_PLACES`), granted in the order of arrival, the first that waits keeping the next ones waiting; at 5 places with three projects set to 2, the sixth ticket waits in its queue, not started. A circuit alive holds its place; a place no queue gives again for 10 min is gone; where no workflow of the machine runs, nothing bounds. The board says « attend une place » on the line of a ticket that waits, and the query `lesPlaces` gives the places of the circuits (`circuits`). The change of the queue's workflow follows Temporal's patching (`patched('places-de-la-machine')`). **Action for projects**: none.
|
|
83
|
+
|
|
84
|
+
- **The ceiling of the places of the machine is a configuration of the poste, read again at each judgement** (grillhouse-4nr.25): `GRILLHOUSE_PLACES` was frozen in the entry of the workflow of the machine at its first start, so changing it had no effect without stopping the workflow. As Buildkite reads the number of its agents from its configuration and Nomad its `client.reserved`, the ceiling now lives in `~/.config/grillhouse/machine.env` (`GRILLHOUSE_PLACES=<n>`, `$XDG_CONFIG_HOME/grillhouse/` when it is set; 3 without it; the environment wins, as for every file of the poste), read by `plafondDe` of the new `scripts/plafond-de-la-machine.mjs`; the workflow reads it again by an activity (`plafondDeLaMachine`) at each judgement, so a ceiling changed counts at once, and the board reads the same. A value that is not a positive integer is refused by its name and its file, the ceiling read before kept; the query `lesPlaces` gives it (`faute`) and the board says « plafond refusé » on the line of the places. The entry of the workflow carries no ceiling any more; the change follows Temporal's patching (`patched('plafond-du-poste')`), so the running workflow of the machine switches to the poste's ceiling at its next judgement. **Action for projects**: none — to change the number of places, write `GRILLHOUSE_PLACES=<n>` in `~/.config/grillhouse/machine.env`.
|
|
85
|
+
|
|
86
|
+
- **A wait for a place stays a wait, never a question** (grillhouse-4nr.26): a check that waited for a place of the machine, its lock or room on the disk up to its bound (60 min) ended « à repasser » (75), played again 6 times after 10 min, then went up to the supervisor as a question. As a job of Buildkite waits for an agent without limit, a « à repasser » of the checks whose every 75 is such a wait (the pass's own wait, or the 75 of the `npm run verifier` it runs; `attente` of `controles`, carried by the stop) now plays again at once, without limit and without counting toward the 6, the wait itself pacing it, so the board shows « attend une place » all along; a 75 of another cause (the queue's CI not read) keeps its sleep and its bound. The change of the circuit's workflow follows Temporal's patching (`patched('attente-de-place')`). **Action for projects**: none.
|
|
87
|
+
|
|
88
|
+
- **The queue stops the circuit of a ticket closed outside it** (grillhouse-4nr.23): a circuit whose ticket was closed outside it (delivered directly) stayed alive, stopped on its question, and held a place of the project without limit (on 2026-11-11, one of the two places). As Zuul drops from its pipeline a change abandoned or merged, the queue of the tickets now reads, at each wake, the circuits alive whose ticket is closed in Beads while the circuit stands before its integration (`fermesHorsCircuit` of `scripts/file-des-tickets.mjs`, on the step of the circuit's memo); it no longer counts them, stops each once (the signal `ARRETER`, its motive « le ticket est fermé hors de son circuit ») and writes its line « termine » to the journal of states. A circuit at its integration (5.1 to 5.3) closed its ticket itself and stays; a circuit on an open ticket stays counted at every step. The change of the queue's workflow follows Temporal's patching (`patched('fermes-hors-circuit')`). **Action for projects**: none — `npx grillhouse maj` brings the version, and the worker takes it at its restart.
|
|
89
|
+
|
|
9
90
|
## [0.33.1] - 2026-11-11
|
|
10
91
|
|
|
11
92
|
- **The CI of main plays nothing again on a tree the CI of the ticket's branch judged green** (grillhouse-44b.12.6): after the queue moved main by fast-forward onto the commit the CI of `agent/<ticket>` had judged, the CI of main replayed its guards, three tranches, their merge and the build (about 7 min), and the remote cache of Turborepo did not serve it, its targeted tests measured against another base. As bors and Zuul test once the tree that enters main, the CI of Grillhouse and the template's now open on a job `judged` that, on a push to main alone, looks for a green run of the same workflow on a branch `agent/**` for the same commit (`gh run list --workflow ci.yml --commit <sha> --status success`); every job of the pass depends on it and is skipped when it finds one, which GitHub counts as a success. A pull request, the schedule, the call by a release, a push to `develop` or to `agent/**` play as before, and a search that fails plays the pass. The job reads the runs of the repository (`actions: read`): the release of Grillhouse grants it. **Action for projects**: none — `npx grillhouse maj` rewrites the marked `ci.yml`; a workflow of the project that calls it grants `actions: read`, and a runner of the repository (`RUNNER`) has `gh`.
|
|
@@ -62,6 +62,12 @@ interface publiée…>. Le cadre et l'architecture montent toujours (charte comm
|
|
|
62
62
|
lot appliqué ; lue dans l'arbre principal ; une clé sans commande, sans fichiers ou avec un
|
|
63
63
|
motif hors du dépôt est refusée par son nom avant tout travail).
|
|
64
64
|
- Le nombre de circuits à la fois : la clé `grillhouse.circuits` du `package.json` (un entier
|
|
65
|
-
≥ 1, **1** quand elle est absente : les circuits du projet
|
|
66
|
-
|
|
67
|
-
principal ; toute autre valeur est refusée par son nom avant tout
|
|
65
|
+
≥ 1, **1** quand elle est absente : les circuits actifs du projet à la fois, que la file des
|
|
66
|
+
tickets tient ; un circuit arrêté sur une question rend sa place, et repris, la redemande avant
|
|
67
|
+
de rouvrir ; lue dans l'arbre principal ; toute autre valeur est refusée par son nom avant tout
|
|
68
|
+
travail). La machine borne aussi : un ticket ne part que s'il a une place de circuit de la
|
|
69
|
+
machine, commune à ses projets et donnée dans l'ordre d'arrivée (`GRILLHOUSE_PLACES` de
|
|
70
|
+
`~/.config/grillhouse/machine.env`, 3 par défaut), et la place d'une copie de plus sur le disque
|
|
71
|
+
des copies (la plus grande copie mesurée du projet, sinon 1 Go, 8 Go pour Rust, plus 4 Go) ;
|
|
72
|
+
sinon il reste en file, non démarré, et le panneau dit « attend une place » ou « attend le
|
|
73
|
+
disque » avec les copies en pause qui l'occupent.
|
package/charte.md
CHANGED
|
@@ -99,7 +99,7 @@ Ainsi la preuve du rouge mesure le travail, et aucun test ne rougit pour la form
|
|
|
99
99
|
Bazel) : un test petit vérifie son module par son interface, sans processus ; un test moyen
|
|
100
100
|
assemble quelques modules sur la machine, avec des processus locaux ; un test grand monte un
|
|
101
101
|
projet d'essai et y lance le produit ou le cadre entier : il est un test de nuit (`*.nuit.test.*`,
|
|
102
|
-
`*_nuit_test.py`, `tests
|
|
102
|
+
`*_nuit_test.py`, un module de `tests/it_nuit/` en Rust), jamais joué au fil du travail. Chaque test prend la plus petite taille qui prouve son critère, dans
|
|
103
103
|
Grillhouse comme dans chaque projet. La garde des tailles (`grillhouse tailles-des-tests`) refuse
|
|
104
104
|
un grand test de jour, et la dette inscrite des grands tests existants ne fait que baisser. Un
|
|
105
105
|
test de jour valide le code en l'important : lancer la commande grillhouse (son binaire, un
|
|
@@ -132,10 +132,16 @@ l'architecture fixe le langage, et le code le suit.
|
|
|
132
132
|
**Un test vit dans un fichier à lui**, jamais dans un fichier de code, reconnu au nom ou au
|
|
133
133
|
dossier qu'attend l'outil de son langage : près de son module pour un test unitaire (en Rust, un
|
|
134
134
|
`tests.rs` ou un dossier `tests/` sous `src/`, comme le veut le contrôle tidy de rustc), dans le
|
|
135
|
-
dossier de tests du paquet pour un test par l'interface (en Rust, `tests/` du
|
|
136
|
-
de tests, qui les écrit, qui les lit et qui les joue sont les mêmes dans chaque
|
|
137
|
-
l'adresse d'un fichier de test suit l'outil. Ainsi chaque test a un fichier à lui,
|
|
138
|
-
testwriter écrit.
|
|
135
|
+
dossier de tests du paquet pour un test par l'interface (en Rust, un module de `tests/it/` du
|
|
136
|
+
crate). Les sortes de tests, qui les écrit, qui les lit et qui les joue sont les mêmes dans chaque
|
|
137
|
+
langage ; seule l'adresse d'un fichier de test suit l'outil. Ainsi chaque test a un fichier à lui,
|
|
138
|
+
que le testwriter écrit.
|
|
139
|
+
|
|
140
|
+
**Un crate Rust a un seul exécutable de tests d'intégration par moment** (la suite de tests de
|
|
141
|
+
Cargo, `tests/testsuite/main.rs`) : chaque fichier de tests est un module que déclare
|
|
142
|
+
`tests/it/main.rs` le jour, `tests/it_nuit/main.rs` la nuit, `tests/it_budget/main.rs` pour les
|
|
143
|
+
bancs ; une garde du module cargo refuse un exécutable de plus. Ainsi cargo lie
|
|
144
|
+
les dépendances une fois par moment, et une copie garde la place de son disque.
|
|
139
145
|
|
|
140
146
|
**Un ticket ouvert naît du mot du responsable**, ou d'un défaut qu'un projet du cadre rencontre.
|
|
141
147
|
Une découverte d'agent se consigne dans un ticket fermé, sous le ticket qui l'a trouvée, étiqueté
|
|
@@ -162,6 +168,15 @@ puis les contrôles et la relecture. Hors de ce cas, une preuve qui ne trouve au
|
|
|
162
168
|
contrôles et à la relecture sans séance du développeur. Ainsi chaque séance du circuit a un lot à
|
|
163
169
|
écrire.
|
|
164
170
|
|
|
171
|
+
**Un ticket prend l'une de trois voies** : le circuit complet pour un comportement qui change ;
|
|
172
|
+
le circuit court (1.1) pour un geste sans comportement neuf, que l'explorateur juge au plan ; hors
|
|
173
|
+
du circuit, mené en direct par le superviseur, pour un défaut du circuit lui-même (le circuit ne se
|
|
174
|
+
répare pas par lui-même), une correction triviale repérée en analyse (une ligne fautive, un
|
|
175
|
+
mauvais argument), un ticket de données ou le squelette d'un paquet ; il porte l'étiquette `direct`, que la file des
|
|
176
|
+
tickets ignore, même s'il porte aussi `circuit`. Un lot hors du circuit passe
|
|
177
|
+
la CI de sa branche avant main, comme un autre. Un changement de comportement du produit va au
|
|
178
|
+
circuit, même pressé. Ainsi la voie d'un ticket se lit à la charte, et non au choix de la séance.
|
|
179
|
+
|
|
165
180
|
**Un paquet naît hors du circuit, en quatre temps** (un squelette n'a ni comportement ni test),
|
|
166
181
|
comme les générateurs de Nx et `cargo new --lib` : 1, le grill, le superviseur et le responsable
|
|
167
182
|
(son rôle, sa frontière, ses refus, son interface, son langage) ; 2, l'écriture, le superviseur
|
|
@@ -188,7 +203,9 @@ dossier.
|
|
|
188
203
|
un écart passe seulement inscrit, avec sa raison, dans la liste que le superviseur valide.
|
|
189
204
|
Ainsi le cadre ne maintient aucune spécificité par composant.
|
|
190
205
|
- **Une dette connue s'inscrit et se gèle** (`grillhouse-dette.json`) : une garde refuse tout
|
|
191
|
-
constat neuf, et le compte ne remonte jamais.
|
|
206
|
+
constat neuf, et le compte ne remonte jamais. Une garde à dette neuve du cadre arrive avec sa
|
|
207
|
+
migration, qui inscrit la dette existante des projets (la garde des migrations des gardes refuse
|
|
208
|
+
celle qui n'en a pas). Ainsi la dette ne fait que baisser, et un projet monte sans geste à la main.
|
|
192
209
|
- **Un flux de la CI déclare les paquets qu'il exerce, le relecteur le lit** (`grillhouse.flux` du
|
|
193
210
|
`package.json` racine) : une garde refuse un flux sans entrée ou un paquet inconnu, et la
|
|
194
211
|
consigne du relecteur nomme chaque flux que le lot touche. Ainsi un flux qui ne suit pas un
|
package/dist/temporal/acte.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ApplicationFailure } from '@temporalio/common';
|
|
1
2
|
/**
|
|
2
3
|
* The group of the process <mort> of a dead attempt ended (SIGKILL) before the attempt played
|
|
3
4
|
* again plays, its leader gone or not (`groupeVivant`: a command of the dead act still running in
|
|
@@ -7,6 +8,12 @@ export declare function finirLaTentativeMorte(mort: {
|
|
|
7
8
|
pid: number;
|
|
8
9
|
depart: string | null;
|
|
9
10
|
} | null | undefined): void;
|
|
11
|
+
/**
|
|
12
|
+
* The failure of the act <acte> cancelled for <raison> (the reason of its cancellation signal): one
|
|
13
|
+
* Temporal tries again when its worker stops, the act played anew on the next one; else one it
|
|
14
|
+
* tries no more (the supervisor's `--arreter`, a timeout).
|
|
15
|
+
*/
|
|
16
|
+
export declare function echecDeLAnnulation(acte: string, raison: unknown): ApplicationFailure;
|
|
10
17
|
/**
|
|
11
18
|
* The key of the activity whose information is <info>: its workflow, its run and its activity id,
|
|
12
19
|
* the same for each of its attempts, as Temporal recommends an idempotency key (the run, because
|
package/dist/temporal/acte.js
CHANGED
|
@@ -13,7 +13,10 @@
|
|
|
13
13
|
// the commands it runs (a rebase, a verification), as a session does (scripts/seances.mjs
|
|
14
14
|
// `jouerLeGroupe`). A cancellation (the supervisor's `--arreter`, a timeout of the activity) sends
|
|
15
15
|
// SIGTERM to its group, which ends its session, its group killed, then SIGKILL 10 s later; the
|
|
16
|
-
// activity fails once the whole group is gone, so that no command of the act outlives it.
|
|
16
|
+
// activity fails once the whole group is gone, so that no command of the act outlives it. The stop
|
|
17
|
+
// of its worker (a restart for a new version, `WORKER_SHUTDOWN`) cancels it the same way, and its
|
|
18
|
+
// failure is tried again on the next worker, as Temporal advises (`echecDeLAnnulation`): an
|
|
19
|
+
// update of the frame stays transparent to the circuits in flight. An act
|
|
17
20
|
// that fails is an error of the activity that is not tried again (`ApplicationFailure`, its
|
|
18
21
|
// message and its stack).
|
|
19
22
|
import { spawn } from 'node:child_process';
|
|
@@ -39,6 +42,20 @@ export function finirLaTentativeMorte(mort) {
|
|
|
39
42
|
signalerGroupe(mort.pid, 'SIGKILL');
|
|
40
43
|
}
|
|
41
44
|
}
|
|
45
|
+
/** The reason Temporal gives the cancellation of an activity whose worker stops. */
|
|
46
|
+
const ARRET_DU_TRAVAILLEUR = 'WORKER_SHUTDOWN';
|
|
47
|
+
/**
|
|
48
|
+
* The failure of the act <acte> cancelled for <raison> (the reason of its cancellation signal): one
|
|
49
|
+
* Temporal tries again when its worker stops, the act played anew on the next one; else one it
|
|
50
|
+
* tries no more (the supervisor's `--arreter`, a timeout).
|
|
51
|
+
*/
|
|
52
|
+
export function echecDeLAnnulation(acte, raison) {
|
|
53
|
+
const message = raison?.message ?? raison;
|
|
54
|
+
if (message === ARRET_DU_TRAVAILLEUR) {
|
|
55
|
+
return ApplicationFailure.retryable(`acte ${acte} interrompu par l'arrêt de son travailleur`, 'ArretDuTravailleur');
|
|
56
|
+
}
|
|
57
|
+
return ApplicationFailure.nonRetryable(`acte ${acte} annulé`, 'Annule');
|
|
58
|
+
}
|
|
42
59
|
/**
|
|
43
60
|
* The key of the activity whose information is <info>: its workflow, its run and its activity id,
|
|
44
61
|
* the same for each of its attempts, as Temporal recommends an idempotency key (the run, because
|
|
@@ -113,7 +130,7 @@ export async function jouer(acte, entree, racine) {
|
|
|
113
130
|
while (signalerGroupe(moi.pid, 0)) {
|
|
114
131
|
await new Promise(ok => setTimeout(ok, 200));
|
|
115
132
|
}
|
|
116
|
-
throw
|
|
133
|
+
throw echecDeLAnnulation(acte, contexte.cancellationSignal.reason);
|
|
117
134
|
}
|
|
118
135
|
if (r?.genre === 'resultat') {
|
|
119
136
|
return r.valeur;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acte.js","sourceRoot":"","sources":["../../src/temporal/acte.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,iGAAiG;AACjG,6DAA6D;AAC7D,2FAA2F;AAC3F,kGAAkG;AAClG,+FAA+F;AAC/F,iGAAiG;AACjG,mGAAmG;AACnG,gGAAgG;AAChG,4FAA4F;AAC5F,gGAAgG;AAChG,0GAA0G;AAC1G,0FAA0F;AAC1F,mGAAmG;AACnG,+FAA+F;AAC/F,
|
|
1
|
+
{"version":3,"file":"acte.js","sourceRoot":"","sources":["../../src/temporal/acte.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,iGAAiG;AACjG,6DAA6D;AAC7D,2FAA2F;AAC3F,kGAAkG;AAClG,+FAA+F;AAC/F,iGAAiG;AACjG,mGAAmG;AACnG,gGAAgG;AAChG,4FAA4F;AAC5F,gGAAgG;AAChG,0GAA0G;AAC1G,0FAA0F;AAC1F,mGAAmG;AACnG,+FAA+F;AAC/F,mGAAmG;AACnG,kGAAkG;AAClG,4FAA4F;AAC5F,0EAA0E;AAC1E,4FAA4F;AAC5F,0BAA0B;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAEhG,gGAAgG;AAChG,MAAM,IAAI,GACR,OAAO,CAAC,GAAG,CAAC,0BAA0B;IACtC,aAAa,CAAC,IAAI,GA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O,EAAE,CAAC,CAAC,OAAO,IAAI,IAAI;gBAC1B,IAAI,EAAE,CAAC,CAAC,IAAI,IAAI,IAAI;aACrB,CACF,CAAC;QACJ,CAAC;QACD,MAAM,kBAAkB,CAAC,YAAY,CACnC,CAAC,CAAC,OAAO,IAAI,QAAQ,IAAI,WAAW,IAAI,iBAAiB,EACzD,WAAW,EACX,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,IAAI,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,IAAI,IAAI,EAAE,CACrD,CAAC;IACJ,CAAC;YAAS,CAAC;QACT,IAAI,IAAI,EAAE,CAAC;YACT,YAAY,CAAC,IAAI,CAAC,CAAC;QACrB,CAAC;QACD,aAAa,CAAC,MAAM,CAAC,CAAC;QACtB,QAAQ,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;AACH,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Activites } from './contrat.js';
|
|
1
|
+
import type { Activites, ActivitesDeLaPause } from './contrat.js';
|
|
2
2
|
type Entree<K extends keyof Activites> = Parameters<Activites[K]>[0];
|
|
3
3
|
type Sortie<K extends keyof Activites> = Awaited<ReturnType<Activites[K]>>;
|
|
4
4
|
export declare function ouvrirLeCircuit(e: Entree<'ouvrirLeCircuit'>): Promise<Sortie<'ouvrirLeCircuit'>>;
|
|
@@ -9,5 +9,7 @@ export declare function publierLArret(e: Entree<'publierLArret'>): Promise<Sorti
|
|
|
9
9
|
export declare function finirLeTicket(e: Entree<'finirLeTicket'>): Promise<Sortie<'finirLeTicket'>>;
|
|
10
10
|
export declare function arreterLeTicket(e: Entree<'arreterLeTicket'>): Promise<Sortie<'arreterLeTicket'>>;
|
|
11
11
|
export declare function jouerUnEffet(e: Entree<'jouerUnEffet'>): Promise<void>;
|
|
12
|
+
export declare function mesurerLaCopieDuTicket(e: Parameters<ActivitesDeLaPause['mesurerLaCopieDuTicket']>[0]): Promise<number | null>;
|
|
13
|
+
export declare function reprendreUnePlace(e: Parameters<ActivitesDeLaPause['reprendreUnePlace']>[0]): Promise<boolean>;
|
|
12
14
|
export declare function jouerUnPasDuPlan(e: Entree<'jouerUnPasDuPlan'>): Promise<Sortie<'jouerUnPasDuPlan'>>;
|
|
13
15
|
export {};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
// The activities of the workflow of a ticket (./deroule.ts): each plays one act of the circuit
|
|
2
2
|
// in a process of its own (../acte.ts); each act but `effet` gives back the effects it emitted,
|
|
3
|
-
// which the workflow plays one by one (`jouerUnEffet`)
|
|
3
|
+
// which the workflow plays one by one (`jouerUnEffet`); and the acts of its pause on a question,
|
|
4
|
+
// its copy measured and its place asked again (`ActivitesDeLaPause`).
|
|
5
|
+
import { mesurerLaCopie } from '../../../scripts/disque-des-copies.mjs';
|
|
4
6
|
import { jouer } from '../acte.js';
|
|
7
|
+
import { ouvrirLeClient } from '../client.js';
|
|
8
|
+
import { reserverDesCircuits } from '../places/client.js';
|
|
5
9
|
const ou = (e) => e.racine;
|
|
6
10
|
export async function ouvrirLeCircuit(e) {
|
|
7
11
|
return jouer('ouvrir', e, ou(e));
|
|
@@ -27,6 +31,26 @@ export async function arreterLeTicket(e) {
|
|
|
27
31
|
export async function jouerUnEffet(e) {
|
|
28
32
|
await jouer('effet', e, ou(e));
|
|
29
33
|
}
|
|
34
|
+
export function mesurerLaCopieDuTicket(e) {
|
|
35
|
+
return Promise.resolve(mesurerLaCopie(e.racine, e.ticket));
|
|
36
|
+
}
|
|
37
|
+
// A machine that does not answer gives no place: the circuit asks again at its next turn.
|
|
38
|
+
export async function reprendreUnePlace(e) {
|
|
39
|
+
const c = ouvrirLeClient();
|
|
40
|
+
try {
|
|
41
|
+
const accordes = await reserverDesCircuits(c.client, {
|
|
42
|
+
racine: e.racine,
|
|
43
|
+
reprise: { ticket: e.ticket, rang: e.rang },
|
|
44
|
+
});
|
|
45
|
+
return accordes.includes(e.ticket);
|
|
46
|
+
}
|
|
47
|
+
catch {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
finally {
|
|
51
|
+
await c.fermer();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
30
54
|
export async function jouerUnPasDuPlan(e) {
|
|
31
55
|
return jouer('plan', e, ou(e));
|
|
32
56
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activites.js","sourceRoot":"","sources":["../../../src/temporal/circuit/activites.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAC/F,gGAAgG;AAChG,
|
|
1
|
+
{"version":3,"file":"activites.js","sourceRoot":"","sources":["../../../src/temporal/circuit/activites.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAC/F,gGAAgG;AAChG,iGAAiG;AACjG,sEAAsE;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAI1D,MAAM,EAAE,GAAG,CAAC,CAAqB,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;AAI/C,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,CAA4B;IAE5B,OAAO,KAAK,CAA4B,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,CAA4B;IAE5B,OAAO,KAAK,CAA4B,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAChE,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,CAAuB;IACtD,OAAO,KAAK,CAAuB,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AACvD,CAAC;AAED,MAA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C,CAAC;QACH,OAAO,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;YAAS,CAAC;QACT,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC;IACnB,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,CAA6B;IAE7B,OAAO,KAAK,CAA6B,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7D,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ETAPES_DE_REPRISE } from './contrat.js';
|
|
2
|
+
export declare const USAGE: string;
|
|
3
|
+
/** A malformed call, by its reason. */
|
|
4
|
+
export declare class Usage extends Error {
|
|
5
|
+
}
|
|
6
|
+
/** What the command line asks. */
|
|
7
|
+
export interface Appel {
|
|
8
|
+
ticket: string;
|
|
9
|
+
reprendre: boolean;
|
|
10
|
+
depuis: (typeof ETAPES_DE_REPRISE)[number] | null;
|
|
11
|
+
etendre: string[] | null;
|
|
12
|
+
arreter: boolean;
|
|
13
|
+
recommencer: boolean;
|
|
14
|
+
contexte: string | null;
|
|
15
|
+
}
|
|
16
|
+
/** The refusal of a fresh launch of <ticket> whose circuit was stopped on the supervisor's word. */
|
|
17
|
+
export declare const refusDuLancementApresArret: (ticket: string) => string;
|
|
18
|
+
/** The call <argv> read, or a Usage, by the rules of the circuit's options. */
|
|
19
|
+
export declare function lireLAppel(argv: string[]): Appel;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// The reading of the command line of `grillhouse circuit` (./commande.ts runs it): its options, their
|
|
2
|
+
// combinations, and the text of the refusal of a fresh launch after `--arreter`.
|
|
3
|
+
import { ETAPES_DE_REPRISE } from './contrat.js';
|
|
4
|
+
export const USAGE = 'usage: npx grillhouse circuit <ticket> [--reprendre [--contexte <texte>] | ' +
|
|
5
|
+
'--depuis <testwriter|preuve|developpeur|controles|passe-finale> --contexte <texte> | ' +
|
|
6
|
+
'--etendre <paquet>[,<paquet>…] [--contexte <texte>] | --arreter [--contexte <motif>] | ' +
|
|
7
|
+
'--recommencer]\n';
|
|
8
|
+
/** A malformed call, by its reason. */
|
|
9
|
+
export class Usage extends Error {
|
|
10
|
+
}
|
|
11
|
+
/** The refusal of a fresh launch of <ticket> whose circuit was stopped on the supervisor's word. */
|
|
12
|
+
export const refusDuLancementApresArret = (ticket) => `le circuit de ${ticket} est arrêté sur le mot du superviseur : \`--reprendre\`, ` +
|
|
13
|
+
`\`--depuis <testwriter|developpeur> --contexte <texte>\` ou \`--recommencer\` (copie fraîche, ` +
|
|
14
|
+
'départ du testwriter) le rouvre.';
|
|
15
|
+
/** The call <argv> read, or a Usage, by the rules of the circuit's options. */
|
|
16
|
+
export function lireLAppel(argv) {
|
|
17
|
+
let ticket = null;
|
|
18
|
+
const o = {
|
|
19
|
+
reprendre: false,
|
|
20
|
+
depuis: null,
|
|
21
|
+
etendre: null,
|
|
22
|
+
arreter: false,
|
|
23
|
+
recommencer: false,
|
|
24
|
+
contexte: null,
|
|
25
|
+
};
|
|
26
|
+
for (let i = 0; i < argv.length; i++) {
|
|
27
|
+
const a = argv[i];
|
|
28
|
+
const suivant = argv[i + 1];
|
|
29
|
+
if (a === '--reprendre') {
|
|
30
|
+
o.reprendre = true;
|
|
31
|
+
}
|
|
32
|
+
else if (a === '--arreter') {
|
|
33
|
+
o.arreter = true;
|
|
34
|
+
}
|
|
35
|
+
else if (a === '--recommencer') {
|
|
36
|
+
o.recommencer = true;
|
|
37
|
+
}
|
|
38
|
+
else if (a === '--etendre') {
|
|
39
|
+
const liste = String(suivant ?? '')
|
|
40
|
+
.split(',')
|
|
41
|
+
.map(c => c.trim())
|
|
42
|
+
.filter(Boolean);
|
|
43
|
+
if (!liste.length || suivant.startsWith('-')) {
|
|
44
|
+
throw new Usage('--etendre attend les paquets que le plan gagne.');
|
|
45
|
+
}
|
|
46
|
+
o.etendre = liste;
|
|
47
|
+
i++;
|
|
48
|
+
}
|
|
49
|
+
else if (a === '--depuis') {
|
|
50
|
+
if (!ETAPES_DE_REPRISE.includes(suivant)) {
|
|
51
|
+
throw new Usage(`--depuis attend une étape du ticket : ${ETAPES_DE_REPRISE.join(', ')}.`);
|
|
52
|
+
}
|
|
53
|
+
o.depuis = suivant;
|
|
54
|
+
i++;
|
|
55
|
+
}
|
|
56
|
+
else if (a === '--contexte') {
|
|
57
|
+
if (suivant === undefined) {
|
|
58
|
+
throw new Usage('--contexte attend son texte.');
|
|
59
|
+
}
|
|
60
|
+
o.contexte = suivant;
|
|
61
|
+
i++;
|
|
62
|
+
}
|
|
63
|
+
else if (a.startsWith('-')) {
|
|
64
|
+
throw new Usage(`option inconnue : ${a}`);
|
|
65
|
+
}
|
|
66
|
+
else if (ticket) {
|
|
67
|
+
throw new Usage(`un seul ticket : ${ticket}, puis ${a}.`);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
ticket = a;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
if (!ticket) {
|
|
74
|
+
throw new Usage('le ticket manque.');
|
|
75
|
+
}
|
|
76
|
+
if (o.recommencer && (o.reprendre || o.depuis || o.etendre || o.arreter)) {
|
|
77
|
+
throw new Usage('--recommencer va seule : le circuit repart à neuf, sans réponse ni contexte.');
|
|
78
|
+
}
|
|
79
|
+
if (o.depuis && o.reprendre) {
|
|
80
|
+
throw new Usage('--depuis et --reprendre ne vont pas ensemble.');
|
|
81
|
+
}
|
|
82
|
+
if (o.depuis && o.contexte === null) {
|
|
83
|
+
throw new Usage('--depuis attend son --contexte : la tâche de chaque agent du lot.');
|
|
84
|
+
}
|
|
85
|
+
if (o.etendre && (o.reprendre || o.depuis || o.arreter)) {
|
|
86
|
+
throw new Usage('--etendre va seule, avec son --contexte : le circuit reprend sur le plan étendu.');
|
|
87
|
+
}
|
|
88
|
+
if (o.arreter && (o.reprendre || o.depuis)) {
|
|
89
|
+
throw new Usage('--arreter va seule, son motif en --contexte.');
|
|
90
|
+
}
|
|
91
|
+
return { ticket, ...o };
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=appel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appel.js","sourceRoot":"","sources":["../../../src/temporal/circuit/appel.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,iFAAiF;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,CAAC,MAAM,KAAK,GAChB,6EAA6E;IAC7E,uFAAuF;IACvF,yFAAyF;IACzF,kBAAkB,CAAC;AAErB,uCAAuC;AACvC,MAAM,OAAO,KAAM,SAAQ,KAAK;CAAG;AAanC,oGAAoG;AACpG,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,MAAc,EAAU,EAAE,CACnE,iBAAiB,MAAM,2DAA2D;IAClF,gGAAgG;IAChG,kCAAkC,CAAC;AAErC,+EAA+E;AAC/E,MAAM,UAAU,UAAU,CAAC,IAAc;IACvC,IAAI,MAAM,GAAkB,IAAI,CAAC;IACjC,MAAM,CAAC,GAA0B;QAC/B,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,KAAK;QAClB,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAE,CAAC;QACnB,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QAC5B,IAAI,CAAC,KAAK,aAAa,EAAE,CAAC;YACxB,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QACrB,CAAC;aAAM,IAAI,CAAC,KAAK,WAAW,EA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AC;AAC1B,CAAC"}
|
|
@@ -18,6 +18,13 @@ export declare class ReponseRefusee extends Error {
|
|
|
18
18
|
}
|
|
19
19
|
/** Resumes the stopped circuit at its step (`--reprendre`), with the supervisor's <contexte>; refused out of a wait. */
|
|
20
20
|
export declare function reprendreLeCircuit(client: Client, racine: string, ticket: string, contexte?: string | null, ou?: OuReprendre): Promise<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Starts the circuit of <ticket> over (`--recommencer`): <retirer> removes its copy, sheets and
|
|
23
|
+
* journal, and its line names the copy removed. A circuit that runs is refused by its name
|
|
24
|
+
* (`ReponseRefusee`) and nothing is removed; a ticket the server no longer holds is removed all the
|
|
25
|
+
* same.
|
|
26
|
+
*/
|
|
27
|
+
export declare function recommencerLeCircuit(client: Client, racine: string, ticket: string, retirer: (racine: string, ticket: string) => string): Promise<string>;
|
|
21
28
|
/**
|
|
22
29
|
* Stops the circuit, its session with it (`--arreter`), its motive <contexte>. A circuit that does
|
|
23
30
|
* not run is refused by its name (`ReponseRefusee`): its lot integrated, or no circuit running.
|
|
@@ -149,6 +149,26 @@ const seanceDe = (ou) => ou.superviseur === undefined ? {} : { superviseur: ou.s
|
|
|
149
149
|
export async function reprendreLeCircuit(client, racine, ticket, contexte = null, ou = {}) {
|
|
150
150
|
return repondre(client, racine, ticket, { genre: 'reprendre', contexte }, 'repris', () => handle(client, racine, ticket).executeUpdate(REPRENDRE, { args: ou.superviseur === undefined ? [contexte] : [contexte, ou.superviseur] }), ou);
|
|
151
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* Starts the circuit of <ticket> over (`--recommencer`): <retirer> removes its copy, sheets and
|
|
154
|
+
* journal, and its line names the copy removed. A circuit that runs is refused by its name
|
|
155
|
+
* (`ReponseRefusee`) and nothing is removed; a ticket the server no longer holds is removed all the
|
|
156
|
+
* same.
|
|
157
|
+
*/
|
|
158
|
+
export async function recommencerLeCircuit(client, racine, ticket, retirer) {
|
|
159
|
+
const d = await handle(client, racine, ticket)
|
|
160
|
+
.describe()
|
|
161
|
+
.catch((x) => {
|
|
162
|
+
if (x instanceof WorkflowNotFoundError) {
|
|
163
|
+
return null;
|
|
164
|
+
}
|
|
165
|
+
throw x;
|
|
166
|
+
});
|
|
167
|
+
if (d?.status.name === 'RUNNING') {
|
|
168
|
+
throw new ReponseRefusee(`--recommencer : un circuit tourne sur ${ticket} ; \`--arreter\` l'arrête d'abord.`);
|
|
169
|
+
}
|
|
170
|
+
return `copie retirée : ${retirer(racine, ticket)}`;
|
|
171
|
+
}
|
|
152
172
|
/**
|
|
153
173
|
* Stops the circuit, its session with it (`--arreter`), its motive <contexte>. A circuit that does
|
|
154
174
|
* not run is refused by its name (`ReponseRefusee`): its lot integrated, or no circuit running.
|