@roomi-fields/grillhouse 0.49.0 → 0.50.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 +38 -0
- package/bin/grillhouse.mjs +2 -0
- package/cadre/templates/projet/.github/workflows/ci.yml +5 -0
- package/cadre/templates/projet/.github/workflows/nuit.yml +6 -4
- package/cadre/templates/projet/CLAUDE.md +13 -96
- package/cadre/templates/projet/docs/agents/issue-tracker.md +5 -5
- package/charte.md +88 -96
- package/dist/temporal/acte.d.ts +9 -0
- package/dist/temporal/acte.js +45 -21
- package/dist/temporal/acte.js.map +1 -1
- package/dist/temporal/circuit/activites.js +2 -1
- package/dist/temporal/circuit/activites.js.map +1 -1
- package/dist/temporal/circuit/appel.js +2 -2
- package/dist/temporal/circuit/appel.js.map +1 -1
- package/dist/temporal/circuit/client.d.ts +2 -4
- package/dist/temporal/circuit/client.js +5 -8
- package/dist/temporal/circuit/client.js.map +1 -1
- package/dist/temporal/circuit/commande.js +5 -4
- package/dist/temporal/circuit/commande.js.map +1 -1
- package/dist/temporal/circuit/contrat.d.ts +3 -3
- package/dist/temporal/circuit/contrat.js +2 -2
- package/dist/temporal/circuit/contrat.js.map +1 -1
- package/dist/temporal/circuit/deroule.js +4 -4
- package/dist/temporal/circuit/deroule.js.map +1 -1
- package/dist/temporal/commande.js +1 -1
- package/dist/temporal/commande.js.map +1 -1
- package/dist/temporal/deroules.js +3 -4
- package/dist/temporal/deroules.js.map +1 -1
- package/dist/temporal/etat.js +1 -1
- package/dist/temporal/etat.js.map +1 -1
- package/dist/temporal/file/activites.js +2 -1
- package/dist/temporal/file/activites.js.map +1 -1
- package/dist/temporal/file/client.js.map +1 -1
- package/dist/temporal/file/contrat.js +3 -2
- package/dist/temporal/file/contrat.js.map +1 -1
- package/dist/temporal/file/deroule.js +2 -1
- package/dist/temporal/file/deroule.js.map +1 -1
- package/dist/temporal/installation.js +2 -0
- package/dist/temporal/installation.js.map +1 -1
- package/dist/temporal/nuits/activites.js +4 -3
- package/dist/temporal/nuits/activites.js.map +1 -1
- package/dist/temporal/nuits/appel.js +2 -1
- package/dist/temporal/nuits/appel.js.map +1 -1
- package/dist/temporal/nuits/choix.js +2 -1
- package/dist/temporal/nuits/choix.js.map +1 -1
- package/dist/temporal/nuits/client.js +2 -1
- package/dist/temporal/nuits/client.js.map +1 -1
- package/dist/temporal/nuits/commande.js +2 -1
- package/dist/temporal/nuits/commande.js.map +1 -1
- package/dist/temporal/nuits/contrat.js +2 -1
- package/dist/temporal/nuits/contrat.js.map +1 -1
- package/dist/temporal/nuits/deroule.js +2 -1
- package/dist/temporal/nuits/deroule.js.map +1 -1
- package/dist/temporal/places/activites.js +2 -1
- package/dist/temporal/places/activites.js.map +1 -1
- package/dist/temporal/places/client.js +1 -0
- package/dist/temporal/places/client.js.map +1 -1
- package/dist/temporal/places/deroule.js +4 -5
- package/dist/temporal/places/deroule.js.map +1 -1
- package/dist/temporal/tickets/activites.js +1 -1
- package/dist/temporal/tickets/activites.js.map +1 -1
- package/dist/temporal/tickets/deroule.js +4 -4
- package/dist/temporal/tickets/deroule.js.map +1 -1
- package/docs/ARCHITECTURE.md +35 -13
- package/docs/CADRE.md +10 -68
- package/docs/INTERFACE.md +59 -179
- package/docs/architecture/circuit.md +440 -0
- package/docs/architecture/entree.md +281 -0
- package/docs/architecture/greffon.md +284 -0
- package/docs/architecture/installation.md +306 -0
- package/docs/architecture/machine.md +383 -0
- package/docs/architecture/tests.md +337 -0
- package/package.json +1 -1
- package/scripts/abi-des-dependances.mjs +2 -1
- package/scripts/activites.mjs +8 -8
- package/scripts/aiguillage.mjs +4 -4
- package/scripts/arbitrages.mjs +1 -1
- package/scripts/arbres-juges.mjs +2 -1
- package/scripts/attente-de-la-machine.mjs +10 -16
- package/scripts/avancement.mjs +2 -0
- package/scripts/base-des-workflows.mjs +2 -1
- package/scripts/binaires.mjs +2 -1
- package/scripts/branche-de-nuit.mjs +2 -1
- package/scripts/cadre.mjs +12 -3
- package/scripts/ci-de-main.mjs +2 -1
- package/scripts/circuit.mjs +101 -618
- package/scripts/circuits-cles.mjs +4 -6
- package/scripts/circuits-du-serveur.mjs +1 -1
- package/scripts/codes-de-sortie.mjs +1 -1
- package/scripts/coeurs-dedies.mjs +2 -4
- package/scripts/commande-du-langage.mjs +2 -0
- package/scripts/commandes-composees.mjs +3 -3
- package/scripts/commandes-du-path.mjs +1 -1
- package/scripts/composants-affectes.mjs +3 -1
- package/scripts/composition-des-langages.mjs +2 -0
- package/scripts/conformite.d.ts +2 -1
- package/scripts/conformite.mjs +2 -0
- package/scripts/consommation-des-passes.mjs +5 -4
- package/scripts/consommation.mjs +1 -0
- package/scripts/copies-finies.mjs +9 -10
- package/scripts/crochets.mjs +2 -1
- package/scripts/depart-du-ticket.mjs +2 -2
- package/scripts/dependances-internes.mjs +4 -2
- package/scripts/dernier-vert.mjs +3 -3
- package/scripts/dette.d.ts +2 -1
- package/scripts/dette.mjs +2 -0
- package/scripts/direct.mjs +2 -1
- package/scripts/disque-des-copies.mjs +1 -1
- package/scripts/donnees-cles.mjs +2 -0
- package/scripts/droits.mjs +12 -10
- package/scripts/echantillonneur-de-la-passe.mjs +1 -1
- package/scripts/effets.mjs +3 -3
- package/scripts/engendres.mjs +1 -1
- package/scripts/enveloppe/codes.mjs +1 -0
- package/scripts/enveloppe/enveloppe.mjs +113 -89
- package/scripts/enveloppe/lancer.sh +5 -3
- package/scripts/enveloppe/paquets-du-plan.mjs +4 -6
- package/scripts/enveloppe/travail-de-la-copie.mjs +11 -16
- package/scripts/etapes.mjs +10 -9
- package/scripts/etat-du-depot.mjs +2 -1
- package/scripts/faits-du-circuit.mjs +19 -19
- package/scripts/fermeture-de-la-machine.mjs +2 -2
- package/scripts/fichier-du-poste.mjs +3 -4
- package/scripts/fichiers-nommes.mjs +2 -1
- package/scripts/file-des-tickets.mjs +3 -1
- package/scripts/flux-de-la-nuit.mjs +39 -0
- package/scripts/flux-des-paquets.mjs +2 -1
- package/scripts/fusion-du-changelog.mjs +2 -1
- package/scripts/garde-de-la-memoire.mjs +1 -1
- package/scripts/gardes-du-cadre.mjs +2 -0
- package/scripts/greffons.mjs +2 -2
- package/scripts/grillhouse-maj.mjs +55 -150
- package/scripts/groupe-cles.mjs +2 -1
- package/scripts/index-interfaces.mjs +2 -0
- package/scripts/init.mjs +2 -1
- package/scripts/integration/file.mjs +3 -3
- package/scripts/integration/integrer.mjs +5 -6
- package/scripts/integration/rejeu.mjs +4 -2
- package/scripts/integration/verdict.mjs +2 -1
- package/scripts/jointure.d.ts +5 -1
- package/scripts/journal-des-etats.mjs +2 -2
- package/scripts/langages/cargo/binaires.mjs +3 -2
- package/scripts/langages/cargo/clippy.mjs +2 -0
- package/scripts/langages/cargo/commandes.mjs +72 -17
- package/scripts/langages/cargo/composants.mjs +4 -3
- package/scripts/langages/cargo/elements-du-lot.mjs +2 -0
- package/scripts/langages/cargo/etiquettes.mjs +87 -0
- package/scripts/langages/cargo/executables-de-tests.mjs +3 -1
- package/scripts/langages/cargo/exemples.mjs +6 -4
- package/scripts/langages/cargo/frontieres.mjs +2 -0
- package/scripts/langages/cargo/index-interfaces.mjs +2 -0
- package/scripts/langages/cargo/index.mjs +8 -9
- package/scripts/langages/cargo/migrations/0.28.4-tailles-des-tests.mjs +8 -8
- package/scripts/langages/cargo/migrations/0.34.0-executables-de-tests.mjs +7 -8
- package/scripts/langages/cargo/mise-a-jour.mjs +6 -3
- package/scripts/langages/cargo/sccache.mjs +10 -6
- package/scripts/langages/cargo/squelette.mjs +2 -0
- package/scripts/langages/cargo/tailles-des-tests.mjs +2 -0
- package/scripts/langages/cargo/verdict.mjs +8 -6
- package/scripts/langages/typescript/chemins-des-tests.mjs +2 -1
- package/scripts/langages/typescript/code-mort.mjs +2 -1
- package/scripts/langages/typescript/composants.mjs +7 -5
- package/scripts/langages/typescript/consommateurs-arbitres.mjs +17 -4
- package/scripts/langages/typescript/consommateurs.d.ts +2 -1
- package/scripts/langages/typescript/consommateurs.mjs +5 -7
- package/scripts/langages/typescript/construire.mjs +2 -1
- package/scripts/langages/typescript/elements-du-lot.mjs +2 -1
- package/scripts/langages/typescript/exemples.mjs +2 -1
- package/scripts/langages/typescript/frontieres.mjs +3 -2
- package/scripts/langages/typescript/index-interfaces.mjs +3 -2
- package/scripts/langages/typescript/index.mjs +3 -2
- package/scripts/langages/typescript/interfaces-contre-code.mjs +2 -1
- package/scripts/langages/typescript/lecteurs.mjs +2 -1
- package/scripts/langages/typescript/migrations/0.23.0-config-vitest.mjs +5 -6
- package/scripts/langages/typescript/migrations/0.24.4-noms-declares-inutilises.mjs +4 -8
- package/scripts/langages/typescript/migrations/0.24.6-lignes-mal-formees.mjs +5 -9
- package/scripts/langages/typescript/migrations/0.24.7-matiere-dans-les-tests.mjs +6 -10
- package/scripts/langages/typescript/migrations/0.25.0-chemins-des-tests.mjs +5 -6
- package/scripts/langages/typescript/migrations/0.25.0-tailles-des-tests.mjs +6 -8
- package/scripts/langages/typescript/migrations/0.30.0-prefixe-des-tickets.mjs +5 -4
- package/scripts/langages/typescript/migrations/0.30.0-tailles-des-outils-lourds.mjs +7 -7
- package/scripts/langages/typescript/migrations/0.30.0-titres-nommant-un-ticket.mjs +5 -6
- package/scripts/langages/typescript/migrations/0.33.0-binaire-de-jour.mjs +6 -6
- package/scripts/langages/typescript/migrations/0.33.0-tests-du-poste.mjs +5 -5
- package/scripts/langages/typescript/migrations/0.34.1-cache-des-outils.mjs +4 -4
- package/scripts/langages/typescript/migrations/0.49.0-tests-equipes.mjs +7 -7
- package/scripts/langages/typescript/mise-a-jour.mjs +5 -5
- package/scripts/langages/typescript/module-absent.mjs +2 -1
- package/scripts/langages/typescript/parcours.mjs +2 -1
- package/scripts/langages/typescript/references-par-les-types.mjs +2 -1
- package/scripts/langages/typescript/regle-des-tests.mjs +2 -1
- package/scripts/langages/typescript/resume-du-lanceur.mjs +1 -1
- package/scripts/langages/typescript/resumes.mjs +2 -1
- package/scripts/langages/typescript/squelette.mjs +2 -1
- package/scripts/langages/typescript/tailles-des-tests.mjs +5 -4
- package/scripts/langages/typescript/tests-de-nuit.mjs +12 -5
- package/scripts/langages/typescript/tests-du-poste.mjs +60 -21
- package/scripts/langages/typescript/tests.mjs +44 -66
- package/scripts/langages/typescript/titres-de-tests.mjs +2 -2
- package/scripts/langages/typescript/tranches.mjs +2 -1
- package/scripts/langages/typescript/turbo-des-paquets.mjs +87 -148
- package/scripts/langages/typescript/verdict.mjs +2 -1
- package/scripts/langages/typescript/verifier.mjs +64 -99
- package/scripts/langages/typescript/verrou-des-dependances.mjs +2 -1
- package/scripts/langages/typescript/vitest-config/avancement.reporter.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/base.mjs +5 -5
- package/scripts/langages/typescript/vitest-config/bornes.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/changements.mjs +6 -10
- package/scripts/langages/typescript/vitest-config/cibles.mjs +3 -3
- package/scripts/langages/typescript/vitest-config/delais.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/delais.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/duree.classement.mjs +1 -1
- package/scripts/langages/typescript/vitest-config/duree.reporter.mjs +4 -3
- package/scripts/langages/typescript/vitest-config/lances.mjs +3 -2
- package/scripts/langages/typescript/vitest-config/machine.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/mesure.mjs +1 -1
- package/scripts/langages/typescript/vitest-config/mesure.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/registre.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/resultats.mjs +2 -1
- package/scripts/langages/typescript/vitest-config/resultats.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest.nuit.config.mjs +3 -2
- package/scripts/langages-des-paquets.mjs +3 -1
- package/scripts/langages.mjs +5 -3
- package/scripts/lecture-unique.mjs +2 -1
- package/scripts/lint-des-scripts.mjs +1 -0
- package/scripts/machine.mjs +4 -4
- package/scripts/matiere-de-test.d.ts +2 -1
- package/scripts/matieres-lues.mjs +2 -0
- package/scripts/mesure/avancement.mjs +1 -1
- package/scripts/mesure/base-de-passe.mjs +10 -13
- package/scripts/mesure/pression.mjs +3 -4
- package/scripts/mesure-de-la-machine.mjs +2 -1
- package/scripts/migrations/0.23.0-charte-importee.mjs +7 -13
- package/scripts/migrations/0.23.0-crochets-de-seance.mjs +6 -8
- package/scripts/migrations/0.23.0-marche-du-projet.mjs +8 -12
- package/scripts/migrations/0.23.2-copies-du-cadre.mjs +9 -32
- package/scripts/migrations/0.24.0-circuit-simplifie.mjs +11 -39
- package/scripts/migrations/0.24.12-tri-des-decouvertes.mjs +6 -9
- package/scripts/migrations/0.24.2-api-extractor-du-paquet.mjs +8 -19
- package/scripts/migrations/0.25.0-script-des-tests.mjs +7 -13
- package/scripts/migrations/0.27.0-langages-dans-l-architecture.mjs +9 -23
- package/scripts/migrations/0.30.0-ci-appelle-la-verification.mjs +7 -9
- package/scripts/migrations/0.31.0-paquets-dans-le-graphe.mjs +7 -18
- package/scripts/migrations/0.33.0-cache-distant.mjs +6 -9
- package/scripts/migrations/0.33.0-ci-du-cadre.mjs +5 -8
- package/scripts/migrations/0.33.0-node-26.mjs +5 -8
- package/scripts/migrations/0.35.0-greffon-mattpocock-retire.mjs +5 -10
- package/scripts/migrations/0.44.0-node-26-seul.mjs +6 -9
- package/scripts/migrations/0.44.0-seuil-des-codes-de-tickets.mjs +6 -7
- package/scripts/migrations/0.47.0-ci-de-main.mjs +6 -7
- package/scripts/migrations/0.48.0-ci-declenchee-par-la-file.mjs +6 -6
- package/scripts/migrations/0.48.0-poussee-retiree.mjs +3 -5
- package/scripts/migrations/0.49.0-reservation-de-trois-coeurs.mjs +3 -4
- package/scripts/migrations/0.50.0-reglages-hors-de-la-charte.mjs +81 -0
- package/scripts/migrations-des-gardes.mjs +2 -0
- package/scripts/migrations.mjs +4 -0
- package/scripts/nuit.sh +48 -15
- package/scripts/outil.mjs +2 -1
- package/scripts/outils-cles.mjs +6 -6
- package/scripts/paquet-npm.mjs +3 -2
- package/scripts/paquet.mjs +3 -4
- package/scripts/paquets.d.ts +1 -1
- package/scripts/paquets.mjs +2 -0
- package/scripts/passe-de-la-machine.mjs +9 -12
- package/scripts/places-de-la-machine.mjs +36 -53
- package/scripts/places-du-serveur.mjs +5 -4
- package/scripts/plafond-de-la-machine.mjs +19 -19
- package/scripts/poussee-retiree.mjs +2 -1
- package/scripts/prefixe-des-tickets.mjs +1 -0
- package/scripts/preparation.mjs +2 -1
- package/scripts/recommencer.mjs +2 -2
- package/scripts/references-changees.mjs +1 -1
- package/scripts/registre-des-resultats.mjs +3 -1
- package/scripts/regles-des-places.mjs +4 -6
- package/scripts/repli-de-la-nuit.mjs +107 -35
- package/scripts/reponses-du-circuit.mjs +4 -3
- package/scripts/reprise.mjs +3 -2
- package/scripts/resultats.mjs +71 -93
- package/scripts/retirer-copie.sh +2 -1
- package/scripts/retirer-les-copies-finies.mjs +2 -1
- package/scripts/seances.mjs +3 -2
- package/scripts/services-du-noyau.mjs +3 -0
- package/scripts/session-start.sh +0 -6
- package/scripts/sortie.mjs +2 -1
- package/scripts/sources.mjs +2 -0
- package/scripts/sous-commandes.mjs +2 -1
- package/scripts/sous-modules.sh +24 -43
- package/scripts/style-a-l-ecriture.mjs +2 -0
- package/scripts/tableau-des-composants.mjs +5 -7
- package/scripts/tableau.mjs +6 -5
- package/scripts/taches-du-graphe.mjs +3 -0
- package/scripts/ticket-du-circuit.mjs +1 -1
- package/scripts/ticket.mjs +3 -0
- package/scripts/transitions.mjs +30 -19
- package/scripts/un-commit-par-ticket.mjs +2 -1
- package/scripts/verdict-de-la-nuit.mjs +2 -1
- package/scripts/verrou-de-fichier.mjs +1 -0
- package/scripts/verrous/commande.mjs +2 -1
- package/scripts/verrous/ecriture-hors-enveloppe.mjs +1 -0
- package/scripts/verrous/ticket-du-sous-agent.mjs +1 -0
- package/scripts/verrous/verrou.mjs +3 -3
- package/scripts/workflows-du-cadre.mjs +2 -1
- package/skills/architecte/SKILL.md +203 -0
- package/skills/architecte/references/exemple-d-architecture.md +159 -0
- package/skills/developpeur/SKILL.md +6 -10
- package/skills/explorateur/SKILL.md +1 -1
- package/skills/grill/SKILL.md +4 -5
- package/skills/grill/references/paquets.md +5 -8
- package/skills/pitmaster/SKILL.md +179 -268
- package/skills/pitmaster/references/cadre.md +7 -6
- package/skills/pitmaster/references/consigne-agent.md +36 -32
- package/skills/pitmaster/references/tour.md +2 -2
- package/skills/redacteur/references/documents-d-un-composant.md +10 -8
- package/skills/testwriter/SKILL.md +8 -11
package/scripts/nuit.sh
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# The night
|
|
2
|
+
# The night pass (packages/grillhouse/docs/architecture/entree.md §3.1 « Passe de nuit », §5.3):
|
|
3
|
+
# once a day, the full pass played for real, then what the day never plays: the night
|
|
3
4
|
# tests and the measures of time (the time budget benches and the time witnesses). During the day `npm run verifier` (the integration's) plays
|
|
4
5
|
# what the changes since the last green touch (scripts/integration/integrer.mjs,
|
|
5
6
|
# scripts/dernier-vert.mjs); the module of the project's language plays each step
|
|
6
|
-
# (scripts/jointure.d.ts).
|
|
7
|
+
# (scripts/jointure.d.ts). The paragraphs below are the details only this script knows (marks,
|
|
8
|
+
# files, bounds, the text of a night ticket).
|
|
7
9
|
#
|
|
8
10
|
# npx grillhouse nuit from the root of the project, which runs it alone
|
|
9
11
|
# (src/temporal/nuits/commande.ts): the workflow of the nights of the
|
|
@@ -55,8 +57,8 @@
|
|
|
55
57
|
# a project that installs the frame, even with a copy of the frame's package.json under
|
|
56
58
|
# packages/grillhouse/, builds nothing. A failed build turns the night red, and nothing runs.
|
|
57
59
|
# - The night tests: after the full pass, the night tests, then the measures of time alone (the
|
|
58
|
-
# time budget benches and the time witnesses), which `npm test` and the integration leave out
|
|
59
|
-
#
|
|
60
|
+
# time budget benches and the time witnesses), which `npm test` and the integration leave out,
|
|
61
|
+
# played by the command `tests-de-nuit` of the module of the copy's language
|
|
60
62
|
# (the module typescript's: the files `*.nuit.test.*` and `*.nuit.spec.*`, then the files
|
|
61
63
|
# `*.budget.test.*`, `*.budget.spec.*` and those that import `mesurerAuRepos`, one at a time, by
|
|
62
64
|
# Vitest; the module python's, `*_nuit_test.py`; the module cargo's, the test targets
|
|
@@ -67,9 +69,13 @@
|
|
|
67
69
|
# bound 15 min) and plays once more; green then, the night goes on; à repasser again, or no rest in the bound, the night
|
|
68
70
|
# ends there, « à repasser », red if the full pass is.
|
|
69
71
|
# - The two parts of the night: a project whose `.github/workflows/nuit.yml` plays on the label
|
|
70
|
-
# `pc2` leaves PC2 its night tests but those tagged @poste
|
|
71
|
-
#
|
|
72
|
-
#
|
|
72
|
+
# `pc2` leaves PC2 its night tests but those tagged @poste (the flow's tranches,
|
|
73
|
+
# `tests-de-nuit --hors-du-poste`). The measures of time play on PC3, on dedicated cores, unless
|
|
74
|
+
# the flow declares a job that plays them (a command `tests-de-nuit --mesures`, as the flow of
|
|
75
|
+
# Grillhouse: scripts/flux-de-la-nuit.mjs): then that job's verdict, read for the commit of the
|
|
76
|
+
# night, stands for them, and PC3 plays them only when the job was interrupted. The night of PC3
|
|
77
|
+
# plays the tests tagged @poste, then the measures (`tests-de-nuit --du-poste`, on its part), then
|
|
78
|
+
# reads the flow of its commit by `gh`
|
|
73
79
|
# (scripts/repli-de-la-nuit.mjs): a tranche whose job has not started 60 minutes after the flow's
|
|
74
80
|
# hour is cancelled and played on PC3, a tranche started then interrupted plays whole again, a
|
|
75
81
|
# tranche finished on PC2, green or red, is never replayed; the log says which tranches played
|
|
@@ -99,13 +105,14 @@
|
|
|
99
105
|
# why and the place it holds, a kept copy whose ticket is closed losing what the tools of its
|
|
100
106
|
# languages wrote there. The night names its own copy to the removal, its steps played: the copy
|
|
101
107
|
# stays, and loses what the tools of its languages wrote there (`target`, `.turbo`), its
|
|
102
|
-
# `node_modules` kept, which its next preparation would remove anyway
|
|
108
|
+
# `node_modules` kept, which its next preparation would remove anyway. The
|
|
103
109
|
# removal never changes the night's verdict; the end of each circuit runs it too
|
|
104
110
|
# (scripts/circuit.mjs), the night's copy untouched.
|
|
105
111
|
# - It takes no lock of the integration or of the queue (scripts/integration/file.mjs): an
|
|
106
112
|
# integration and the queue run during the night, each in its own copy.
|
|
107
113
|
# - Its log is <git common dir>/nuit/<date>.log. Green: HEAD becomes the last green commit
|
|
108
|
-
# (<git common dir>/nuit/dernier-vert)
|
|
114
|
+
# (<git common dir>/nuit/dernier-vert), only once the measures of time were played and are green,
|
|
115
|
+
# by PC3 or by the flow's job for that commit. Red: the red tasks, each grouped by its cause as an
|
|
109
116
|
# alerting system groups by fingerprint: each red task of the full pass (the file
|
|
110
117
|
# GRILLHOUSE_ROUGES names, which the verification of the module writes: `<task>` per line, then
|
|
111
118
|
# a tab and the command that replays it alone when the language has one, no task à repasser
|
|
@@ -185,7 +192,7 @@ preparer() {
|
|
|
185
192
|
fi
|
|
186
193
|
partages=$(bash "$ici/sous-modules.sh" pose "$copie")
|
|
187
194
|
}
|
|
188
|
-
# The part of PC2: reads the
|
|
195
|
+
# The part of PC2: reads the Nuit flow of the commit the night plays by `gh` (scripts/repli-de-la-nuit.mjs), which cancels the
|
|
189
196
|
# run when a tranche has not started 60 minutes after the flow's hour, then plays on PC3, whole, each
|
|
190
197
|
# tranche not played on PC2 (never one finished there, green or red). A tranche still running or
|
|
191
198
|
# waiting leaves the part of PC2 « à repasser » (75). The statement says which tranches played where.
|
|
@@ -197,18 +204,19 @@ repli() {
|
|
|
197
204
|
code_pc2=75
|
|
198
205
|
return
|
|
199
206
|
fi
|
|
200
|
-
if ! decision="$(node "$ici/repli-de-la-nuit.mjs" "$depot" "$tranches")"; then
|
|
207
|
+
if ! decision="$(node "$ici/repli-de-la-nuit.mjs" "$depot" "$tranches" "" "$tete")"; then
|
|
201
208
|
echo "⏱ le repli de la nuit ne lit pas le flux Nuit : la part de PC2 reste à repasser."
|
|
202
209
|
code_pc2=75
|
|
203
210
|
return
|
|
204
211
|
fi
|
|
205
|
-
local lignes rejouer= rouges_pc2= attend=
|
|
206
|
-
lignes="$(printf '%s' "$decision" | node -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>{const d=JSON.parse(s);const l=k=>(d[k]??[]).join(" ");process.stdout.write(["pc2","pc3","rouges","enAttente","enCours"].map(k=>k+"\t"+l(k)).join("\n")+"\n")})')"
|
|
212
|
+
local lignes rejouer= rouges_pc2= attend= mesures_du_flux=
|
|
213
|
+
lignes="$(printf '%s' "$decision" | node -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>{const d=JSON.parse(s);const l=k=>(d[k]??[]).join(" ");process.stdout.write(["pc2","pc3","rouges","enAttente","enCours","mesures"].map(k=>k+"\t"+l(k)).join("\n")+"\n")})')"
|
|
207
214
|
while IFS= read -r ligne; do
|
|
208
215
|
case "$ligne" in
|
|
209
216
|
pc2$'\t'*) echo "relevé de la nuit : tranches jouées sur PC2 : ${ligne#pc2$'\t'}" ;;
|
|
210
217
|
pc3$'\t'*) rejouer="${ligne#pc3$'\t'}"; echo "relevé de la nuit : tranches jouées sur PC3 : ${rejouer:-aucune}" ;;
|
|
211
218
|
rouges$'\t'*) rouges_pc2="${ligne#rouges$'\t'}" ;;
|
|
219
|
+
mesures$'\t'*) mesures_du_flux="${ligne#mesures$'\t'}"; echo "relevé de la nuit : mesures de temps du flux : ${mesures_du_flux}" ;;
|
|
212
220
|
enAttente$'\t'*|enCours$'\t'*) attend="$attend ${ligne#*$'\t'}" ;;
|
|
213
221
|
esac
|
|
214
222
|
done <<< "$lignes"
|
|
@@ -229,6 +237,28 @@ repli() {
|
|
|
229
237
|
attend="$attend $t"
|
|
230
238
|
fi
|
|
231
239
|
done
|
|
240
|
+
# The measures of time: the flow's job plays them when its file declares one; the night of the
|
|
241
|
+
# poste plays them itself otherwise (tests-de-nuit --du-poste), so no last green without them.
|
|
242
|
+
if node "$ici/flux-de-la-nuit.mjs" mesures "$copie"; then
|
|
243
|
+
case "$mesures_du_flux" in
|
|
244
|
+
rouge)
|
|
245
|
+
echo "✗ les mesures de temps du flux sont rouges sur PC2."
|
|
246
|
+
etapes_pc2+=("les mesures de temps de la nuit sur PC2")
|
|
247
|
+
taches_pc2+=("les mesures de temps de la nuit sur PC2") ;;
|
|
248
|
+
a-rejouer)
|
|
249
|
+
(cd "$copie" && monter node "$ici/commande-du-langage.mjs" tests-de-nuit --mesures)
|
|
250
|
+
code=$?
|
|
251
|
+
if [ "$code" -eq 75 ]; then
|
|
252
|
+
attend="$attend mesures"
|
|
253
|
+
elif [ "$code" -ne 0 ]; then
|
|
254
|
+
echo "✗ les mesures de temps, rejouées sur PC3, sont rouges."
|
|
255
|
+
etapes_pc2+=("les mesures de temps de la nuit, rejouées sur PC3")
|
|
256
|
+
taches_pc2+=("les mesures de temps de la nuit sur PC3 (repli)")
|
|
257
|
+
fi ;;
|
|
258
|
+
verte) ;;
|
|
259
|
+
*) attend="$attend mesures" ;;
|
|
260
|
+
esac
|
|
261
|
+
fi
|
|
232
262
|
if [ "${#etapes_pc2[@]}" -gt 0 ]; then
|
|
233
263
|
code_pc2=1
|
|
234
264
|
elif [ -n "${attend// /}" ]; then
|
|
@@ -365,8 +395,11 @@ process.exit(paquets(process.argv[2]).some(p => p.pkg.name === "@roomi-fields/gr
|
|
|
365
395
|
fi
|
|
366
396
|
fi
|
|
367
397
|
# A project whose Nuit flow plays on PC2 (its runner label `pc2`) leaves PC2 the night tests that
|
|
368
|
-
# do not need the poste: PC3 plays the tests tagged @poste
|
|
369
|
-
#
|
|
398
|
+
# do not need the poste: PC3 plays the tests tagged @poste, then the tranches PC2 did not play
|
|
399
|
+
# (the fallback, scripts/repli-de-la-nuit.mjs). The measures of time play on PC3 too, unless the
|
|
400
|
+
# flow declares a job that plays them (`tests-de-nuit --mesures`, scripts/flux-de-la-nuit.mjs,
|
|
401
|
+
# the flow of Grillhouse): then the verdict of its job, read for the commit of the night, counts.
|
|
402
|
+
# The last green is set only when the measures were played and are green, by PC3 or by that job.
|
|
370
403
|
local sur_pc2=0 tranches=
|
|
371
404
|
if grep -q "\bpc2\b" "$copie/.github/workflows/nuit.yml" 2>/dev/null; then
|
|
372
405
|
sur_pc2=1
|
package/scripts/outil.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// The installation of the published version that leads the frame's repository
|
|
3
|
-
// (scripts/aiguillage.mjs, the key `grillhouse.outil`, the cache, the switch).
|
|
3
|
+
// (scripts/aiguillage.mjs, the key `grillhouse.outil`, the cache, the switch). The mechanism is
|
|
4
|
+
// installation.md §5.5 (packages/grillhouse/docs/architecture/).
|
|
4
5
|
//
|
|
5
6
|
// npx grillhouse outil installs the version the key names, nothing when it is there
|
|
6
7
|
// npx grillhouse outil <x.y.z> writes the key, then installs that version
|
package/scripts/outils-cles.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// The reading of the `grillhouse.outils` key of a package.json, the tools of the project
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
// envelope (scripts/enveloppe/enveloppe.mjs) mounts each path read-only and passes each variable to
|
|
1
|
+
// The reading of the `grillhouse.outils` key of a package.json, the tools of the project:
|
|
2
|
+
// `{ "<VARIABLE>": "<chemin>" }`, each path absolute or under `~`. The envelope
|
|
3
|
+
// (scripts/enveloppe/enveloppe.mjs) mounts each path read-only and passes each variable to
|
|
5
4
|
// the session; the circuit's passes (scripts/circuit.mjs), `npm run verifier`
|
|
6
5
|
// (bin/grillhouse.mjs) and the night (scripts/nuit.sh) play with the same variables, so that every
|
|
7
|
-
// one of them sees the same tool, whatever its launcher's environment.
|
|
6
|
+
// one of them sees the same tool, whatever its launcher's environment. Architecture:
|
|
7
|
+
// docs/architecture/machine.md (§1, §5.5).
|
|
8
8
|
//
|
|
9
9
|
// - The key is absent, null or an object; each name is a variable's (`[A-Za-z_][A-Za-z0-9_]*`),
|
|
10
10
|
// each value a string, a path absolute or under `~` (the home), that exists. Every fault is named
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
// `~/.local/share/keyrings`, the keyrings of the machine's credentials. A path that is a link is
|
|
19
19
|
// judged by its target too, which the envelope mounts with it.
|
|
20
20
|
// - A tool is a string path (unhashed) or `{ "chemin": "<chemin>", "contenu": true }`: hashed by
|
|
21
|
-
// content
|
|
21
|
+
// content. Its fingerprint
|
|
22
22
|
// (`empreinteDeLOutil`, `empreintesDe`) is given to every pass as `<VARIABLE>_EMPREINTE`, which
|
|
23
23
|
// the root turbo.json's `globalEnv` names so that Turborepo hashes its value. Any other object
|
|
24
24
|
// form is refused, its key named; a hashed tool absent, unreadable or special is refused too.
|
package/scripts/paquet-npm.mjs
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// the entry by which it enters the graph of Turborepo, which reads a `package.json` beside each
|
|
3
3
|
// project that is no JavaScript (node_modules/turbo/docs/guides/multi-language.mdx:191), as Turborepo's
|
|
4
4
|
// own example of Rust writes one beside the crate. `grillhouse paquet` writes it with the package
|
|
5
|
-
// (./paquet.mjs), and the migration of
|
|
6
|
-
// (./migrations/0.31.0-paquets-dans-le-graphe.mjs).
|
|
5
|
+
// (./paquet.mjs), and the migration of the packages of an existing project
|
|
6
|
+
// (./migrations/0.31.0-paquets-dans-le-graphe.mjs). The mechanism is installation.md §3.1
|
|
7
|
+
// (« Création d'un paquet »), in packages/grillhouse/docs/architecture/.
|
|
7
8
|
//
|
|
8
9
|
// - Its name is the manifest's: the `name` of the `[package]` of a Cargo.toml, of the `[project]`
|
|
9
10
|
// of a pyproject.toml.
|
package/scripts/paquet.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// The creation of a package, out of the circuit: the third of the four times of a package's birth
|
|
3
3
|
// (the common charter, « La naissance d'un paquet »: the grill, the writing of its row and its
|
|
4
|
-
// documents, this command, then a ticket of code), as the generators of Nx
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
// does not pass by the circuit, which works on a package that exists.
|
|
4
|
+
// documents, this command, then a ticket of code), as the generators of Nx and `cargo new --lib`
|
|
5
|
+
// write one. A skeleton has neither behaviour nor test. The mechanism is installation.md §3.1
|
|
6
|
+
// (« Création d'un paquet »), tests.md §5.6, in packages/grillhouse/docs/architecture/.
|
|
8
7
|
//
|
|
9
8
|
// npx grillhouse paquet <chemin> from the root of the project, <chemin> from it
|
|
10
9
|
//
|
package/scripts/paquets.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// The types of ./paquets.mjs as the entry `@roomi-fields/grillhouse/paquets` publishes it, for a
|
|
2
|
-
// project's guard that leaves out the packages out of the frame.
|
|
2
|
+
// project's guard that leaves out the packages out of the frame (docs/architecture/tests.md §3.4).
|
|
3
3
|
|
|
4
4
|
/** The code of `src/` (the root's, or a package's under `packages/`), as a pattern of a path from
|
|
5
5
|
* the root: what a project publishes, out of its tests. */
|
package/scripts/paquets.mjs
CHANGED
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
//
|
|
20
20
|
// A project's guard imports `horsCadre` by the package's entry `@roomi-fields/grillhouse/paquets`,
|
|
21
21
|
// its types in ./paquets.d.ts (docs/ARCHITECTURE.md, the package's named entries).
|
|
22
|
+
//
|
|
23
|
+
// The packages are the nodes of the graph of the tasks: docs/architecture/tests.md §2.1 and §3.1.
|
|
22
24
|
import { spawnSync } from 'node:child_process';
|
|
23
25
|
import { existsSync, globSync, readdirSync, readFileSync } from 'node:fs';
|
|
24
26
|
import path from 'node:path';
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
// A pass on the machine:
|
|
2
|
-
// `prendreUnePart`), waiting
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
// (GRILLHOUSE_TRAVAILLEURS). A pass takes no place of the machine: a place is a session of an
|
|
8
|
-
// agent or a circuit.
|
|
1
|
+
// A pass on the machine: it takes its part of the budget (scripts/places-de-la-machine.mjs
|
|
2
|
+
// `prendreUnePart`), waiting when the parts held leave too little, and plays held to that part
|
|
3
|
+
// by a control group of its own (`systemd-run --user --scope`) whose CPU weight and memory bound
|
|
4
|
+
// come from the part, with no hard CPU ceiling. Its tools receive the cores of its part
|
|
5
|
+
// (GRILLHOUSE_TRAVAILLEURS). A pass takes no place. Architecture:
|
|
6
|
+
// docs/architecture/machine.md (§3.1, §5.1, §6).
|
|
9
7
|
//
|
|
10
8
|
// - A pass out of the envelope of an agent is held to its part: the heavy pass of a circuit (its
|
|
11
9
|
// command, launched by the circuit), `npm run verifier`, a targeted `npm test`, the CI on a
|
|
12
|
-
// machine of ours, the night. The commands an agent launches in its envelope take no part
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
// tenue ».
|
|
10
|
+
// machine of ours, the night. The commands an agent launches in its envelope take no part and
|
|
11
|
+
// play without a group; where the system gives no group (no manager of the user), the pass
|
|
12
|
+
// plays without one too; each says it once, « joue sans part tenue ».
|
|
16
13
|
// - A heavy pass keeps what it consumes (scripts/consommation-des-passes.mjs): a pass that is the
|
|
17
14
|
// process itself (`npm run verifier`) enters its group by `StartTransientUnit` of the manager
|
|
18
15
|
// of the user, the weight and the bound of its part among its properties; a pass the circuit
|
|
@@ -1,61 +1,44 @@
|
|
|
1
|
-
// The places of the machine
|
|
2
|
-
// session or a
|
|
3
|
-
//
|
|
4
|
-
// Each session of an agent (testwriter, developer, reviewer…) takes a place at its start and gives
|
|
5
|
-
// it back at its end; a circuit that waits for a question, or between two sessions, holds none.
|
|
6
|
-
// A pass takes no place: it takes its part of the budget of the machine (below), which alone
|
|
7
|
-
// bounds it. A place is a session of an agent or a circuit; a part is a pass. Witness: 2026-11-02,
|
|
8
|
-
// load 39 on 12 cores with five circuits at once (grillhouse-9kq).
|
|
1
|
+
// The places and the parts of the machine, taken by a synchronous caller: a place is held by a
|
|
2
|
+
// session of an agent or a circuit, a part by a pass. Architecture: docs/architecture/machine.md
|
|
3
|
+
// (§3.1, §5.1, §5.2, §5.4).
|
|
9
4
|
//
|
|
10
|
-
// - The places live on the Temporal server, in the
|
|
11
|
-
// (src/temporal/places/deroule.ts), which grants them by the rule of
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
5
|
+
// - The places live on the Temporal server, in the workflow of the machine
|
|
6
|
+
// (src/temporal/places/deroule.ts), which grants them by the rule of ./regles-des-places.mjs
|
|
7
|
+
// and frees the place of a process gone; this module reads and takes them by
|
|
8
|
+
// ./places-du-serveur.mjs, in a process of its own. A session takes a place at its start and
|
|
9
|
+
// gives it back at its end.
|
|
15
10
|
// - The server is required on the workstation: one that does not answer stops the taking, named.
|
|
16
|
-
// In the CI (CI set) no place is taken. A trial machine (GRILLHOUSE_PARTS_DE_LA_MACHINE
|
|
17
|
-
//
|
|
18
|
-
// names, and none without it, so that no test takes a place of the user's machine.
|
|
11
|
+
// In the CI (CI set) no place is taken. A trial machine (GRILLHOUSE_PARTS_DE_LA_MACHINE) takes
|
|
12
|
+
// its places on the server GRILLHOUSE_PLACES_D_ESSAI names, and none without it.
|
|
19
13
|
// - A session that holds a place carries its mark to its children (GRILLHOUSE_PLACE_TENUE). In
|
|
20
14
|
// the envelope of an agent (GRILLHOUSE_ENVELOPPE set, ./enveloppe/paquets-du-plan.mjs) no place
|
|
21
|
-
// and no part is taken: the
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
//
|
|
25
|
-
// GRILLHOUSE_PLACES of `~/.config/grillhouse/machine.env`, 3 without it), which the workflow
|
|
26
|
-
// reads again at each judgement; two starts are spaced by ESPACEMENT_MS
|
|
27
|
-
// (GRILLHOUSE_ESPACEMENT_MS names another, in ms), which the workflow reads when it starts.
|
|
15
|
+
// and no part is taken: the envelope passes on the mark of the session's place.
|
|
16
|
+
// - The ceiling of the places is `plafondDe` of ./plafond-de-la-machine.mjs (3 without a
|
|
17
|
+
// setting), read again at each judgement; two starts are spaced by ESPACEMENT_MS
|
|
18
|
+
// (GRILLHOUSE_ESPACEMENT_MS names another, in ms), read when the workflow starts.
|
|
28
19
|
// - A wait says its reason (place, rank, load, memory or spacing) when it begins and every 30 s,
|
|
29
|
-
// and is bounded
|
|
30
|
-
// withdrawn.
|
|
31
|
-
//
|
|
32
|
-
//
|
|
33
|
-
//
|
|
34
|
-
//
|
|
35
|
-
//
|
|
36
|
-
//
|
|
37
|
-
//
|
|
38
|
-
//
|
|
39
|
-
//
|
|
40
|
-
//
|
|
41
|
-
//
|
|
42
|
-
//
|
|
43
|
-
//
|
|
44
|
-
//
|
|
45
|
-
//
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
//
|
|
49
|
-
//
|
|
50
|
-
//
|
|
51
|
-
// - A part holds precise threads (`fils` of its file): the passes choose them on the topology of the
|
|
52
|
-
// system (./coeurs-dedies.mjs `choisirLesCoeurs`), none held by another. A measure of time
|
|
53
|
-
// (`mesure`) takes dedicated cores, physical cores whole (its sibling threads with them), the
|
|
54
|
-
// number its project declares (`grillhouse.mesure`) or the default part of the budget, and the
|
|
55
|
-
// other passes go on on the cores left; it waits for its cores, keeping its rank, then for the
|
|
56
|
-
// rest of them (their load, out of it, under 10 %), within the bound of the wait.
|
|
57
|
-
// - A pass that holds a part carries its mark to its children (GRILLHOUSE_PART_TENUE): a pass they
|
|
58
|
-
// play takes no second part, and the workers of its tools are the cores of its part
|
|
20
|
+
// and is bounded by GRILLHOUSE_ATTENTE_MACHINE_MS: at the bound, « à repasser » (75), the
|
|
21
|
+
// request withdrawn. It keeps the rank of its arrival (`prendreUnRang`), kept from one session
|
|
22
|
+
// to the next.
|
|
23
|
+
// - The workers of the tests of a session are `travailleursDe`: max(1, cores ÷ places), passed
|
|
24
|
+
// to the tool of each language (GRILLHOUSE_TRAVAILLEURS).
|
|
25
|
+
// - A part is the share of the budget (./plafond-de-la-machine.mjs) that every pass takes: the
|
|
26
|
+
// heavy pass of a circuit, `npm run verifier`, a targeted `npm test`, the CI on a machine of
|
|
27
|
+
// ours, the night. A pass starts when its part fits in what the parts held leave of the budget
|
|
28
|
+
// and the machine admits it (`admissionDePart` of ./regles-des-places.mjs); else it waits, says
|
|
29
|
+
// what for when it begins and every 30 s, keeps its rank (the measure of the frame before a
|
|
30
|
+
// project's, then the order of arrival) and stops at « à repasser » (75) at the bound.
|
|
31
|
+
// - The parts are one file per pass in `${XDG_STATE_HOME:-~/.local/state}/grillhouse/parts`
|
|
32
|
+
// (GRILLHOUSE_PARTS_DE_LA_MACHINE names another): the part held or waited for, its project,
|
|
33
|
+
// ticket, kind, rank and progress directory, which the board reads (`lireLesParts`). A pass
|
|
34
|
+
// whose process is gone frees its part.
|
|
35
|
+
// - A part holds precise threads (`fils` of its file), chosen on the topology by
|
|
36
|
+
// ./coeurs-dedies.mjs `choisirLesCoeurs`, none held by another. A measure of time (`mesure`)
|
|
37
|
+
// takes physical cores whole, the number its project declares (`grillhouse.mesure`) or the
|
|
38
|
+
// default part of the budget; it waits for its cores, then for the load of the others to be
|
|
39
|
+
// under 10 %, within the bound of the wait.
|
|
40
|
+
// - A pass that holds a part carries its mark to its children (GRILLHOUSE_PART_TENUE): a pass
|
|
41
|
+
// they play takes no second part, and the workers of its tools are the cores of its part
|
|
59
42
|
// (GRILLHOUSE_TRAVAILLEURS).
|
|
60
43
|
import { randomUUID } from 'node:crypto';
|
|
61
44
|
import { spawnSync } from 'node:child_process';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
// The places of the machine
|
|
2
|
-
// that a synchronous caller (scripts/places-de-la-machine.mjs)
|
|
3
|
-
//
|
|
4
|
-
// (src/temporal/places/client.ts) speaks to it.
|
|
1
|
+
// The synchronous bridge to the places of the machine: it reads and takes them on the Temporal
|
|
2
|
+
// server in a process of its own, so that a synchronous caller (scripts/places-de-la-machine.mjs)
|
|
3
|
+
// waits for them as for a lock. The workflow (src/temporal/places/deroule.ts) holds them, its
|
|
4
|
+
// client (src/temporal/places/client.ts) speaks to it. Architecture:
|
|
5
|
+
// docs/architecture/machine.md (§3.1, §5.1).
|
|
5
6
|
//
|
|
6
7
|
// node places-du-serveur.mjs rang
|
|
7
8
|
// node places-du-serveur.mjs prendre <demande>
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
// The settings of the poste for the machine
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
// the
|
|
5
|
-
//
|
|
1
|
+
// The settings of the poste for the machine and the budget they give, read again at each
|
|
2
|
+
// judgement so that a setting changed counts without restarting anything: the workflow of the
|
|
3
|
+
// machine reads the ceiling of the places by an activity (src/temporal/places/activites.ts), the
|
|
4
|
+
// board and the number of workers of the tests by the same function. Architecture:
|
|
5
|
+
// docs/architecture/machine.md (§3.1, §4.1).
|
|
6
6
|
//
|
|
7
|
+
// The ceiling of the places (`plafondDe`; it bounds the places only, not the parts):
|
|
7
8
|
// - The file of the poste `machine.env`, under the frame's directory of configuration
|
|
8
|
-
// (`~/.config/grillhouse/`, scripts/fichier-du-poste.mjs), holds `GRILLHOUSE_PLACES=<n
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
// a test) is read instead of the file. Without either, PLAFOND_PAR_DEFAUT, 3.
|
|
9
|
+
// (`~/.config/grillhouse/`, scripts/fichier-du-poste.mjs), holds `GRILLHOUSE_PLACES=<n>`.
|
|
10
|
+
// - The environment wins: GRILLHOUSE_PLACES set (a trial machine, a test) is read instead of the
|
|
11
|
+
// file. Without either, PLAFOND_PAR_DEFAUT, 3.
|
|
12
12
|
// - A value that is not a positive integer is refused by its name and its place.
|
|
13
13
|
//
|
|
14
14
|
// The budget of the machine and the part of a pass (functions with the hardware and the settings
|
|
15
|
-
// as input, nothing read from the machine)
|
|
16
|
-
// and Bazel bounds `--local_resources`:
|
|
15
|
+
// as input, nothing read from the machine):
|
|
17
16
|
// - The reserve of the user, the share of the machine no pass takes: GRILLHOUSE_RESERVE_COEURS
|
|
18
|
-
// (by default min(4, max(0, cores − 4)): 0 on 4 cores or fewer, 2 on 6, 4 from 8) and
|
|
19
|
-
//
|
|
17
|
+
// (by default min(4, max(0, cores − 4)): 0 on 4 cores or fewer, 2 on 6, 4 from 8) and
|
|
18
|
+
// GRILLHOUSE_RESERVE_MEMOIRE_GO (4 GB), the environment first, then `machine.env`; zero is
|
|
19
|
+
// admitted, a value that is not a whole number ≥ 0 is refused by its name.
|
|
20
20
|
// - The budget is the cores and the memory of the machine less the reserve; a reserve that leaves
|
|
21
21
|
// no core or no memory is refused by its name.
|
|
22
|
-
// - The part of a pass is its cores and its memory
|
|
23
|
-
//
|
|
24
|
-
//
|
|
25
|
-
//
|
|
26
|
-
//
|
|
27
|
-
// part larger than the budget is the budget (one pass at a time)
|
|
22
|
+
// - The part of a pass (`partDe`) is its cores and its memory, within the budget and one core at
|
|
23
|
+
// least. Its cores are those its project declares (`grillhouse.part` of its `package.json`),
|
|
24
|
+
// else COEURS_PAR_DEFAUT; a direct pass has COEURS_DU_DIRECT, fixed. Its memory is the declared
|
|
25
|
+
// one, else the largest peak the project measured plus a quarter, never under a floor (the
|
|
26
|
+
// share of the budget that max(4, a third of its cores) cores hold, which it is without a
|
|
27
|
+
// measure). A part larger than the budget is the budget (one pass at a time).
|
|
28
28
|
import { readFileSync } from 'node:fs';
|
|
29
29
|
import { cpus, totalmem } from 'node:os';
|
|
30
30
|
import path from 'node:path';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
// The key `grillhouse.poussee`
|
|
1
|
+
// The refusal of the key `grillhouse.poussee` (packages/grillhouse/docs/architecture/entree.md
|
|
2
|
+
// §3.3, « La file et main »; §5.1): the frame carries no such key, one branch, main, receives every lot (the
|
|
2
3
|
// trunk-based development of Google and Chromium). This one reading serves the queue
|
|
3
4
|
// (scripts/integration/file.mjs), the night (scripts/nuit.sh) and the pre-push guard
|
|
4
5
|
// (scripts/branche-de-nuit.mjs): whatever the value of the key (null, an object, a string), the
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// commented out and keeps the prefix in its database, so the frame writes the key itself, by one
|
|
5
5
|
// function: the preparation of a new project (./preparation.mjs) and the update of any project
|
|
6
6
|
// (`mettreAJour`, which writes the key when no active one exists, the value being the store's).
|
|
7
|
+
// The mechanism is installation.md §5.1 and §5.2 (packages/grillhouse/docs/architecture/).
|
|
7
8
|
import { readFileSync, writeFileSync } from 'node:fs';
|
|
8
9
|
import path from 'node:path';
|
|
9
10
|
import { pathToFileURL } from 'node:url';
|
package/scripts/preparation.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// The preparation of a project for its first session, which `grillhouse init` runs on the project
|
|
2
|
-
// it creates (scripts/init.mjs). Idempotent: a second preparation changes nothing.
|
|
2
|
+
// it creates (scripts/init.mjs). Idempotent: a second preparation changes nothing. The mechanism
|
|
3
|
+
// is installation.md §5.1 (packages/grillhouse/docs/architecture/).
|
|
3
4
|
//
|
|
4
5
|
// - git: the directory becomes a repository when it is none.
|
|
5
6
|
// - Beads, the ticket store the skills work from: the tool (`bd`, installed by
|
package/scripts/recommencer.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// `grillhouse circuit <ticket> --recommencer
|
|
1
|
+
// `grillhouse circuit <ticket> --recommencer` (circuit.md §5.4): the removal of what a ticket's circuit left, so that
|
|
2
2
|
// a fresh launch starts from the testwriter in a fresh copy. It resets the copy, not Temporal: the
|
|
3
3
|
// copy (whatever work it carries, the gesture being asked for), its branch, its sheets, its journal
|
|
4
4
|
// and its working directory go; the ticket, its description, its plan and its comments are Beads'
|
|
5
5
|
// and stay. The finished workflow stays on the server, which the queue, counting only the live
|
|
6
|
-
// circuits, no more holds the ticket back for (
|
|
6
|
+
// circuits, no more holds the ticket back for (circuit.md §5.4).
|
|
7
7
|
import { spawnSync } from 'node:child_process';
|
|
8
8
|
import { existsSync, rmSync } from 'node:fs';
|
|
9
9
|
import path from 'node:path';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// of Jest and insta, the review of the goldens of Chromium) shows the difference of each file:
|
|
3
3
|
// measured by git between the base of the lot and the lot kept (`git diff --numstat`), summarised
|
|
4
4
|
// by name of field for a JSON file, so that the reviewer judges the change of a reference on the
|
|
5
|
-
// tree, not on what the agent declares.
|
|
5
|
+
// tree, not on what the agent declares (docs/architecture/circuit.md §5.3).
|
|
6
6
|
import { spawnSync } from 'node:child_process';
|
|
7
7
|
import { couvertPar } from './engendres.mjs';
|
|
8
8
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// The registry of test results, by branch, of a repository
|
|
1
|
+
// The registry of test results, by branch, of a repository (a state of the tests-and-languages
|
|
2
|
+
// document, which entree.md §4.1 names beside the last green; the queue's final pass writes it,
|
|
3
|
+
// §5.1): what the last green pass of
|
|
2
4
|
// `npm run verifier` (scripts/langages/typescript/verifier.mjs) holds, test by test. As Chromium's
|
|
3
5
|
// ResultDB and Mozilla's Treeherder keep the result of each test by version of the main branch, and
|
|
4
6
|
// as `.pytest_cache` keeps the last run's tests, the proof of the red reads here which tests main
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
// The rules of the places of the machine, with no input nor output: whether a start is admitted
|
|
2
|
-
// at a load and a free memory
|
|
3
|
-
// workflow of the machine (src/temporal/places
|
|
4
|
-
//
|
|
5
|
-
// scripts/
|
|
6
|
-
// reserves (`reserverDesCircuits`). The workflow bundles this module, which imports nothing. What
|
|
7
|
-
// the machine gives, its load and its memory, is measured by scripts/mesure-de-la-machine.mjs.
|
|
2
|
+
// at a load and a free memory (the load under the cores, MEMOIRE_MIN free), and why a taking does
|
|
3
|
+
// not pass now. The workflow of the machine (src/temporal/places/) decides by them and bundles
|
|
4
|
+
// this module, which imports nothing; the load and the memory come from
|
|
5
|
+
// scripts/mesure-de-la-machine.mjs. Architecture: docs/architecture/machine.md (§3.1, §5.2).
|
|
8
6
|
|
|
9
7
|
/** The memory a start wants free, in bytes: 4 GB. */
|
|
10
8
|
export const MEMOIRE_MIN = 4 * 1024 ** 3;
|