@intentius/chant 0.124.102 → 0.124.103
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/dist/cli/commands/onboard.js +8 -8
- package/dist/cli/handlers/release-init.js +3 -1
- package/dist/cli/main.js +13 -2
- package/dist/cli/parse-args.js +5 -0
- package/dist/cli/registry.d.ts +2 -0
- package/dist/cloud-lister/kubernetes-components.js +1 -2
- package/dist/floor-table.data.js +7 -6
- package/dist/lifecycle/publish-declaration.js +1 -2
- package/dist/lifecycle/publish-helm.js +1 -2
- package/dist/lifecycle/publish-maven.js +1 -2
- package/dist/lifecycle/publish-npm.js +1 -1
- package/dist/lifecycle/publish-nuget.js +1 -2
- package/dist/lifecycle/publish-rubygems.js +1 -2
- package/dist/lifecycle/release-artifacts.js +1 -2
- package/dist/lifecycle/release-init.js +10 -9
- package/dist/release-floors.d.ts +1 -1
- package/dist/release-floors.js +1 -1
- package/dist/wave-runtime.mjs +4 -4
- package/dist/workspace/release-train-workflow.d.ts +21 -3
- package/dist/workspace/release-train-workflow.js +129 -8
- package/dist/workspace/release-train.js +5 -1
- package/dist/workspace/release-workflow.d.ts +11 -0
- package/dist/workspace/release-workflow.js +42 -9
- package/dist/workspace/train-artifacts.d.ts +107 -0
- package/dist/workspace/train-artifacts.js +239 -0
- package/dist/workspace/train-cut.d.ts +12 -0
- package/dist/workspace/train-cut.js +22 -2
- package/dist/workspace/train-publish.d.ts +9 -0
- package/dist/workspace/train-publish.js +27 -1
- package/package.json +1 -1
|
@@ -243,9 +243,9 @@ function patchCiWorkflow(root, name) {
|
|
|
243
243
|
/**
|
|
244
244
|
* Patch publish.yml: add the prepack line to the test job.
|
|
245
245
|
*
|
|
246
|
-
* No publish step is added.
|
|
247
|
-
*
|
|
248
|
-
* the
|
|
246
|
+
* No publish step is added. Each publishable package is a release member
|
|
247
|
+
* under release/, written by scripts/generate-release-members.ts from the
|
|
248
|
+
* workspace, and publish.yml publishes the release train — that is deliberate. Hand-maintained publish steps
|
|
249
249
|
* were how k8s-client (#1177) and fountain (#1253) each shipped a package
|
|
250
250
|
* the release pipeline could not publish.
|
|
251
251
|
*/
|
|
@@ -259,12 +259,12 @@ function patchPublishWorkflow(root, name) {
|
|
|
259
259
|
}
|
|
260
260
|
if (!insertPrepackAfterEach(lines, name)) {
|
|
261
261
|
// #3227 — not a failure and not "covered by a prepack line": publish.yml
|
|
262
|
-
// carries no per-lexicon lines.
|
|
263
|
-
// scripts/ci-lexicon-artifacts.sh and publishes
|
|
264
|
-
// scripts/
|
|
262
|
+
// carries no per-lexicon lines. CI builds every lexicon through
|
|
263
|
+
// scripts/ci-lexicon-artifacts.sh, and publish.yml publishes the release
|
|
264
|
+
// members scripts/generate-release-members.ts writes; both enumerate the workspace.
|
|
265
265
|
return {
|
|
266
266
|
patched: false,
|
|
267
|
-
reason: "nothing to patch: it has no per-lexicon prepack lines; scripts/ci-lexicon-artifacts.sh and scripts/
|
|
267
|
+
reason: "nothing to patch: it has no per-lexicon prepack lines; scripts/ci-lexicon-artifacts.sh and scripts/generate-release-members.ts enumerate the workspace",
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
270
|
writeFileSync(filePath, lines.join("\n"));
|
|
@@ -386,7 +386,7 @@ export async function printOnboardResult(result, name) {
|
|
|
386
386
|
console.log(` (must depend on @intentius/chant-lexicon-${name} for workspace resolution)`);
|
|
387
387
|
console.log(` 2. Add smoke tests to test/integration.sh`);
|
|
388
388
|
console.log(` 3. Run: npm install (to update workspace links)`);
|
|
389
|
-
console.log(` 4. First release:
|
|
389
|
+
console.log(` 4. First release: npx tsx scripts/generate-release-members.ts, commit release/lexicon-${name}/, then just release`);
|
|
390
390
|
console.log(` 5. Run: chant dev check-lexicon lexicons/${name} (to see completeness status)`);
|
|
391
391
|
console.log(formatWarning({
|
|
392
392
|
message: "First-time scoped packages may publish as private despite --access public",
|
|
@@ -294,7 +294,9 @@ async function runTrainInit(ctx, root, plan, fg, fail) {
|
|
|
294
294
|
`chant workspace train cut ${plan.env} # the first train's plan; nothing is cut without --yes`,
|
|
295
295
|
fg === "github"
|
|
296
296
|
? `gh workflow run ${wf} -f levels=auto # each package's level from its commits since its last release`
|
|
297
|
-
:
|
|
297
|
+
: fg === "gitlab"
|
|
298
|
+
? "run a pipeline with the variable CHANT_RELEASE_LEVELS=auto (each package's level from its commits since its last release)"
|
|
299
|
+
: `start ${plan.workflowFile} by hand with the levels auto (each package's level from its commits since its last release)`,
|
|
298
300
|
];
|
|
299
301
|
const memberOut = members.map((m) => ({ name: m.name, dir: m.dir, package: m.package, config: rel(m.path), created: m.created, release: m.release }));
|
|
300
302
|
const out = (dryRun) => ({
|
package/dist/cli/main.js
CHANGED
|
@@ -1207,13 +1207,14 @@ Workspace (level 1, #2524):
|
|
|
1207
1207
|
instead; --continue moves on from the member's answer
|
|
1208
1208
|
in _control/applied.jsonl, after applied or unchanged
|
|
1209
1209
|
(#5119)
|
|
1210
|
-
workspace train cut <env> [--at <sha>] [--levels <levels>] [--yes] [--no-push] [--json]
|
|
1210
|
+
workspace train cut <env> [--at <sha>] [--levels <levels>] [--doctor] [--yes] [--no-push] [--json]
|
|
1211
1211
|
Cut a train (release.train): the members release
|
|
1212
1212
|
changed lists, each labelled past every version its
|
|
1213
1213
|
ledger, tags, packages and npm hold, cut at one
|
|
1214
1214
|
commit, the train recorded, and the member tags and
|
|
1215
1215
|
release-train/<env>/<id> pushed in one push. --levels
|
|
1216
|
-
types levels (auto, minor, core=major ...).
|
|
1216
|
+
types levels (auto, minor, core=major ...). --doctor
|
|
1217
|
+
runs release doctor in each member first. Without
|
|
1217
1218
|
--yes it plans (#5154)
|
|
1218
1219
|
workspace train prepare <env> [<train id|digest>] [--json]
|
|
1219
1220
|
In a checkout of the train's commit: stamp each member
|
|
@@ -1221,6 +1222,16 @@ Workspace (level 1, #2524):
|
|
|
1221
1222
|
workspace packages they depend on that the train does
|
|
1222
1223
|
not publish here, once each, dependencies first
|
|
1223
1224
|
(#5154)
|
|
1225
|
+
workspace train artifacts <env> [<train id|digest>] [--from <dir>] [-o <dir>] [--no-build] [--json]
|
|
1226
|
+
In a checkout of the train's commit: check the image
|
|
1227
|
+
archives and release.artifacts files of each member
|
|
1228
|
+
cut here against its release, building a member's
|
|
1229
|
+
again when one is missing. --from copies them from a
|
|
1230
|
+
directory -o staged them in, per member directory
|
|
1231
|
+
(#5216)
|
|
1232
|
+
workspace train verify <env> [<train id|digest>] [--json]
|
|
1233
|
+
release verify for each member the train cut from
|
|
1234
|
+
this commit (#5216)
|
|
1224
1235
|
workspace train publish <env> [<train id|digest>] [--yes] [--allow-unsigned] [--require-provenance] [--json]
|
|
1225
1236
|
Publish a train as one set: every member cut from this
|
|
1226
1237
|
commit stages before any reveals, then each dependency
|
package/dist/cli/parse-args.js
CHANGED
|
@@ -84,6 +84,7 @@ const BOOLEAN_FLAGS = new Set([
|
|
|
84
84
|
"--require-runner-start",
|
|
85
85
|
"--require-clouds",
|
|
86
86
|
"--no-push",
|
|
87
|
+
"--doctor",
|
|
87
88
|
"--no-forks",
|
|
88
89
|
"--list",
|
|
89
90
|
"--no-require-review",
|
|
@@ -1728,6 +1729,10 @@ export function parseArgs(args) {
|
|
|
1728
1729
|
// `chant release init --one-release` (#5154): a workspace's packages released together, not as a train.
|
|
1729
1730
|
result.oneRelease = true;
|
|
1730
1731
|
}
|
|
1732
|
+
else if (arg === "--doctor") {
|
|
1733
|
+
// `chant workspace train cut <env> --doctor` (#5216): run release doctor in each member before the cut.
|
|
1734
|
+
result.doctor = true;
|
|
1735
|
+
}
|
|
1731
1736
|
else if (arg === "--no-push") {
|
|
1732
1737
|
// `chant ci run --no-push` (#4156): keep the run record on the local chant/lifecycle.
|
|
1733
1738
|
result.noPush = true;
|
package/dist/cli/registry.d.ts
CHANGED
|
@@ -786,6 +786,8 @@ export interface ParsedArgs {
|
|
|
786
786
|
ciJob?: string;
|
|
787
787
|
/** `chant ci run --no-push` (#4156): write the run record on the local chant/lifecycle and push nothing. */
|
|
788
788
|
noPush?: boolean;
|
|
789
|
+
/** `chant workspace train cut <env> --doctor` (#5216): `chant release doctor` in each member of the train before anything is cut. */
|
|
790
|
+
doctor?: boolean;
|
|
789
791
|
/** `chant release init --one-release` (#5154): every package of a workspace in one release, not a train. */
|
|
790
792
|
oneRelease?: boolean;
|
|
791
793
|
/** `chant ci serve|run --setup-key --trust --principal <name>` (#4099): the principal the runner key is listed for. */
|
|
@@ -60,10 +60,9 @@
|
|
|
60
60
|
* graph typed without the k8s lexicon gives the same answer.
|
|
61
61
|
*/
|
|
62
62
|
import { MASKED as TYPED_MASKED } from "../deep-observation.js";
|
|
63
|
-
import { NEXT_RELEASE } from "../release-floors.js";
|
|
64
63
|
import { MASKED as LISTED_MASKED } from "./mask.js";
|
|
65
64
|
/** The first chant with `inferK8sComponents`, the applications of a live Kubernetes read as a component graph (#5252). */
|
|
66
|
-
export const K8S_COMPONENTS_FLOOR =
|
|
65
|
+
export const K8S_COMPONENTS_FLOOR = "0.124.102";
|
|
67
66
|
const WORKLOAD_KINDS = new Set(["Deployment", "StatefulSet", "DaemonSet", "CronJob", "Job", "ReplicaSet", "Pod"]);
|
|
68
67
|
const WORKLOAD_GROUPS = new Set(["", "apps", "batch"]);
|
|
69
68
|
const ROLE_OF_KIND = {
|
package/dist/floor-table.data.js
CHANGED
|
@@ -75,7 +75,7 @@ export const FLOOR_ROWS = [
|
|
|
75
75
|
{ name: "APPROVE_CONFIRM_FLOOR", version: "0.124.55", gates: "The first chant with `confirmApproval` here, the type-the-name confirmation a product's approve word asks through (#4575).", issue: "#4575", file: "cli/handlers/approve-confirm.ts", modules: ["@intentius/chant/cli/handlers/approve-confirm"] },
|
|
76
76
|
{ name: "PRODUCT_MCP_PROPOSE_FLOOR", version: "0.124.58", gates: "The first chant whose `chant serve mcp` has the `--propose` tier and serves `forgeWrite` product tools on it (chant#4655).", issue: "#4655", file: "cli/mcp/product-tools.ts", modules: ["@intentius/chant/ci-product", "@intentius/chant/cli/mcp/product-tools"] },
|
|
77
77
|
{ name: "MCP_TOOL_ANNOTATIONS_FLOOR", version: "0.124.79", gates: "The first chant whose `tools/list` gives MCP tool annotations: a tool's `annotations`, and `readOnlyHint`/`destructiveHint` from `readOnly: true` or `forgeWrite: true` (chant#4823).", issue: "#4823", file: "cli/mcp/product-tools.ts", modules: ["@intentius/chant/ci-product", "@intentius/chant/cli/mcp/product-tools"] },
|
|
78
|
-
{ name: "K8S_COMPONENTS_FLOOR", version:
|
|
78
|
+
{ name: "K8S_COMPONENTS_FLOOR", version: "0.124.102", gates: "The first chant with `inferK8sComponents`, the applications of a live Kubernetes read as a component graph (#5252).", issue: "#5252", file: "cloud-lister/kubernetes-components.ts", modules: ["@intentius/chant/cloud-lister/index", "@intentius/chant/cloud-lister/kubernetes-components"] },
|
|
79
79
|
{ name: "DEPLOY_ADOPT_FLOOR", version: "0.124.55", gates: "The first chant whose `run --components` takes `--adopt`.", file: "components/adoption.ts", modules: ["@intentius/chant/components/adoption"] },
|
|
80
80
|
{ name: "CI_SERVICES_FLOOR", version: "0.124.55", gates: "The first chant with `LexiconPlugin.ciServices` and this module (#4572).", issue: "#4572", file: "components/ci-services.ts", modules: ["@intentius/chant/ci-product", "@intentius/chant/components/ci-services"] },
|
|
81
81
|
{ name: "PR_ENV_COMPONENTS_FLOOR", version: "0.124.77", gates: "The first chant with the component adapter and teardown, and the terraform lexicon's copies on them (#4762).", issue: "#4762", file: "components/pr-env-components.ts", modules: ["@intentius/chant/components/pr-env-components"] },
|
|
@@ -104,18 +104,18 @@ export const FLOOR_ROWS = [
|
|
|
104
104
|
{ name: "PUBLISH_FORGE_LATEST_FLOOR", version: "0.124.63", gates: "The first chant that reads `latest` on a forge target and sends it as GitHub's `make_latest` (#4676).", issue: "#4676", file: "lifecycle/publish-forge.ts", modules: ["@intentius/chant/lifecycle/publish-forge"] },
|
|
105
105
|
{ name: "PUBLISH_FORGE_NOTES_FLOOR", version: "0.124.71", gates: "The first chant whose forge target reads `notes` and may have no assets (#4658).", issue: "#4658", file: "lifecycle/publish-forge.ts", modules: ["@intentius/chant/lifecycle/publish-forge"] },
|
|
106
106
|
{ name: "PUBLISH_FORGE_GENERATED_NOTES_FLOOR", version: "0.124.101", gates: "The first chant whose forge target generates notes, `notes.generate` (#5153).", issue: "#5153", file: "lifecycle/publish-forge.ts", modules: ["@intentius/chant/lifecycle/publish-forge"] },
|
|
107
|
-
{ name: "PUBLISH_HELM_FLOOR", version:
|
|
107
|
+
{ name: "PUBLISH_HELM_FLOOR", version: "0.124.102", gates: "The first chant that publishes a `helm` target (#5233).", issue: "#5233", file: "lifecycle/publish-helm.ts", modules: ["@intentius/chant/lifecycle/publish-helm"] },
|
|
108
108
|
{ name: "PUBLISH_HOMEBREW_FLOOR", version: "0.124.63", gates: "The first chant that publishes a `homebrew` target (#4676).", issue: "#4676", file: "lifecycle/publish-homebrew.ts", modules: ["@intentius/chant/lifecycle/publish-homebrew"] },
|
|
109
109
|
{ name: "PUBLISH_HOMEBREW_SSH_KEY_FLOOR", version: "0.124.64", gates: "The first chant that reads a homebrew target's `sshKeyEnv` (#4699).", issue: "#4699", file: "lifecycle/publish-homebrew.ts", modules: ["@intentius/chant/lifecycle/publish-homebrew"] },
|
|
110
110
|
{ name: "PUBLISH_INDEX_FLOOR", version: "0.124.101", gates: "The first chant that publishes an `index` target (#5158).", issue: "#5158", file: "lifecycle/publish-index.ts", modules: ["@intentius/chant/lifecycle/publish-index"] },
|
|
111
111
|
{ name: "PUBLISH_MARKETPLACE_FLOOR", version: "0.124.63", gates: "The first chant that publishes a `marketplace` target (#4676).", issue: "#4676", file: "lifecycle/publish-marketplace.ts", modules: ["@intentius/chant/lifecycle/publish-marketplace"] },
|
|
112
112
|
{ name: "PUBLISH_MARKETPLACE_AUTH_FLOOR", version: "0.124.64", gates: "The first chant that reads a marketplace target's `auth` (#4698).", issue: "#4698", file: "lifecycle/publish-marketplace.ts", modules: ["@intentius/chant/lifecycle/publish-marketplace"] },
|
|
113
113
|
{ name: "PUBLISH_MARKETPLACE_ON_REFUSAL_FLOOR", version: "0.124.64", gates: "The first chant that reads a marketplace target's `onRefusal` (#4698).", issue: "#4698", file: "lifecycle/publish-marketplace.ts", modules: ["@intentius/chant/lifecycle/publish-marketplace"] },
|
|
114
|
-
{ name: "PUBLISH_MAVEN_FLOOR", version:
|
|
114
|
+
{ name: "PUBLISH_MAVEN_FLOOR", version: "0.124.102", gates: "The first chant that publishes a `maven` target (#5232).", issue: "#5232", file: "lifecycle/publish-maven.ts", modules: ["@intentius/chant/lifecycle/publish-maven"] },
|
|
115
115
|
{ name: "PUBLISH_MCP_REGISTRY_FLOOR", version: "0.124.101", gates: "The first chant with the `mcp-registry` publish target: a `server.json` published to the MCP Registry after the packages it names, with GitHub OIDC, and the `mcp-registry-*` checks of `chant release doctor` (#5162).", issue: "#5162", file: "lifecycle/publish-mcp-registry.ts", modules: ["@intentius/chant/lifecycle/publish-mcp-registry"] },
|
|
116
|
-
{ name: "PUBLISH_NUGET_FLOOR", version:
|
|
116
|
+
{ name: "PUBLISH_NUGET_FLOOR", version: "0.124.102", gates: "The first chant that publishes a `nuget` target (#5232).", issue: "#5232", file: "lifecycle/publish-nuget.ts", modules: ["@intentius/chant/lifecycle/publish-nuget"] },
|
|
117
117
|
{ name: "PUBLISH_PYPI_FLOOR", version: "0.124.101", gates: "The first chant that publishes a `pypi` target (#5167).", issue: "#5167", file: "lifecycle/publish-pypi.ts", modules: ["@intentius/chant/lifecycle/publish-pypi"] },
|
|
118
|
-
{ name: "PUBLISH_RUBYGEMS_FLOOR", version:
|
|
118
|
+
{ name: "PUBLISH_RUBYGEMS_FLOOR", version: "0.124.102", gates: "The first chant that publishes a `rubygems` target (#5232).", issue: "#5232", file: "lifecycle/publish-rubygems.ts", modules: ["@intentius/chant/lifecycle/publish-rubygems"] },
|
|
119
119
|
{ name: "PUBLISH_TAURI_UPDATER_FLOOR", version: "0.124.63", gates: "The first chant that publishes a `tauri-updater` target (#4676).", issue: "#4676", file: "lifecycle/publish-tauri.ts", modules: ["@intentius/chant/lifecycle/publish-tauri"] },
|
|
120
120
|
{ name: "LEDGER_ROOT_MEMBER_FLOOR", version: "0.124.54", gates: "The first chant that writes `root_member` on a `runs` row, in `chant query` and in `chant ledger runs --json` (#4482, #4500).", issue: "#4482", file: "lifecycle/query.ts", modules: ["@intentius/chant/lifecycle/query"] },
|
|
121
121
|
{ name: "QUERY_OWNERSHIP_COLUMNS_FLOOR", version: "0.124.54", gates: "The first chant that writes `marker_stack`, `marker_env`, `engine_ownership` and `engine_owned_by` on a `resources` row, in `chant query` and in `chant ledger resources --json` (#4534).", issue: "#4534", file: "lifecycle/query.ts", modules: ["@intentius/chant/lifecycle/query"] },
|
|
@@ -124,7 +124,7 @@ export const FLOOR_ROWS = [
|
|
|
124
124
|
{ name: "LEDGER_CONTROL_ENTRIES_FLOOR", version: "0.124.55", gates: "The first chant with the `control_entries` table (#4593), added within version 1.", issue: "#4593", file: "lifecycle/query.ts", modules: ["@intentius/chant/lifecycle/query"] },
|
|
125
125
|
{ name: "LEDGER_RELEASE_STATUS_FLOOR", version: "0.124.55", gates: "The first chant with the `release_status` table (#4596), added within version 1 (chant#4551's ruling C).", issue: "#4551", file: "lifecycle/query.ts", modules: ["@intentius/chant/lifecycle/query"] },
|
|
126
126
|
{ name: "RELEASE_ARTIFACTS_FLOOR", version: "0.124.101", gates: "The first chant with `release.artifacts`, `chant release artifacts` and `artifact:<name>` in a forge or homebrew target's `assets` (#5151).", issue: "#5151", file: "lifecycle/release-artifacts.ts", modules: ["@intentius/chant/lifecycle/release-artifacts"] },
|
|
127
|
-
{ name: "RELEASE_ARTIFACTS_PACKAGES_FLOOR", version:
|
|
127
|
+
{ name: "RELEASE_ARTIFACTS_PACKAGES_FLOOR", version: "0.124.102", gates: "The first chant with `helm` and `nfpm` entries in `release.artifacts` (#5233).", issue: "#5233", file: "lifecycle/release-artifacts.ts", modules: ["@intentius/chant/lifecycle/release-artifacts"] },
|
|
128
128
|
{ name: "RELEASE_CATALOG_FLOOR", version: "0.124.55", gates: "The first chant that writes and reads a release catalog (#4595).", issue: "#4595", file: "lifecycle/release-catalog.ts", modules: ["@intentius/chant/lifecycle/release-catalog"] },
|
|
129
129
|
{ name: "RELEASE_CUT_LANE_FLOOR", version: "0.124.64", gates: "The first chant that cuts from a lane's green tag and writes `lane` on the cut line (#4692).", issue: "#4692", file: "lifecycle/release-cut.ts", modules: ["@intentius/chant/lifecycle/release-cut"] },
|
|
130
130
|
{ name: "RELEASE_CUT_OVERRIDE_FLOOR", version: "0.124.64", gates: "The first chant that cuts a commit that is not green under an override and writes `override` on the cut line (#4693).", issue: "#4693", file: "lifecycle/release-cut.ts", modules: ["@intentius/chant/lifecycle/release-cut"] },
|
|
@@ -292,6 +292,7 @@ export const FLOOR_ROWS = [
|
|
|
292
292
|
{ name: "RELEASE_CANDIDATES_CLOSES_FLOOR", version: "0.124.63", gates: "The first chant whose candidates carry `changes[].closes` and `groups[].issue` (#4649).", issue: "#4649", file: "workspace/release-candidates.ts", modules: ["@intentius/chant/workspace/release-candidates"] },
|
|
293
293
|
{ name: "RELEASE_CANDIDATES_LANE_FLOOR", version: "0.124.64", gates: "The first chant whose candidates document carries `lane` and reads a lane's tags (#4692).", issue: "#4692", file: "workspace/release-candidates.ts", modules: ["@intentius/chant/workspace/release-candidates"] },
|
|
294
294
|
{ name: "TRAIN_PROMOTE_FLOOR", version: "0.124.98", gates: "The first chant that writes ReleaseTrainRecord.trainDigest and has `chant workspace train promote` (#4037).", issue: "#4037", file: "workspace/release-train.ts", modules: ["@intentius/chant/workspace/release-train"] },
|
|
295
|
+
{ name: "TRAIN_ARTIFACTS_FLOOR", version: NEXT_RELEASE, gates: "The first chant with `chant workspace train artifacts`, `train verify` and `train cut --doctor`, and a train publish that gives a member with images its digests in `CHANT_RELEASE_DIGESTS` (#5216): what the train workflow's cut and publish jobs run.", issue: "#5216", file: "workspace/train-artifacts.ts", modules: ["@intentius/chant/workspace/train-artifacts"] },
|
|
295
296
|
{ name: "TRAIN_PUBLISH_TARGETS_FLOOR", version: "0.124.101", gates: "The first chant whose `chant workspace train publish` orders and resumes members of every target kind (#5165): the oci, forge, homebrew, index, marketplace, pypi, cargo, mcp-registry and tauri-updater targets name what they publish and need, say whether a pinned release is published, and wait until a reveal is served before the next layer; a member's `release.dependsOn` names members a manifest doesn't show.", issue: "#5165", file: "workspace/train-publish.ts", modules: ["@intentius/chant/workspace/train-publish"] },
|
|
296
297
|
{ name: "PROW_LEXICON_FLOOR", version: "0.124.101", package: "@intentius/chant-lexicon-prow", gates: "The first prow lexicon release: `Presubmit`, `Postsubmit`, `Periodic` and `JobConfig`, `emitJobConfig` for plain job data, `forgeJobConfig` for one repository's jobs keyed by its owner/name (#5170), the generators behind `chant build --components --generate prow` and `chant run --generate prow` (#5189), `chant import` of a job config, and the PROW rules (#5169).", issue: "#5169", file: "lexicons/prow/src/chant-floors.ts", modules: ["@intentius/chant-lexicon-prow", "@intentius/chant-lexicon-prow/chant-floors", "@intentius/chant-lexicon-prow/index"] },
|
|
297
298
|
{ name: "MODULE_CONSUMERS_FLOOR", version: "0.124.55", package: "@intentius/chant-lexicon-terraform", gates: "The first terraform lexicon release that has `moduleConsumers`, the scan of every registry module call a root makes, with `readRegistryCatalog` and `deprecatedPins` beside it on `./registry` (#4599).", issue: "#4599", file: "lexicons/terraform/src/chant-floors.ts", modules: ["@intentius/chant-lexicon-terraform/chant-floors", "@intentius/chant-lexicon-terraform/registry", "@intentius/chant-lexicon-terraform/registry/index"] },
|
|
@@ -62,8 +62,7 @@ export const NpmPublishSchema = z
|
|
|
62
62
|
stage: z.boolean().optional(),
|
|
63
63
|
/**
|
|
64
64
|
* A variable holding an npm token to retry with when a package's publish
|
|
65
|
-
* fails to authenticate (#4040)
|
|
66
|
-
* a package whose trusted-publisher record is broken publishes with the
|
|
65
|
+
* fails to authenticate (#4040): a package whose trusted-publisher record is broken publishes with the
|
|
67
66
|
* token rather than failing the release. Unset or empty, there is no retry.
|
|
68
67
|
*/
|
|
69
68
|
tokenEnv: envName.optional(),
|
|
@@ -41,10 +41,9 @@ import { Registry, ociCredential, parseRepository } from "./publish-oci.js";
|
|
|
41
41
|
import { bytesDigest, checkReleaseDigest, expandArtifactAssets, memberFile, publishTargetKey } from "./publish-targets.js";
|
|
42
42
|
import { trainName, waitUntilServed } from "./publish-train-names.js";
|
|
43
43
|
import { PublishTargetError } from "./release-publish.js";
|
|
44
|
-
import { NEXT_RELEASE } from "../release-floors.js";
|
|
45
44
|
import { emitYAML, parseYAML } from "../yaml.js";
|
|
46
45
|
/** The first chant that publishes a `helm` target (#5233). */
|
|
47
|
-
export const PUBLISH_HELM_FLOOR =
|
|
46
|
+
export const PUBLISH_HELM_FLOOR = "0.124.102";
|
|
48
47
|
/** The media type of a chart's config blob: its metadata as JSON. */
|
|
49
48
|
export const HELM_CONFIG_MEDIA_TYPE = "application/vnd.cncf.helm.config.v1+json";
|
|
50
49
|
/** The media type of a chart's archive layer. */
|
|
@@ -46,10 +46,9 @@ import { zipEntry, zipEntryNames } from "./publish-pypi.js";
|
|
|
46
46
|
import { bytesDigest, checkReleaseDigest, expandArtifactAssets, memberFile, publishTargetKey } from "./publish-targets.js";
|
|
47
47
|
import { trainName, waitUntilServed } from "./publish-train-names.js";
|
|
48
48
|
import { zipArchive } from "./release-artifacts.js";
|
|
49
|
-
import { NEXT_RELEASE } from "../release-floors.js";
|
|
50
49
|
import { PublishTargetError } from "./release-publish.js";
|
|
51
50
|
/** The first chant that publishes a `maven` target (#5232). */
|
|
52
|
-
export const PUBLISH_MAVEN_FLOOR =
|
|
51
|
+
export const PUBLISH_MAVEN_FLOOR = "0.124.102";
|
|
53
52
|
export const CENTRAL_PORTAL = "https://central.sonatype.com";
|
|
54
53
|
export const MAVEN_CENTRAL_REPOSITORY = "https://repo1.maven.org/maven2/";
|
|
55
54
|
/** How often the stage asks the Portal whether it has validated the bundle. */
|
|
@@ -61,7 +61,7 @@ import { trainName } from "./publish-train-names.js";
|
|
|
61
61
|
import { readPins, unknownPins } from "./release-images.js";
|
|
62
62
|
import { NPM_STAGE_TAG, PublishTargetError, statusMessage } from "./release-publish.js";
|
|
63
63
|
import { prereleaseOf } from "./release-prerelease.js";
|
|
64
|
-
/** npm's output when a publish could not authenticate
|
|
64
|
+
/** npm's output when a publish could not authenticate. */
|
|
65
65
|
const NPM_AUTH_FAILED = /ENEEDAUTH|E401|need auth/;
|
|
66
66
|
/** Read a package's name and version, from its directory or its packed `.tgz`, and find the SBOM it carries. */
|
|
67
67
|
function readPackage(ctx, path, sbom) {
|
|
@@ -52,10 +52,9 @@ import { packageFiles } from "./publish-package-files.js";
|
|
|
52
52
|
import { zipEntry, zipEntryNames } from "./publish-pypi.js";
|
|
53
53
|
import { bytesDigest, checkReleaseDigest, hasIdToken, publishTargetKey, runIdToken } from "./publish-targets.js";
|
|
54
54
|
import { trainName, waitUntilServed } from "./publish-train-names.js";
|
|
55
|
-
import { NEXT_RELEASE } from "../release-floors.js";
|
|
56
55
|
import { PublishTargetError } from "./release-publish.js";
|
|
57
56
|
/** The first chant that publishes a `nuget` target (#5232). */
|
|
58
|
-
export const PUBLISH_NUGET_FLOOR =
|
|
57
|
+
export const PUBLISH_NUGET_FLOOR = "0.124.102";
|
|
59
58
|
export const NUGET_ORG = { label: "nuget.org", site: "https://www.nuget.org", push: "https://www.nuget.org/api/v2/package", flat: "https://api.nuget.org/v3-flatcontainer/", token: "https://www.nuget.org/api/v2/token" };
|
|
60
59
|
/** The audience nuget.org takes an OIDC ID token for. */
|
|
61
60
|
export const NUGET_AUDIENCE = "https://www.nuget.org";
|
|
@@ -47,10 +47,9 @@ import { packageFiles } from "./publish-package-files.js";
|
|
|
47
47
|
import { tarEntries } from "./publish-pypi.js";
|
|
48
48
|
import { bytesDigest, checkReleaseDigest, hasIdToken, publishTargetKey, runIdToken } from "./publish-targets.js";
|
|
49
49
|
import { trainName, waitUntilServed } from "./publish-train-names.js";
|
|
50
|
-
import { NEXT_RELEASE } from "../release-floors.js";
|
|
51
50
|
import { PublishTargetError } from "./release-publish.js";
|
|
52
51
|
/** The first chant that publishes a `rubygems` target (#5232). */
|
|
53
|
-
export const PUBLISH_RUBYGEMS_FLOOR =
|
|
52
|
+
export const PUBLISH_RUBYGEMS_FLOOR = "0.124.102";
|
|
54
53
|
export const RUBYGEMS_ORG = "https://rubygems.org";
|
|
55
54
|
/** The audience RubyGems.org takes an OIDC ID token for. */
|
|
56
55
|
export const RUBYGEMS_AUDIENCE = "rubygems.org";
|
|
@@ -73,7 +73,6 @@ import { createHash } from "node:crypto";
|
|
|
73
73
|
import { copyFileSync, existsSync, mkdirSync, readdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
74
74
|
import { dirname, isAbsolute, posix, relative, resolve } from "node:path";
|
|
75
75
|
import { deflateRawSync, gzipSync } from "node:zlib";
|
|
76
|
-
import { NEXT_RELEASE } from "../release-floors.js";
|
|
77
76
|
import { stampVersionFile } from "./release-version-formats.js";
|
|
78
77
|
import { parseYAML } from "../yaml.js";
|
|
79
78
|
/** The first chant with `release.artifacts`, `chant release artifacts` and `artifact:<name>` in a forge or homebrew target's `assets` (#5151). */
|
|
@@ -81,7 +80,7 @@ export const RELEASE_ARTIFACTS_FLOOR = "0.124.101";
|
|
|
81
80
|
/** The variable naming the goreleaser binary the cut runs. */
|
|
82
81
|
export const GORELEASER_ENV = "CHANT_GORELEASER";
|
|
83
82
|
/** The first chant with `helm` and `nfpm` entries in `release.artifacts` (#5233). */
|
|
84
|
-
export const RELEASE_ARTIFACTS_PACKAGES_FLOOR =
|
|
83
|
+
export const RELEASE_ARTIFACTS_PACKAGES_FLOOR = "0.124.102";
|
|
85
84
|
/** The variable naming the nfpm binary the cut runs (#5233). */
|
|
86
85
|
export const NFPM_ENV = "CHANT_NFPM";
|
|
87
86
|
/** The package formats an nfpm entry builds. */
|
|
@@ -711,21 +711,19 @@ export function trainFit(facts) {
|
|
|
711
711
|
return { train: false, why: `the root package ${node.root.name} is published too, and a train releases the packages below the root` };
|
|
712
712
|
const ext = [node.root, ...node.workspaces].find((p) => p.vscode && !p.private && p.name);
|
|
713
713
|
if (ext)
|
|
714
|
-
return { train: false, why: `${ext.name} is a VS Code extension, and
|
|
714
|
+
return { train: false, why: `${ext.name} is a VS Code extension, and release init makes a train's members of npm packages only` };
|
|
715
715
|
if (facts.goreleaser)
|
|
716
|
-
return { train: false, why: `${facts.goreleaser.file} builds files
|
|
716
|
+
return { train: false, why: `${facts.goreleaser.file} builds files for the repository, and release init makes a train's members of npm packages only, with none to build them` };
|
|
717
717
|
if (facts.dockerfiles.length > 0)
|
|
718
|
-
return { train: false, why: `${facts.dockerfiles[0]}
|
|
718
|
+
return { train: false, why: `${facts.dockerfiles[0]} builds an image, and release init makes a train's members of npm packages only, with none to build it` };
|
|
719
719
|
if ((facts.charts?.length ?? 0) > 0)
|
|
720
|
-
return { train: false, why: `${facts.charts[0].dir}/Chart.yaml is a chart packed at the cut,
|
|
720
|
+
return { train: false, why: `${facts.charts[0].dir}/Chart.yaml is a chart packed at the cut, and release init makes a train's members of npm packages only, with none to pack it` };
|
|
721
721
|
if (facts.nfpm)
|
|
722
|
-
return { train: false, why: `${facts.nfpm.file} packages files at the cut,
|
|
722
|
+
return { train: false, why: `${facts.nfpm.file} packages files at the cut, and release init makes a train's members of npm packages only, with none to build them` };
|
|
723
723
|
if (facts.python?.pyproject && facts.python.name)
|
|
724
|
-
return { train: false, why: "pyproject.toml
|
|
724
|
+
return { train: false, why: "pyproject.toml's package publishes beside the npm packages, and release init makes a train's members of npm packages only" };
|
|
725
725
|
if (facts.rust && !facts.rust.unpublishable && (facts.rust.name || facts.rust.workspace))
|
|
726
726
|
return { train: false, why: "Cargo.toml's crates publish beside the npm packages, and a train releases npm packages" };
|
|
727
|
-
if (facts.workflowForge === "gitlab")
|
|
728
|
-
return { train: false, why: "the train workflow renders for GitHub and Forgejo, and this repository runs GitLab CI" };
|
|
729
727
|
return { train: true };
|
|
730
728
|
}
|
|
731
729
|
/** A workspace member name (lowercase letters, digits and dashes, at most 40) for a package. */
|
|
@@ -822,8 +820,11 @@ export function planTrain(facts, opts) {
|
|
|
822
820
|
for (const m of members) {
|
|
823
821
|
registry.push(adopted
|
|
824
822
|
? `npm ${m.package}: keep the trusted publisher on npmjs.com that names ${repo} and the workflow file ${workflowName}, or add one naming them if the package has none, and allow npm dist-tag on it, since the reveal moves latest. If ${m.package} is not on npm yet, publish its first version by hand from ${m.dir} (npm publish) so it has settings; the train labels the next past it.`
|
|
825
|
-
: `npm ${m.package}: on npmjs.com, add a trusted publisher for ${forge === "github" ? "GitHub Actions" : "this forge"} naming ${repo} and the workflow file ${workflowName}, and allow npm dist-tag, since the reveal moves latest. Every package names the same file. If ${m.package} is not on npm yet, publish its first version by hand from ${m.dir} (npm publish) so it has settings; the train labels the next past it.`);
|
|
823
|
+
: `npm ${m.package}: on npmjs.com, add a trusted publisher for ${forge === "gitlab" ? `GitLab CI/CD naming ${repo} and the top-level config .gitlab-ci.yml` : `${forge === "github" ? "GitHub Actions" : "this forge"} naming ${repo} and the workflow file ${workflowName}`}, and allow npm dist-tag, since the reveal moves latest. Every package names the same file. If ${m.package} is not on npm yet, publish its first version by hand from ${m.dir} (npm publish) so it has settings; the train labels the next past it.`);
|
|
826
824
|
}
|
|
825
|
+
// #5216: a GitLab job token cannot push the train's tags.
|
|
826
|
+
if (forge === "gitlab")
|
|
827
|
+
registry.push(`GitLab: include ${workflowFile} from .gitlab-ci.yml, and store a project access token with write_repository as the masked CI/CD variable CHANT_RELEASE_TOKEN; the cut and publish jobs push with it.`);
|
|
827
828
|
const workspaceName = memberNameOf({ name: facts.origin?.repo.split("/").pop() ?? node.root.name ?? null, dir: facts.path ?? "workspace" }) || "workspace";
|
|
828
829
|
return { release, members, workspaceName, reasons, notes, registry, workflowFile, env };
|
|
829
830
|
}
|
package/dist/release-floors.d.ts
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* files rather than to the end of this one. The floors below were declared
|
|
27
27
|
* here before that and keep the subpath they shipped under.
|
|
28
28
|
*/
|
|
29
|
-
export declare const NEXT_RELEASE = "0.124.
|
|
29
|
+
export declare const NEXT_RELEASE = "0.124.103";
|
|
30
30
|
/** The first chant with `chant dev local` and `chant dev bundle-check`, `@intentius/chant/local-chant` and `@intentius/chant/bundle-check` (`chantRuntimeTarget`, `chantExternalPlugin`, `checkBundle`): a product built against a chant checkout, and its bundle checked, without its own scripts (#4787). */
|
|
31
31
|
export declare const LOCAL_CHANT_FLOOR = "0.124.86";
|
|
32
32
|
/** The first chant with `chant workspace ref-gate` (pre-receive, pre-push, check, status, attach, install) and `refs` in `.chant/trust.json`, the checks a ref update needs evidence for (#4867). */
|
package/dist/release-floors.js
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* files rather than to the end of this one. The floors below were declared
|
|
27
27
|
* here before that and keep the subpath they shipped under.
|
|
28
28
|
*/
|
|
29
|
-
export const NEXT_RELEASE = "0.124.
|
|
29
|
+
export const NEXT_RELEASE = "0.124.103";
|
|
30
30
|
/** The first chant with `chant dev local` and `chant dev bundle-check`, `@intentius/chant/local-chant` and `@intentius/chant/bundle-check` (`chantRuntimeTarget`, `chantExternalPlugin`, `checkBundle`): a product built against a chant checkout, and its bundle checked, without its own scripts (#4787). */
|
|
31
31
|
export const LOCAL_CHANT_FLOOR = "0.124.86";
|
|
32
32
|
/** The first chant with `chant workspace ref-gate` (pre-receive, pre-push, check, status, attach, install) and `refs` in `.chant/trust.json`, the checks a ref update needs evidence for (#4867). */
|