@roomi-fields/grillhouse 0.52.0 → 0.54.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 +96 -0
- package/agents/direct.md +1 -1
- package/cadre/templates/projet/docs/agents/issue-tracker.md +2 -2
- package/cadre/templates/projet/vitest.config.cjs +45 -0
- package/charte/superviseur.md +36 -37
- package/charte.md +13 -1
- package/dist/temporal/circuit/appel.d.ts +2 -0
- package/dist/temporal/circuit/appel.js +24 -2
- package/dist/temporal/circuit/appel.js.map +1 -1
- package/dist/temporal/circuit/client.d.ts +14 -5
- package/dist/temporal/circuit/client.js +41 -9
- package/dist/temporal/circuit/client.js.map +1 -1
- package/dist/temporal/circuit/commande.js +17 -6
- package/dist/temporal/circuit/commande.js.map +1 -1
- package/dist/temporal/circuit/contrat.d.ts +9 -0
- package/dist/temporal/circuit/contrat.js +6 -0
- package/dist/temporal/circuit/contrat.js.map +1 -1
- package/dist/temporal/circuit/deroule.js +29 -12
- package/dist/temporal/circuit/deroule.js.map +1 -1
- package/dist/temporal/client.d.ts +35 -1
- package/dist/temporal/client.js +144 -1
- package/dist/temporal/client.js.map +1 -1
- package/dist/temporal/commande.js +31 -13
- package/dist/temporal/commande.js.map +1 -1
- package/dist/temporal/etat.d.ts +3 -1
- package/dist/temporal/etat.js +31 -17
- package/dist/temporal/etat.js.map +1 -1
- package/dist/temporal/file/activites.js +1 -1
- package/dist/temporal/file/activites.js.map +1 -1
- package/dist/temporal/file/contrat.d.ts +4 -5
- package/dist/temporal/file/contrat.js +2 -2
- package/dist/temporal/file/contrat.js.map +1 -1
- package/dist/temporal/file/deroule.js +7 -5
- package/dist/temporal/file/deroule.js.map +1 -1
- package/dist/temporal/installation.d.ts +116 -53
- package/dist/temporal/installation.js +898 -241
- package/dist/temporal/installation.js.map +1 -1
- package/dist/temporal/nuits/deroule.js +3 -1
- package/dist/temporal/nuits/deroule.js.map +1 -1
- package/dist/temporal/places/deroule.js +2 -1
- package/dist/temporal/places/deroule.js.map +1 -1
- package/dist/temporal/sonde/deroule.js +2 -1
- package/dist/temporal/sonde/deroule.js.map +1 -1
- package/dist/temporal/tickets/deroule.js +4 -3
- package/dist/temporal/tickets/deroule.js.map +1 -1
- package/dist/temporal/travailleur.d.ts +7 -1
- package/dist/temporal/travailleur.js +49 -25
- package/dist/temporal/travailleur.js.map +1 -1
- package/docs/INTERFACE.md +37 -12
- package/docs/architecture/circuit.md +21 -18
- package/docs/architecture/entree.md +10 -11
- package/docs/architecture/greffon.md +45 -27
- package/docs/architecture/installation.md +92 -59
- package/docs/architecture/machine.md +2 -2
- package/docs/architecture/tests.md +15 -6
- package/docs/lexique.md +2 -2
- package/hooks/hooks.json +10 -0
- package/hooks/register.tsx +59 -39
- package/package.json +3 -2
- package/scripts/activites.mjs +5 -4
- package/scripts/aiguillage.mjs +5 -2
- package/scripts/bd-garde.mjs +69 -0
- package/scripts/ci-de-main.mjs +259 -56
- package/scripts/circuit.mjs +274 -47
- package/scripts/circuits-du-serveur.mjs +3 -2
- package/scripts/circuits-tenus.d.mts +7 -0
- package/scripts/circuits-tenus.mjs +17 -0
- package/scripts/commandes-composees.mjs +1 -1
- package/scripts/copie-de-montee.mjs +354 -0
- package/scripts/copies-du-depot.d.mts +13 -0
- package/scripts/copies-du-depot.mjs +66 -0
- package/scripts/copies-finies.mjs +6 -40
- package/scripts/crochets.mjs +16 -2
- package/scripts/direct.mjs +2 -2
- package/scripts/droits.mjs +13 -6
- package/scripts/engendres.mjs +5 -3
- package/scripts/enveloppe/travail-de-la-copie.mjs +77 -0
- package/scripts/etapes.mjs +11 -3
- package/scripts/faits-du-circuit.mjs +12 -5
- package/scripts/file-des-tickets.d.mts +13 -2
- package/scripts/file-des-tickets.mjs +71 -21
- package/scripts/greffons.mjs +42 -27
- package/scripts/grillhouse-maj.mjs +105 -85
- package/scripts/init.mjs +1 -1
- package/scripts/integration/file.mjs +5 -2
- package/scripts/integration/integrer.mjs +14 -4
- package/scripts/jointure.d.ts +16 -0
- package/scripts/langages/c/commandes.mjs +18 -8
- package/scripts/langages/cargo/commandes.mjs +88 -35
- package/scripts/langages/cargo/index.mjs +6 -3
- package/scripts/langages/cargo/sccache.mjs +15 -12
- package/scripts/langages/cargo/tailles-des-tests.mjs +115 -6
- package/scripts/langages/python/commandes.mjs +19 -9
- package/scripts/langages/python/squelette.mjs +2 -2
- package/scripts/langages/typescript/code-mort.mjs +36 -3
- package/scripts/langages/typescript/configurations-de-vitest.mjs +118 -0
- package/scripts/langages/typescript/index.mjs +2 -0
- package/scripts/langages/typescript/migrations/configurations-en-commonjs.mjs +370 -0
- package/scripts/langages/typescript/mise-a-jour.mjs +49 -12
- package/scripts/langages/typescript/parcours.mjs +5 -1
- package/scripts/langages/typescript/squelette.mjs +20 -17
- package/scripts/langages/typescript/tests-de-nuit.mjs +3 -3
- package/scripts/langages/typescript/turbo-des-paquets.mjs +24 -37
- package/scripts/langages/typescript/vitest-config/base.mjs +1 -1
- package/scripts/langages/typescript/vitest-config/bornes.mjs +1 -1
- package/scripts/langages/typescript/vitest-config/cibles.mjs +2 -2
- package/scripts/langages/typescript/{vitest.nuit.config.mjs → vitest.nuit.config.cjs} +61 -50
- package/scripts/langages.d.mts +6 -0
- package/scripts/langages.mjs +6 -0
- package/scripts/lire.mjs +236 -0
- package/scripts/mesure/pression.mjs +5 -3
- package/scripts/migrations/cout-des-jetons-au-registre.mjs +136 -0
- package/scripts/migrations/lire-un-ticket.mjs +46 -0
- package/scripts/migrations.mjs +4 -0
- package/scripts/montee.mjs +588 -0
- package/scripts/nuit.sh +21 -12
- package/scripts/outil.mjs +5 -3
- package/scripts/paquet-npm.mjs +22 -0
- package/scripts/paquet.mjs +5 -5
- package/scripts/pre-compact.mjs +25 -0
- package/scripts/registre.d.mts +7 -1
- package/scripts/registre.mjs +114 -102
- package/scripts/reponses-du-circuit.d.mts +17 -2
- package/scripts/reponses-du-circuit.mjs +78 -20
- package/scripts/resultats.mjs +55 -17
- package/scripts/retirer-les-copies-finies.mjs +4 -7
- package/scripts/seances.mjs +28 -3
- package/scripts/services-du-noyau.mjs +7 -2
- package/scripts/session-start.sh +18 -11
- package/scripts/sortie.mjs +4 -7
- package/scripts/sous-commandes.mjs +2 -0
- package/scripts/suiveur.mjs +12 -4
- package/scripts/superviseur.mjs +135 -84
- package/scripts/tableau.mjs +651 -224
- package/scripts/tarifs.mjs +67 -0
- package/scripts/ticket-du-circuit.mjs +25 -4
- package/scripts/transitions.d.mts +6 -14
- package/scripts/transitions.mjs +126 -49
- package/scripts/verdict-de-la-nuit.mjs +2 -2
- package/scripts/verrou-de-fichier.d.mts +11 -0
- package/skills/direct/SKILL.md +21 -11
- package/skills/explorateur/SKILL.md +16 -6
- package/skills/grill/SKILL.md +9 -7
- package/skills/grill/references/paquets.md +4 -4
- package/skills/mesure/SKILL.md +4 -3
- package/skills/pitmaster/SKILL.md +56 -35
- package/skills/pitmaster/references/consigne-agent.md +1 -1
- package/skills/pitmaster/references/erreurs.md +4 -2
- package/skills/pitmaster/references/tour.md +11 -4
- package/skills/relecteur/SKILL.md +8 -1
- package/skills/testwriter/SKILL.md +1 -1
- package/types/index.d.ts +3 -1
- package/cadre/templates/projet/vitest.config.ts +0 -44
- package/scripts/base-des-workflows.mjs +0 -58
|
@@ -24,12 +24,46 @@ export interface OuOuvrir {
|
|
|
24
24
|
export interface ClientOuvert {
|
|
25
25
|
client: Client;
|
|
26
26
|
adresse: string;
|
|
27
|
-
fermer()
|
|
27
|
+
fermer: () => Promise<void>;
|
|
28
28
|
}
|
|
29
29
|
/** Opens the Temporal client of the server <adresse>, lazily: no network until its first call. */
|
|
30
30
|
export declare function ouvrirLeClient({ adresse, espace }?: OuOuvrir): ClientOuvert;
|
|
31
31
|
/** Opens the connection of a worker to the server <adresse>; it connects at once. */
|
|
32
32
|
export declare function ouvrirLaConnexionDuTravailleur({ adresse, }?: Pick<OuOuvrir, 'adresse'>): Promise<NativeConnection>;
|
|
33
|
+
/**
|
|
34
|
+
* Makes the version `version` the current one of the Worker Deployment of the task queue `file`
|
|
35
|
+
* (installation.md §2.6), the one gesture of the frame that does it. A version already current at
|
|
36
|
+
* the first reading of the deployment the server answers is left as it is: the call returns at
|
|
37
|
+
* once, whatever the state of the routing, as `SetCurrentVersion` on the current version changes
|
|
38
|
+
* nothing. Otherwise it waits until the server answers and knows that version, which a worker
|
|
39
|
+
* announces by polling, makes it current, and returns once that routing is no longer propagating to
|
|
40
|
+
* the task queues: for a routing the call changed, a workflow started next is served by the
|
|
41
|
+
* version. After `delaiMs`, it fails, naming the version and what the server last said.
|
|
42
|
+
*/
|
|
43
|
+
export declare function rendreCourante(client: Client, file: string, version: string, delaiMs?: number): Promise<void>;
|
|
44
|
+
/** What the server says of a version of a Worker Deployment. */
|
|
45
|
+
type EtatDUneVersion = 'jamais-courante' | 'courante' | 'en-drainage' | 'drainee' | 'inconnue';
|
|
46
|
+
/** A Worker Deployment as the server says it: its current version, the state of each version. */
|
|
47
|
+
interface Deploiement {
|
|
48
|
+
courante: string | null;
|
|
49
|
+
versions: Record<string, EtatDUneVersion>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* What the installation reads and moves on the server, one Worker Deployment per task queue
|
|
53
|
+
* <file>; each call fails when the server does not answer.
|
|
54
|
+
*/
|
|
55
|
+
export interface ClientDesDeploiements {
|
|
56
|
+
lire(file: string): Promise<Deploiement>;
|
|
57
|
+
/** Makes <version> current, waiting for the server within a bounded delay (`rendreCourante`). */
|
|
58
|
+
rendreCourante(file: string, version: string): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* The identities (`<pid>@<host>`) of the workers that hold a started activity of a running
|
|
61
|
+
* workflow.
|
|
62
|
+
*/
|
|
63
|
+
activitesTenues(): Promise<string[]>;
|
|
64
|
+
}
|
|
65
|
+
/** The Worker Deployments of the server <adresse>, namespace `default`, one client per call. */
|
|
66
|
+
export declare function deploiementsDuServeur(adresse: string): ClientDesDeploiements;
|
|
33
67
|
/** How long `serveurJoignable` waits for the server by default. */
|
|
34
68
|
export declare const DELAI_JOIGNABLE_MS = 2000;
|
|
35
69
|
/** Whether the server <adresse> answers within <delaiMs> ms. */
|
package/dist/temporal/client.js
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
// client of the frame read. The address and the namespace come from Temporal's own variables
|
|
4
4
|
// (TEMPORAL_ADDRESS, TEMPORAL_NAMESPACE), as the `temporal` program and the SDKs read them, the
|
|
5
5
|
// account's server on the loopback by default. The client it opens is lazy: opening it opens no
|
|
6
|
-
// network, its first call does.
|
|
6
|
+
// network, its first call does. It also holds the gesture that makes a worker's version current
|
|
7
|
+
// (`rendreCourante`), and the readings of the server the installation takes: a Worker Deployment
|
|
8
|
+
// (`lireLeDeploiement`) and the workers that hold a started activity (`activitesTenues`).
|
|
7
9
|
import { Client, Connection } from '@temporalio/client';
|
|
8
10
|
import { defaultPayloadConverter } from '@temporalio/common';
|
|
9
11
|
import { NativeConnection } from '@temporalio/worker';
|
|
@@ -37,6 +39,147 @@ export function ouvrirLeClient({ adresse, espace } = {}) {
|
|
|
37
39
|
export function ouvrirLaConnexionDuTravailleur({ adresse, } = {}) {
|
|
38
40
|
return NativeConnection.connect({ address: adresse ?? adresseDuServeur() });
|
|
39
41
|
}
|
|
42
|
+
// How long `rendreCourante` waits for the server by default.
|
|
43
|
+
const DELAI_VERSION_CONNUE_MS = 50_000;
|
|
44
|
+
// gRPC NOT_FOUND.
|
|
45
|
+
const INTROUVABLE = 5;
|
|
46
|
+
// The refusals waited out: a server that does not know the version yet, or one of its pollers
|
|
47
|
+
// (NOT_FOUND, FAILED_PRECONDITION), and one that does not answer yet, as just restarted
|
|
48
|
+
// (UNAVAILABLE, DEADLINE_EXCEEDED).
|
|
49
|
+
const PAS_ENCORE = [INTROUVABLE, 9, 14, 4];
|
|
50
|
+
const PAUSE_ENTRE_LECTURES_MS = 200;
|
|
51
|
+
// A routing change not yet propagated to the task queues
|
|
52
|
+
// (temporal.api.enums.v1.RoutingConfigUpdateState.IN_PROGRESS).
|
|
53
|
+
const ROUTAGE_EN_COURS = 1;
|
|
54
|
+
/**
|
|
55
|
+
* Makes the version `version` the current one of the Worker Deployment of the task queue `file`
|
|
56
|
+
* (installation.md §2.6), the one gesture of the frame that does it. A version already current at
|
|
57
|
+
* the first reading of the deployment the server answers is left as it is: the call returns at
|
|
58
|
+
* once, whatever the state of the routing, as `SetCurrentVersion` on the current version changes
|
|
59
|
+
* nothing. Otherwise it waits until the server answers and knows that version, which a worker
|
|
60
|
+
* announces by polling, makes it current, and returns once that routing is no longer propagating to
|
|
61
|
+
* the task queues: for a routing the call changed, a workflow started next is served by the
|
|
62
|
+
* version. After `delaiMs`, it fails, naming the version and what the server last said.
|
|
63
|
+
*/
|
|
64
|
+
export async function rendreCourante(client, file, version, delaiMs = DELAI_VERSION_CONNUE_MS) {
|
|
65
|
+
const deploiement = { namespace: client.options.namespace, deploymentName: file };
|
|
66
|
+
const limite = Date.now() + delaiMs;
|
|
67
|
+
let dernier = 'aucune réponse';
|
|
68
|
+
let premiereLecture = true;
|
|
69
|
+
for (;;) {
|
|
70
|
+
try {
|
|
71
|
+
const { workerDeploymentInfo: info } = await client.workflowService.describeWorkerDeployment(deploiement);
|
|
72
|
+
const courante = info?.routingConfig?.currentDeploymentVersion?.buildId === version;
|
|
73
|
+
if (courante && premiereLecture) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
premiereLecture = false;
|
|
77
|
+
if (!courante) {
|
|
78
|
+
await client.workflowService.setWorkerDeploymentCurrentVersion({
|
|
79
|
+
...deploiement,
|
|
80
|
+
buildId: version,
|
|
81
|
+
identity: client.options.identity,
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
else if (Number(info.routingConfigUpdateState) !== ROUTAGE_EN_COURS) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
dernier = 'le routage n’a pas encore atteint les files de tâches';
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
catch (e) {
|
|
92
|
+
const { code, message } = e;
|
|
93
|
+
if (code === undefined || !PAS_ENCORE.includes(code)) {
|
|
94
|
+
throw e;
|
|
95
|
+
}
|
|
96
|
+
dernier = message ?? String(code);
|
|
97
|
+
}
|
|
98
|
+
if (Date.now() >= limite) {
|
|
99
|
+
throw new Error(`temporal : la version ${version} du déploiement ${file} n’est pas courante après ${delaiMs / 1000} s : ${dernier}`);
|
|
100
|
+
}
|
|
101
|
+
await new Promise(r => setTimeout(r, PAUSE_ENTRE_LECTURES_MS));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
// temporal.api.enums.v1.WorkerDeploymentVersionStatus.
|
|
105
|
+
const ETATS = { 2: 'courante', 4: 'en-drainage', 5: 'drainee' };
|
|
106
|
+
// INACTIVE and CREATED: neither current nor draining.
|
|
107
|
+
const SANS_TRAFIC = [1, 6];
|
|
108
|
+
/**
|
|
109
|
+
* The Worker Deployment of the task queue `file`: its current version and the state of each of its
|
|
110
|
+
* versions; none for a deployment the server does not know.
|
|
111
|
+
*/
|
|
112
|
+
async function lireLeDeploiement(client, file) {
|
|
113
|
+
try {
|
|
114
|
+
const { workerDeploymentInfo: info } = await client.workflowService.describeWorkerDeployment({
|
|
115
|
+
namespace: client.options.namespace,
|
|
116
|
+
deploymentName: file,
|
|
117
|
+
});
|
|
118
|
+
const versions = {};
|
|
119
|
+
for (const v of info?.versionSummaries ?? []) {
|
|
120
|
+
const id = v.deploymentVersion?.buildId;
|
|
121
|
+
if (!id) {
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
const statut = Number(v.status);
|
|
125
|
+
versions[id] =
|
|
126
|
+
ETATS[statut] ??
|
|
127
|
+
(SANS_TRAFIC.includes(statut) && !v.lastCurrentTime && !v.firstActivationTime
|
|
128
|
+
? 'jamais-courante'
|
|
129
|
+
: 'inconnue');
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
courante: info?.routingConfig?.currentDeploymentVersion?.buildId || null,
|
|
133
|
+
versions,
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
catch (e) {
|
|
137
|
+
if (e.code === INTROUVABLE) {
|
|
138
|
+
return { courante: null, versions: {} };
|
|
139
|
+
}
|
|
140
|
+
throw e;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
// The states of a pending activity a worker runs (temporal.api.enums.v1.PendingActivityState):
|
|
144
|
+
// STARTED, CANCEL_REQUESTED, PAUSE_REQUESTED.
|
|
145
|
+
const COMMENCEE = [2, 3, 5];
|
|
146
|
+
/**
|
|
147
|
+
* The identities of the workers that hold a started activity of a running workflow, as the server
|
|
148
|
+
* describes each (a local activity, which the server does not see, apart).
|
|
149
|
+
*/
|
|
150
|
+
async function activitesTenues(client) {
|
|
151
|
+
const identites = new Set();
|
|
152
|
+
for await (const w of client.workflow.list({ query: "ExecutionStatus='Running'" })) {
|
|
153
|
+
const d = await client.workflow.getHandle(w.workflowId, w.runId).describe();
|
|
154
|
+
for (const a of d.raw.pendingActivities ?? []) {
|
|
155
|
+
if (COMMENCEE.includes(Number(a.state)) && a.lastWorkerIdentity) {
|
|
156
|
+
identites.add(a.lastWorkerIdentity);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return [...identites];
|
|
161
|
+
}
|
|
162
|
+
// How long a reading of the server, and the making current of a version, may take at most.
|
|
163
|
+
const DELAI_DE_LECTURE_MS = 30_000;
|
|
164
|
+
const DELAI_DE_COURANTE_MS = DELAI_VERSION_CONNUE_MS + 10_000;
|
|
165
|
+
/** The Worker Deployments of the server <adresse>, namespace `default`, one client per call. */
|
|
166
|
+
export function deploiementsDuServeur(adresse) {
|
|
167
|
+
const avec = async (delai, f) => {
|
|
168
|
+
const ouvert = ouvrirLeClient({ adresse, espace: 'default' });
|
|
169
|
+
try {
|
|
170
|
+
const { client } = ouvert;
|
|
171
|
+
return await client.connection.withDeadline(Date.now() + delai, () => f(client));
|
|
172
|
+
}
|
|
173
|
+
finally {
|
|
174
|
+
await ouvert.fermer().catch(() => undefined);
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
return {
|
|
178
|
+
lire: file => avec(DELAI_DE_LECTURE_MS, c => lireLeDeploiement(c, file)),
|
|
179
|
+
rendreCourante: (file, version) => avec(DELAI_DE_COURANTE_MS, c => rendreCourante(c, file, version)),
|
|
180
|
+
activitesTenues: () => avec(DELAI_DE_LECTURE_MS, activitesTenues),
|
|
181
|
+
};
|
|
182
|
+
}
|
|
40
183
|
/** How long `serveurJoignable` waits for the server by default. */
|
|
41
184
|
export const DELAI_JOIGNABLE_MS = 2000;
|
|
42
185
|
/** Whether the server <adresse> answers within <delaiMs> ms. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/temporal/client.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,8FAA8F;AAC9F,6FAA6F;AAC7F,gGAAgG;AAChG,gGAAgG;AAChG,
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/temporal/client.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,8FAA8F;AAC9F,6FAA6F;AAC7F,gGAAgG;AAChG,gGAAgG;AAChG,gGAAgG;AAChG,iGAAiG;AACjG,0FAA0F;AAC1F,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAgB,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAIxD,2DAA2D;AAC3D,MAAM,CAAC,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;AAEnD,4EAA4E;AAC5E,MAAM,C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MAAc,EAAE,EAAU;IAC5D,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;IACzD,MAAM,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1E,OAAO;QACL,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI;QACrB,IAAI,EAAE,CAAC,CAAC,IAAI;QACZ,MAAM,EAAE,CAAC,CAAC,qBAAqB,CAAC,GAAG,CAAC,eAAe,CAAC;QACpD,KAAK,EAAE,CAAC,CAAC,qBAAqB,CAAC,GAAG,CAAC,cAAc,CAAC;QAClD,UAAU,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAuB,CAAC,WAAW,CAAa,GAAc,CAAC,CAAC,CAAC,CAAC,SAAS;KAC9F,CAAC;AACJ,CAAC"}
|
|
@@ -10,20 +10,27 @@
|
|
|
10
10
|
//
|
|
11
11
|
// lieux : [--maison <dossier>] [--unites <dossier>] [--racine <dossier>] [--systemctl <programme>]
|
|
12
12
|
//
|
|
13
|
+
// - `installer --declarations <dossier>` reads the project's declarations (its languages, the
|
|
14
|
+
// version it installs, its lock) in <dossier>, the copy of a montée (scripts/montee.mjs), the
|
|
15
|
+
// units naming the project of `--racine` all the same.
|
|
13
16
|
// - `installer` lays down the program `temporal` at its pinned version, its archive downloaded
|
|
14
17
|
// from its release (or read from <fichier>) and checked against its pinned sum, writes the units
|
|
15
|
-
// of the account
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
18
|
+
// of the account, starts the instance of the project's version and makes it current, and retires
|
|
19
|
+
// the drained ones (./installation.ts); the workers' templates take TEMPORAL from the
|
|
20
|
+
// program laid down, the package.json is not written. One pass plays at a time on the account,
|
|
21
|
+
// and its last gesture purges the versions of the tool nothing names; its report is written, and
|
|
22
|
+
// a source the purge cannot read, or a removal that fails, exits 1. An archive or a version refused, systemd
|
|
23
|
+
// failing, or a version that cannot be made current: its line on the error stream, exit 1. Systemd
|
|
24
|
+
// failing, the units stay written and not applied: the next run applies them.
|
|
19
25
|
// - `installer --programme-seul` lays down the program alone, checked as above, and writes its
|
|
20
26
|
// path, one line, on the standard output: no unit, no package.json, no systemctl. The night gets the
|
|
21
27
|
// pinned program so (`TEMPORAL=$(npx grillhouse temporal installer --programme-seul)`).
|
|
22
28
|
// - `etat` writes the state of each service on the standard output (./etat.ts); exit 0 when
|
|
23
29
|
// installed, 1 when not.
|
|
24
30
|
// - `perime` reads only (no systemctl, no download, no writing): it writes `perime` on the standard
|
|
25
|
-
// output when the units applied differ from what `installer` would write
|
|
26
|
-
//
|
|
31
|
+
// output when the units applied differ from what `installer` would write, or the instance of the
|
|
32
|
+
// project's version is not applied (travailleurPerime), and nothing otherwise; exit 0. The
|
|
33
|
+
// session's start asks it and names `installer` under « Manque ».
|
|
27
34
|
// - `purger` deletes the workflows closed for longer than the retention, then, with the server
|
|
28
35
|
// stopped, removes the orphan histories and compacts the database, and says the counts and the
|
|
29
36
|
// sizes (./installation.ts); a circuit in flight, the server or systemd failing: its line on the
|
|
@@ -33,11 +40,20 @@
|
|
|
33
40
|
// that a test plays under a trial home and never in the account's systemd.
|
|
34
41
|
// - A malformed call writes the usage on the error stream, exit 2.
|
|
35
42
|
import { readFileSync } from 'node:fs';
|
|
43
|
+
import path from 'node:path';
|
|
36
44
|
import { etat, texteDeLEtat } from './etat.js';
|
|
37
|
-
import { installer, lieuxDe, poserLeProgramme, purger, systemctlDuCompte, texteDeLaPurge, texteDeLInstallation, travailleurPerime, } from './installation.js';
|
|
45
|
+
import { codeDeLInstallation, installer, lieuxDe, poserLeProgramme, purger, systemctlDuCompte, texteDeLaPurge, texteDeLInstallation, travailleurPerime, } from './installation.js';
|
|
38
46
|
const USAGE = 'Usage : grillhouse temporal <installer|etat|perime|purger> [--programme-seul] [--archive <fichier>] ' +
|
|
39
|
-
'[--maison <dossier>] [--unites <dossier>] [--racine <dossier>] [--
|
|
40
|
-
|
|
47
|
+
'[--maison <dossier>] [--unites <dossier>] [--racine <dossier>] [--declarations <dossier>] ' +
|
|
48
|
+
'[--systemctl <programme>]\n';
|
|
49
|
+
const OPTIONS = new Set([
|
|
50
|
+
'--archive',
|
|
51
|
+
'--maison',
|
|
52
|
+
'--unites',
|
|
53
|
+
'--racine',
|
|
54
|
+
'--declarations',
|
|
55
|
+
'--systemctl',
|
|
56
|
+
]);
|
|
41
57
|
// The action and the options of <args>, or null for a malformed call.
|
|
42
58
|
function lire(args) {
|
|
43
59
|
const [action, ...reste] = args;
|
|
@@ -54,7 +70,8 @@ function lire(args) {
|
|
|
54
70
|
}
|
|
55
71
|
for (let i = 0; i < reste.length; i += 2) {
|
|
56
72
|
const [o, v] = [reste[i], reste[i + 1]];
|
|
57
|
-
|
|
73
|
+
const deLInstallation = o === '--archive' || o === '--declarations';
|
|
74
|
+
if (!OPTIONS.has(o) || v === undefined || (deLInstallation && action !== 'installer')) {
|
|
58
75
|
return null;
|
|
59
76
|
}
|
|
60
77
|
options[o.slice(2)] = v;
|
|
@@ -72,7 +89,7 @@ async function principal(args) {
|
|
|
72
89
|
const archive = o.archive;
|
|
73
90
|
const obtenir = archive ? { obtenir: () => Promise.resolve(readFileSync(archive)) } : {};
|
|
74
91
|
if (programmeSeul) {
|
|
75
|
-
if (o.unites || o.racine || o.systemctl) {
|
|
92
|
+
if (o.unites || o.racine || o.declarations || o.systemctl) {
|
|
76
93
|
process.stderr.write(USAGE);
|
|
77
94
|
return 2;
|
|
78
95
|
}
|
|
@@ -96,9 +113,10 @@ async function principal(args) {
|
|
|
96
113
|
process.stdout.write(texteDeLaPurge(await purger({ lieux, systemctl })));
|
|
97
114
|
return 0;
|
|
98
115
|
}
|
|
99
|
-
const
|
|
116
|
+
const declarations = o.declarations ? { declarations: path.resolve(o.declarations) } : {};
|
|
117
|
+
const r = await installer({ lieux, systemctl, ...obtenir, ...declarations });
|
|
100
118
|
process.stdout.write(texteDeLInstallation(r));
|
|
101
|
-
return
|
|
119
|
+
return codeDeLInstallation(r);
|
|
102
120
|
}
|
|
103
121
|
principal(process.argv.slice(2)).then(code => {
|
|
104
122
|
process.exitCode = code;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commande.js","sourceRoot":"","sources":["../../src/temporal/commande.ts"],"names":[],"mappings":";AACA,gGAAgG;AAChG,EAAE;AACF,sGAAsG;AACtG,8FAA8F;AAC9F,+FAA+F;AAC/F,mGAAmG;AACnG,6GAA6G;AAC7G,0GAA0G;AAC1G,EAAE;AACF,qGAAqG;AACrG,EAAE;AACF,+FAA+F;AAC/F,mGAAmG;AACnG,
|
|
1
|
+
{"version":3,"file":"commande.js","sourceRoot":"","sources":["../../src/temporal/commande.ts"],"names":[],"mappings":";AACA,gGAAgG;AAChG,EAAE;AACF,sGAAsG;AACtG,8FAA8F;AAC9F,+FAA+F;AAC/F,mGAAmG;AACnG,6GAA6G;AAC7G,0GAA0G;AAC1G,EAAE;AACF,qGAAqG;AACrG,EAAE;AACF,8FAA8F;AAC9F,gGAAgG;AAChG,yDAAyD;AACzD,+FAA+F;AAC/F,mGAAmG;AACnG,mGAAmG;AACnG,wFAAwF;AACxF,iGAAiG;AACjG,mGAAmG;AACnG,+GAA+G;AAC/G,qGAAqG;AACrG,gFAAgF;AAChF,+FAA+F;AAC/F,uGAAuG;AACvG,0FAA0F;AAC1F,4FAA4F;AAC5F,2BAA2B;AAC3B,oGAAoG;AACpG,mGAAmG;AACnG,6FAA6F;AAC7F,oEAAoE;AACpE,+FAA+F;AAC/F,iGAAiG;AACjG,mGAAmG;AACnG,0BAA0B;AAC1B,gGAAgG;AAChG,iGAAiG;AACjG,6EAA6E;AAC7E,mEAAmE;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,E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AC,EAAE,YAAY,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1F,MAAM,CAAC,GAAG,MAAM,SAAS,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,OAAO,EAAE,GAAG,YAAY,EAAE,CAAC,CAAC;IAC7E,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9C,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC;AAChC,CAAC;AAED,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CACnC,IAAI,CAAC,EAAE;IACL,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;AAC1B,CAAC,EACD,CAAC,CAAU,EAAE,EAAE;IACb,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACxE,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC,CACF,CAAC"}
|
package/dist/temporal/etat.d.ts
CHANGED
|
@@ -3,12 +3,14 @@ import { type Epingle, type Lieux, type Systemctl } from './installation.js';
|
|
|
3
3
|
interface EtatDuService {
|
|
4
4
|
role: 'serveur' | 'travailleur du projet' | 'travailleur de la machine';
|
|
5
5
|
unite: string;
|
|
6
|
+
/** The version an instance names; absent for the server. */
|
|
7
|
+
version?: string;
|
|
6
8
|
actif: boolean;
|
|
7
9
|
}
|
|
8
10
|
/** The state of the account's Temporal. */
|
|
9
11
|
export interface Etat {
|
|
10
12
|
installe: boolean;
|
|
11
|
-
/** The program
|
|
13
|
+
/** The program and the unit files missing, by their paths; a task queue without any instance. */
|
|
12
14
|
manques: string[];
|
|
13
15
|
programme: {
|
|
14
16
|
chemin: string;
|
package/dist/temporal/etat.js
CHANGED
|
@@ -1,38 +1,52 @@
|
|
|
1
|
-
// The state of the account's Temporal (`grillhouse temporal etat`; installation.md §3.1): for the
|
|
2
|
-
// the
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
1
|
+
// The state of the account's Temporal (`grillhouse temporal etat`; installation.md §3.1): for the
|
|
2
|
+
// server and each instance applied of the workers of the project and of the machine, whether it runs
|
|
3
|
+
// (`systemctl --user is-active`), an instance with the version it names; the version of the program
|
|
4
|
+
// laid down (`temporal --version`), and whether the server answers (the common client library,
|
|
5
|
+
// ./client.ts). Without an installation (the program of the pinned version, a unit file, or any
|
|
6
|
+
// instance of one of the two task queues missing), it says what is missing, and the command fails.
|
|
6
7
|
import { spawnSync } from 'node:child_process';
|
|
7
8
|
import { existsSync } from 'node:fs';
|
|
8
9
|
import path from 'node:path';
|
|
9
10
|
import { sansReponseEn } from '../../scripts/sans-reponse.mjs';
|
|
10
11
|
import { DELAI_JOIGNABLE_MS, serveurJoignable } from './client.js';
|
|
11
|
-
import { cheminsDe, EPINGLE, unitesDe, } from './installation.js';
|
|
12
|
+
import { cheminsDe, EPINGLE, gabaritsDe, instancesAppliquees, UNITE_DU_SERVEUR, unitesDe, } from './installation.js';
|
|
12
13
|
/** The version that the program <programme> says (`temporal version <v> (…)`), or null. */
|
|
13
14
|
function versionDuProgramme(programme) {
|
|
14
15
|
const r = spawnSync(programme, ['--version'], { encoding: 'utf8' });
|
|
15
16
|
return /temporal version (\S+)/.exec(r.stdout ?? '')?.[1] ?? null;
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
'travailleur du projet',
|
|
20
|
-
'travailleur de la machine',
|
|
21
|
-
];
|
|
18
|
+
// The roles of the workers, in the order of their templates (`gabaritsDe`).
|
|
19
|
+
const ROLES = ['travailleur du projet', 'travailleur de la machine'];
|
|
22
20
|
/** The state of the account's Temporal at the places <lieux>. */
|
|
23
21
|
export async function etat({ lieux, systemctl, epingle = EPINGLE, versionDe = versionDuProgramme, joindre = () => serveurJoignable(), }) {
|
|
24
22
|
const { programme } = cheminsDe(lieux, epingle.version);
|
|
25
|
-
const
|
|
26
|
-
const
|
|
23
|
+
const files = [programme, ...unitesDe(lieux.racine).map(u => path.join(lieux.unites, u))].filter(f => !existsSync(f));
|
|
24
|
+
const travailleurs = gabaritsDe(lieux.racine).map(({ gabarit }, i) => ({
|
|
25
|
+
gabarit,
|
|
26
|
+
instances: instancesAppliquees(lieux, gabarit, epingle).map(({ unite, version }) => ({
|
|
27
|
+
role: ROLES[i],
|
|
28
|
+
unite,
|
|
29
|
+
version,
|
|
30
|
+
})),
|
|
31
|
+
}));
|
|
32
|
+
const manques = [
|
|
33
|
+
...files,
|
|
34
|
+
...travailleurs
|
|
35
|
+
.filter(t => t.instances.length === 0)
|
|
36
|
+
.map(t => `aucune instance ${t.gabarit.replace('@.service', '@<version>.service')}`),
|
|
37
|
+
];
|
|
27
38
|
const installe = manques.length === 0;
|
|
39
|
+
const services = [
|
|
40
|
+
{ role: 'serveur', unite: UNITE_DU_SERVEUR },
|
|
41
|
+
...travailleurs.flatMap(t => t.instances),
|
|
42
|
+
];
|
|
28
43
|
return {
|
|
29
44
|
installe,
|
|
30
45
|
manques,
|
|
31
46
|
programme: { chemin: programme, version: existsSync(programme) ? versionDe(programme) : null },
|
|
32
|
-
services:
|
|
33
|
-
|
|
34
|
-
unite,
|
|
35
|
-
actif: systemctl(['is-active', unite]).stdout.trim() === 'active',
|
|
47
|
+
services: services.map(s => ({
|
|
48
|
+
...s,
|
|
49
|
+
actif: systemctl(['is-active', s.unite]).stdout.trim() === 'active',
|
|
36
50
|
})),
|
|
37
51
|
joignable: installe ? await joindre() : null,
|
|
38
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"etat.js","sourceRoot":"","sources":["../../src/temporal/etat.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":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AC,CAAC,CAAC;IACrF,CAAC;IACD,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AAClC,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { readFile } from 'node:fs/promises';
|
|
|
8
8
|
import { fileURLToPath } from 'node:url';
|
|
9
9
|
import { jouer } from '../acte.js';
|
|
10
10
|
// The package.json of the package that carries this worker: three levels above this module, in
|
|
11
|
-
// src/ as in dist
|
|
11
|
+
// src/ as in dist/: its version is the one the queue says it started under.
|
|
12
12
|
const PACKAGE_JSON = new URL('../../../package.json', import.meta.url);
|
|
13
13
|
export async function lireLaVersionDeLOutil() {
|
|
14
14
|
const { version } = JSON.parse(await readFile(PACKAGE_JSON, 'utf8'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activites.js","sourceRoot":"","sources":["../../../src/temporal/file/activites.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,6DAA6D;AAC7D,iGAAiG;AACjG,8FAA8F;AAC9F,4FAA4F;AAC5F,4BAA4B;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAMnC,+FAA+F;AAC/F,
|
|
1
|
+
{"version":3,"file":"activites.js","sourceRoot":"","sources":["../../../src/temporal/file/activites.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,6DAA6D;AAC7D,iGAAiG;AACjG,8FAA8F;AAC9F,4FAA4F;AAC5F,4BAA4B;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAMnC,+FAA+F;AAC/F,4EAA4E;AAC5E,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,uBAAu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CAAC;AACxD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,CAAiC;IAC1E,MAAM,KAAK,CAAC,kBAAkB,EAAE,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;AAC/C,CAAC"}
|
|
@@ -7,8 +7,8 @@ export declare const ISSUE_DE_LA_FILE = "issueDeLaFile";
|
|
|
7
7
|
/** The query of the queue: the entry under way and those that wait. */
|
|
8
8
|
export declare const L_ETAT_DE_LA_FILE = "etatDeLaFile";
|
|
9
9
|
/**
|
|
10
|
-
* The signal that asks the queue to restart as new
|
|
11
|
-
* continues as new at once; busy, it finishes its entry under way, gives its issue to the circuit,
|
|
10
|
+
* The signal that asks the queue to restart as new, which no command sends and the queue still
|
|
11
|
+
* treats for the histories in flight: at rest it continues as new at once; busy, it finishes its entry under way, gives its issue to the circuit,
|
|
12
12
|
* then continues as new with those that wait, none of them treated before.
|
|
13
13
|
*/
|
|
14
14
|
export declare const RELANCER = "relancer";
|
|
@@ -38,8 +38,7 @@ export interface VueDeLaFile {
|
|
|
38
38
|
attente: string[];
|
|
39
39
|
/**
|
|
40
40
|
* The version of the tool the queue started under (`lireLaVersionDeLOutil`, read when a run
|
|
41
|
-
* starts); a queue recorded before this field answers without it, which reads « inconnue
|
|
42
|
-
* (`temporal installer` restarts it).
|
|
41
|
+
* starts); a queue recorded before this field answers without it, which reads « inconnue ».
|
|
43
42
|
*/
|
|
44
43
|
version?: string;
|
|
45
44
|
}
|
|
@@ -50,7 +49,7 @@ export interface VueDeLaFile {
|
|
|
50
49
|
export interface IssueDeLaFile {
|
|
51
50
|
etat: 'ferme' | 'en-file' | 'rouvert' | 'echec';
|
|
52
51
|
raison: string;
|
|
53
|
-
/** A branch reopened
|
|
52
|
+
/** A branch reopened on a rebase that leaves files in conflict: the circuit takes its lot back. */
|
|
54
53
|
conflit?: boolean;
|
|
55
54
|
}
|
|
56
55
|
/**
|
|
@@ -14,8 +14,8 @@ export const ISSUE_DE_LA_FILE = 'issueDeLaFile';
|
|
|
14
14
|
/** The query of the queue: the entry under way and those that wait. */
|
|
15
15
|
export const L_ETAT_DE_LA_FILE = 'etatDeLaFile';
|
|
16
16
|
/**
|
|
17
|
-
* The signal that asks the queue to restart as new
|
|
18
|
-
* continues as new at once; busy, it finishes its entry under way, gives its issue to the circuit,
|
|
17
|
+
* The signal that asks the queue to restart as new, which no command sends and the queue still
|
|
18
|
+
* treats for the histories in flight: at rest it continues as new at once; busy, it finishes its entry under way, gives its issue to the circuit,
|
|
19
19
|
* then continues as new with those that wait, none of them treated before.
|
|
20
20
|
*/
|
|
21
21
|
export const RELANCER = 'relancer';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contrat.js","sourceRoot":"","sources":["../../../src/temporal/file/contrat.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,uEAAuE;AACvE,8EAA8E;AAC9E,kGAAkG;AAClG,wFAAwF;AACxF,wFAAwF;AACxF,6FAA6F;AAE7F,6DAA6D;AAC7D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,QAAQ,MAAM,EAAE,CAAC;AAC/D,2DAA2D;AAC3D,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC;AAC/B,0FAA0F;AAC1F,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAChD,uEAAuE;AACvE,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAChD;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"contrat.js","sourceRoot":"","sources":["../../../src/temporal/file/contrat.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,uEAAuE;AACvE,8EAA8E;AAC9E,kGAAkG;AAClG,wFAAwF;AACxF,wFAAwF;AACxF,6FAA6F;AAE7F,6DAA6D;AAC7D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,QAAQ,MAAM,EAAE,CAAC;AAC/D,2DAA2D;AAC3D,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC;AAC/B,0FAA0F;AAC1F,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAChD,uEAAuE;AACvE,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAChD;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;AA6CnC;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAC5B,MAAc,EACd,MAAc,EACd,CAAmF;IAEnF,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACjC,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC;QAChB,OAAO;YACL,IAAI,EAAE,OAAO;YACb,MAAM,EAAE;gBACN,aAAa,MAAM,oBAAoB,KAAK,uCAAuC,CAAC,CAAC,SAAS,wJAAwJ;gBACtP,CAAC,CAAC,MAAM;aACT;iBACE,MAAM,CAAC,OAAO,CAAC;iBACf,IAAI,CAAC,KAAK,CAAC;SACf,CAAC;IACJ,CAAC;IACD,OAAO;QACL,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,CAAC,aAAa,KAAK,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;KAClF,CAAC;AACJ,CAAC"}
|
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
// for none: it starts the CI of main when the tip and the hour ask for it (one pass an hour at most,
|
|
15
15
|
// after a lot entered), then reads it, which opens the defect ticket of a red passage; it never
|
|
16
16
|
// waits for it. Past its length
|
|
17
|
-
// of history, or when the signal RELANCER asks it (
|
|
18
|
-
// continues as new between two entries, with those that wait: busy,
|
|
19
|
-
// way first and treats none of those that wait before restarting. The
|
|
20
|
-
// marker of the final pass (`deprecatePatch`) replay on it.
|
|
21
|
-
|
|
17
|
+
// of history, or when the signal RELANCER asks it (no command sends it; it is treated for the
|
|
18
|
+
// histories in flight), the queue continues as new between two entries, with those that wait: busy,
|
|
19
|
+
// it finishes its entry under way first and treats none of those that wait before restarting. The
|
|
20
|
+
// histories recorded with the marker of the final pass (`deprecatePatch`) replay on it.
|
|
21
|
+
// Deterministic: it imports the workflow API and the contract.
|
|
22
|
+
import { allHandlersFinished, ChildWorkflowCancellationType, condition, continueAsNew, defineQuery, defineSignal, deprecatePatch, getExternalWorkflowHandle, isCancellation, ParentClosePolicy, patched, proxyActivities, setHandler, startChild, workflowInfo, setWorkflowOptions, } from '@temporalio/workflow';
|
|
22
23
|
import { WorkflowExecutionAlreadyStartedError } from '@temporalio/common';
|
|
23
24
|
import { idDeLaFile, ENTRER, issueDeLEntree, ISSUE_DE_LA_FILE, L_ETAT_DE_LA_FILE, RELANCER, } from './contrat.js';
|
|
24
25
|
// Every act of the queue: a replacement of a branch and its install last 2 h at most; the rest
|
|
@@ -256,4 +257,5 @@ export async function fileDuProjet(entree) {
|
|
|
256
257
|
}
|
|
257
258
|
}
|
|
258
259
|
}
|
|
260
|
+
setWorkflowOptions({ versioningBehavior: 'AUTO_UPGRADE' }, fileDuProjet);
|
|
259
261
|
//# sourceMappingURL=deroule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deroule.js","sourceRoot":"","sources":["../../../src/temporal/file/deroule.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,sEAAsE;AACtE,mGAAmG;AACnG,iGAAiG;AACjG,qGAAqG;AACrG,+FAA+F;AAC/F,mGAAmG;AACnG,kGAAkG;AAClG,gGAAgG;AAChG,gGAAgG;AAChG,oGAAoG;AACpG,kGAAkG;AAClG,kGAAkG;AAClG,qGAAqG;AACrG,gGAAgG;AAChG,gCAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"deroule.js","sourceRoot":"","sources":["../../../src/temporal/file/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