@mark1russell7/conventions 0.59.4 → 0.60.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/build/cli.js +1 -1
- package/build/index.d.ts +30 -4
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -2
- package/build/{run-CrwleOgO.js → run-BXUOL7js.js} +129 -21
- package/build/run-BXUOL7js.js.map +1 -0
- package/package.json +2 -2
- package/build/run-CrwleOgO.js.map +0 -1
package/README.md
CHANGED
|
@@ -71,7 +71,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
|
|
|
71
71
|
| `roadmap-parses` | Each call of the Pages workflow of the template (`reusable-pages.yml`) gives a `roadmap`, or `site-pages: false`. Without it, the Status page shows no item of the plan. Each roadmap that a workflow gives to the Status page (a `roadmap:` key) parses as `@mark1russell7/site-pages` reads it. The rule uses the parser of site-pages. Thus a pull request finds a bad row, and the Pages job on `main` does not stop on it. | private `fail-closed` (a decision of 2026-10-30). |
|
|
72
72
|
| `workflow-parses` | Each workflow of `.github/workflows` and each file `action.yml` of `.github/actions` parses as YAML, with the parser of the package `yaml`. GitHub refuses a workflow that does not parse, and starts no job. A workflow that starts only on a schedule, a dispatch or `workflow_run` does not start on its pull request. So the rule finds its fault before the merge. The break names the first fault of each file. | layout-contract `memory-probe.yml`, run 42172612147 (2026-11-06). |
|
|
73
73
|
| `runner-budget` | The repositories of each owner share the runners of its plan: 40 for the personal account, 60 for the organization (`OWNERS`). Each `strategy` with a `matrix` has a `max-parallel` of 3 or less. Each workflow has a concurrency group at the top or in each job. A job that calls a shared workflow of the option `grouped` gets its group from that workflow, and each job of that workflow has a group. The minute of each `cron` comes from a hash of the repository and the file (1 to 59), so the schedules of the repositories do not start together. The repository comes from `GITHUB_REPOSITORY` or from the remote `origin`. | private `runner-slots` (a decision of 2026-10-30). |
|
|
74
|
-
| `runner-peak` | The workflows of a repository hold at most its share of the runners in a busy minute. The peak of a job is the jobs of one run (a matrix, capped by its `max-parallel`, or a called workflow with its own jobs) times the runs that its concurrency group lets run at one time. A group of the commit or the run, or no group, gives the option `burst` of runs on `push` and on pull requests. A group of the branch gives one run on `push` and a burst of pull requests. A group with no expression gives one run. A job with an `if` that is false on an event does not count on it. The peak of a workflow is the sum of its classes of events (push, pull request, other). A job that `needs` a different job does not run at the same time as it in one run. Thus the peak of a class is the antichain with the largest weight of the graph of the needs, for each layer of runs, from `maxWeightAntichain` of `@mark1russell7/collections`. The peak is exact for that graph. The
|
|
74
|
+
| `runner-peak` | The workflows of a repository hold at most its share of the runners in a busy minute. The peak of a job is the jobs of one run (a matrix, capped by its `max-parallel`, or a called workflow with its own jobs) times the runs that its concurrency group lets run at one time. A group of the commit or the run, or no group, gives the option `burst` of runs on `push` and on pull requests. A group of the branch gives one run on `push` and a burst of pull requests. A group with no expression gives one run. A job with an `if` that is false on an event does not count on it. The option `pushBurst` gives the burst of `push` (a burst of merges). A step of the action `give-way` holds each job after its job to its input `slots` on the events of its input `events`. The peak of a workflow is the sum of its classes of events (push, pull request, other). The repository adds the classes push and pull request of each workflow, and counts the class other one time: its largest peak. The option `runs` gives the measured runs at one time of a workflow and a class, from a model of its run records. The model is Little's law `L = λ·W`, with the law of the run minutes in place of one `W`. The measured runs replace the burst, and the group and the step `give-way` still cap them. A measured class other adds to the peak of the repository. A job that `needs` a different job does not run at the same time as it in one run. Thus the peak of a class is the antichain with the largest weight of the graph of the needs, for each layer of runs, from `maxWeightAntichain` of `@mark1russell7/collections`. The peak is exact for that graph. The functions `workflowPeaks`, `repositoryPeak` and `giveWaySlots` give the same numbers to other tools. | private `runner-slots` (a decision of 2026-10-30), and a wait of 15.9 minutes for a runner on 2026-11-24. |
|
|
75
75
|
| `main-runs-finish` | A workflow that starts on `push`, `workflow_call` or `workflow_run` does not cancel a run in progress. A called workflow gets the event of its caller. A run of `workflow_run` is a run of the default branch. A newer push cancels only the run of a pull request: `cancel-in-progress: ${{ github.event_name == 'pull_request' }}`. A run of `push` or `workflow_call` has the concurrency group of its commit: `${{ github.event_name == 'pull_request' && github.ref || github.sha }}`. GitHub gives a run of `workflow_run` the last commit of the default branch, so the rule does not examine its group: a newer run that takes the place of a waiting run tests the same commit or a newer one. In one group, GitHub cancels a run that waits when a newer run comes, whatever `cancel-in-progress` says. On 2026-11-03 four waiting CI runs of `main` in client were cancelled, so its version commit had no result and no release. On 2026-11-03 the next merge cancelled the CI run of a commit on `main`, so the main check of that commit had no result. A bench run on `main` was cancelled too, and its claim had no measurement. | private `main-runs-finish` (a decision of 2026-11-03). |
|
|
76
76
|
| `push-main-only` | A workflow that starts on `push` and on `pull_request` limits `push` to the default branch with `branches`, and has `workflow_dispatch`. Without the limit, each commit of a pull request starts two runs. A `push` with only a tag filter, a `pull_request` with `types` that do not have `synchronize`, and `pull_request_target` are not breaks. `CI.md` tells each case in "One run for each commit". |
|
|
77
77
|
| `pipe-fails` | A failure on the left of a pipe fails its step. With no `shell` key, GitHub has no `pipefail`, so `tests \| tee out.txt` passes when the tests fail. The fix adds `shell: bash` as the default of the workflow. A step that then turns red had a failure that the pipe hid. |
|
|
@@ -179,7 +179,9 @@ An unknown rule, an unknown option, or an exception or a changed option without
|
|
|
179
179
|
| `runner-budget.minute` | `true` | When `false`, the rule does not examine the minute of the schedules. |
|
|
180
180
|
| `runner-budget.grouped` | `["reusable-ai-review.yml", "reusable-codex-review.yml"]` | The shared workflows that give a concurrency group in each of their jobs. |
|
|
181
181
|
| `runner-peak.share` | `0` | The most jobs that the workflows of the repository hold at one time in a busy minute. `0` turns the rule off. |
|
|
182
|
-
| `runner-peak.burst` | `5` | The runs of
|
|
182
|
+
| `runner-peak.burst` | `5` | The runs of pull requests that start in a busy minute when each run has its own group. It is also the burst of `push` when `pushBurst` is `0`. |
|
|
183
|
+
| `runner-peak.pushBurst` | `0` | The runs of `push` (a burst of merges) that start in a busy minute when each run has its own group. `0` uses `burst`. |
|
|
184
|
+
| `runner-peak.runs` | `[]` | The measured runs at one time of a workflow and a class, as `<file>@<class>=<runs>` (`lab.yml@pull=13`). The class is `push`, `pull` or `other`. They replace the burst. |
|
|
183
185
|
| `runner-peak.called` | the shared workflows of the template, as `<file>=<jobs>` | The jobs of each run of a called workflow of another repository. A call of a workflow that is not in the list counts 1. |
|
|
184
186
|
| `gate-trigger.allow` | `[]` | The file names of the workflows that can filter pull requests by path, because they are not a gate (for example a preview). |
|
|
185
187
|
| `summary-job.gates` | `["ci.yml", "security.yml"]` | The file names of the gate workflows that must have a summary job. |
|
package/build/cli.js
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -980,6 +980,8 @@ interface ParsedStep {
|
|
|
980
980
|
readonly uses: string;
|
|
981
981
|
/** The secrets that the expressions of the step read. The name `*` is the whole context, as in `toJSON(secrets)`. */
|
|
982
982
|
readonly secrets: readonly string[];
|
|
983
|
+
/** The inputs of the action of the step (`with`), each as text. An expression stays as it is. A step with no inputs has an empty map. */
|
|
984
|
+
readonly with: Readonly<Record<string, string>>;
|
|
983
985
|
}
|
|
984
986
|
/** The `concurrency` of a workflow or of a job. GitHub runs at most one run of a group, and one more run of it waits. */
|
|
985
987
|
interface ParsedConcurrency {
|
|
@@ -1060,10 +1062,14 @@ type EventClass = "push" | "pull" | "other";
|
|
|
1060
1062
|
export declare function eventClass(event: string): EventClass | undefined;
|
|
1061
1063
|
/** The facts that the peak needs. */
|
|
1062
1064
|
interface PeakOptions {
|
|
1063
|
-
/** The runs of
|
|
1065
|
+
/** The runs of pull requests that start in a busy minute. It is also the runs of `push` when `pushBurst` is not given. */
|
|
1064
1066
|
readonly burst: number;
|
|
1067
|
+
/** The runs of `push` (a burst of merges) that start in a busy minute. The default is `burst`. */
|
|
1068
|
+
readonly pushBurst?: number;
|
|
1065
1069
|
/** The jobs of each run of a called workflow of another repository, by its file name (`reusable-ci.yml`). */
|
|
1066
1070
|
readonly called: Readonly<Record<string, number>>;
|
|
1071
|
+
/** The measured runs at one time of a workflow and a class, by `<file>@<class>` (`lab.yml@pull`). They replace the burst. */
|
|
1072
|
+
readonly runs?: Readonly<Record<string, number>>;
|
|
1067
1073
|
}
|
|
1068
1074
|
/** The peak of one job: the jobs of one run, and the runs at one time. */
|
|
1069
1075
|
interface JobPeak {
|
|
@@ -1071,6 +1077,8 @@ interface JobPeak {
|
|
|
1071
1077
|
readonly line: number;
|
|
1072
1078
|
readonly jobs: number;
|
|
1073
1079
|
readonly runs: number;
|
|
1080
|
+
/** The `slots` of a step `give-way` in a job that the job needs, when the step holds its runs. Else undefined. */
|
|
1081
|
+
readonly slots?: number;
|
|
1074
1082
|
/** False when the reader could not count the jobs: a call of an unknown workflow counts 1. */
|
|
1075
1083
|
readonly known: boolean;
|
|
1076
1084
|
}
|
|
@@ -1083,14 +1091,25 @@ interface WorkflowPeak {
|
|
|
1083
1091
|
readonly event: string;
|
|
1084
1092
|
readonly peak: number;
|
|
1085
1093
|
readonly jobs: readonly JobPeak[];
|
|
1094
|
+
readonly measured?: number;
|
|
1086
1095
|
}>>>;
|
|
1087
1096
|
}
|
|
1088
1097
|
/**
|
|
1089
1098
|
* This function gives the runs of a concurrency group that run at one time on the event. A group that depends on the commit
|
|
1090
1099
|
* or the run, or no group, gives a burst on `push` and on pull requests. A group of the branch gives one run on `push` (the
|
|
1091
|
-
* default branch) and a burst of pull requests. Each other event gives one run.
|
|
1100
|
+
* default branch) and a burst of pull requests. Each other event gives one run. The burst of `push` is `pushBurst`, and its default is `burst`.
|
|
1101
|
+
*
|
|
1102
|
+
* The measured runs replace the burst. On an other event, they hold when the group depends on the commit, the run, the
|
|
1103
|
+
* branch or an input. A group that all runs share gives one run.
|
|
1104
|
+
*/
|
|
1105
|
+
export declare function runsAtOnce(concurrency: ParsedConcurrency | null, event: string, burst: number, pushBurst?: number, measured?: number): number;
|
|
1106
|
+
/**
|
|
1107
|
+
* This function gives the runs at one time that a step `give-way` of the job lets past on the event: its input `slots`.
|
|
1108
|
+
* The default of `slots` is 1. The cap holds when the step can run on the event, and the event is in its input `events`.
|
|
1109
|
+
* The default of `events` is `pull_request`. The step passes after its `wait-minutes`. Thus the cap holds in a busy
|
|
1110
|
+
* minute, not in a long queue. A value that the reader cannot read gives no cap.
|
|
1092
1111
|
*/
|
|
1093
|
-
export declare function
|
|
1112
|
+
export declare function giveWaySlots(job: ParsedJob, event: string): number | undefined;
|
|
1094
1113
|
/** This function gives the jobs of one run of a job that calls no workflow: 1, or the jobs of its matrix that run together. */
|
|
1095
1114
|
export declare function matrixPeak(job: ParsedJob): number;
|
|
1096
1115
|
/**
|
|
@@ -1098,9 +1117,16 @@ export declare function matrixPeak(job: ParsedJob): number;
|
|
|
1098
1117
|
* event with the most jobs. Each job has its jobs of one run and the runs of its group (the group at the top of the file,
|
|
1099
1118
|
* else the group of the job). A job that `needs` a different job does not run at the same time as it in one run. Thus the
|
|
1100
1119
|
* peak is the sum of the antichains of the layers of runs (`layeredPeak`). The peak is exact for the graph of the needs.
|
|
1120
|
+
* The option `runs` replaces the burst of a workflow and a class with its measured runs.
|
|
1101
1121
|
*/
|
|
1102
1122
|
export declare function workflowPeaks(workflows: readonly ParsedWorkflow[], options: PeakOptions): WorkflowPeak[];
|
|
1103
|
-
/**
|
|
1123
|
+
/**
|
|
1124
|
+
* This function gives the most jobs of the workflows of a repository at one time in a busy minute. The classes `push` and
|
|
1125
|
+
* `pull` of each workflow add up. A class `other` with measured runs adds up too. The class `other` with no measured
|
|
1126
|
+
* runs counts one time for the repository: one schedule or one dispatch, the largest of each workflow.
|
|
1127
|
+
*/
|
|
1128
|
+
export declare function repositoryPeak(peaks: readonly WorkflowPeak[]): number;
|
|
1129
|
+
/** This function reads the options `called` and `runs`: a list of `<key>=<count>`. A pair that does not parse is left out. */
|
|
1104
1130
|
export declare function calledJobs(values: readonly string[]): Record<string, number>;
|
|
1105
1131
|
/**
|
|
1106
1132
|
* The jobs of each run of the shared workflows of the template, on the event with the most jobs. A test of the template
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-gate.ts","../src/rules/security-one-job.ts","../src/rules/summary-job.ts","../src/rules/release-mode.ts","../src/rules/shared-docs.ts","../src/rules/call-permissions.ts","../src/rules/setup-cue.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-module.ts","../src/rules/home-package.ts","../src/home-shapes.ts","../src/rules/home-shape.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/rules/no-console.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.ts","../src/rules/publish-text-safe.ts","../src/rules/exports-require.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/site-check-in-ci.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.ts","../src/rules/job-fails.ts","../src/rules/playwright-install.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/workflow.ts","../src/rules/runner-peak.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/version-title.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/io.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.ts","../src/run.ts","../src/release-text.ts"],"mappings":";;;;;;;;;;;;;;;;;;;UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;WAEA;;WAEA,iBAAiB;;;;;;UAOX;;WAEN;;WAEA;;WAEA;;;wBAIK,YAAY,cAAc,cAAc;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K,cAAc,eAAe;;qBAoBhC;;wBAyBG,YAAY;;wBAaZ,cAAc,SAAS,wCAAwC,KAAK,sBAAsB;;UAczF;WACN;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;;;wBAIK,WAAW,GAAG;;;;;;;wBA2Bd,YAAY,cAAc,cAAc;EAAoC;;EAAmB;;qBA+GlG,aAAa;;qBCvOb;;;;;wBAYG,eAAe;;wBAqEf,iBAAiB,oBAAoB;qBAKxC,cAAc;;qBCzFd;;qBAGA;;qBAGA;;UAWI;WACN;WACA;;;wBAkBK,gBAAgB,eAAe;;;;;;;wBA+B/B,WAAW,cAAc;EAA0C;;EAAmB;;qBAqEzF,gBAAgB;;qBCxIhB;;wBAQG,oBAAoB;;wBAUpB,cAAc;;;;;;wBAWd,cAAc,cAAc,cAAc;EAAoC;;EAAmB;;qBAuCpG,gBAAgB;;wBC1Db,kBAAkB;;wBAKlB,eAAe;;;;;;;wBA0Hf,eAAe;EAAiB;EAAc;;qBAsBjD,iBAAiB;;KCjKlB;WAAwB;;WAA4B;;;KAGpD,aAAa,4BAA4B,oBAAoB;;qBAG5D;;qBAiBA,aAAa;;qBAcb,YAAa;;wBAoEV,eAAe,aAAY,YAA0B;;wBCrFrD,oBAAoB,aAAY,YAA0B;qBA8D7D,iBAAiB;qBCrDjB,UAAU;;qBC5BV;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-gate.ts","../src/rules/security-one-job.ts","../src/rules/summary-job.ts","../src/rules/release-mode.ts","../src/rules/shared-docs.ts","../src/rules/call-permissions.ts","../src/rules/setup-cue.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-module.ts","../src/rules/home-package.ts","../src/home-shapes.ts","../src/rules/home-shape.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/rules/no-console.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.ts","../src/rules/publish-text-safe.ts","../src/rules/exports-require.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/site-check-in-ci.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.ts","../src/rules/job-fails.ts","../src/rules/playwright-install.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/workflow.ts","../src/rules/runner-peak.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/version-title.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/io.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.ts","../src/run.ts","../src/release-text.ts"],"mappings":";;;;;;;;;;;;;;;;;;;UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;WAEA;;WAEA,iBAAiB;;;;;;UAOX;;WAEN;;WAEA;;WAEA;;;wBAIK,YAAY,cAAc,cAAc;;KAQ5C;;KAGA,UAAU,SAAS,eAAe;;UAG7B;WACN;WACA,SAAS;WACT;;;KAIC,WAAW,SAAS;;UAGf;WACN,iBAAiB;;WAEjB;;;UAIM;;WAEN;;WAEA;;WAEA;;WAEA;WACA,UAAU;;;UAIJ;;WAEN;;WAEA,aAAa;;WAEb,mBAAmB;;WAEnB,KAAK,SAAS;;WAEd;;WAEA;;EAET;;EAEA,IAAI;;;;;;EAMJ,SAAS;;;wBAIK,UAAU,SAAS,KAAK,iCAAiC;;KAM7D,uBAAuB;WAAqB;;;qBAG3C;;UAGI;;WAEN;;WAEA;;WAEA;;WAEA;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AO,mBAAmB;;qBCjM7B,cAAc,SAAS;WAA0B;WAA0B;;;UCiBvE;WACN;WACA;WACA;;;;;WAKA;WACA,iBAAiB;;WAEjB;;WAEA;;;;;WAKA;;;UAIM;WACN,gBAAgB;;WAEhB;;;UAIM;;WAEN;;WAEA;;WAEA;WACA,MAAM,SAAS;;WAEf,iBAAiB;;WAEjB;;;wBAaK,WAAW,cAAc,iBAAgB,SAAiB;;wBAO1D,cAAc,cAAc,QAAQ,mBAAmB,UAAS,KAAK,0CAA+C;;wBAwCpH,UAAU,SAAS,eAAe;;UAuEjC;;WAEN;;WAEA;;WAEA,QAAQ;;;;;;;wBAWH,OAAO,SAAS,eAAe;;wBAyC/B,aAAa,QAAQ;;wBA4BrB,gBAAgB,QAAQ;;;;;;wBA2BxB,YAAY,QAAQ;;wBAapB,UAAU,QAAQ,+BAA+B,iBAAgB;;qBAqBpE;;wBA8EG,OAAO,yBAAyB,IAAI;;;;;;;;qBCvZvC;;wBAGG,QAAQ,cAAc,iBAAiB;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB"}
|
package/build/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as lockedVersions, $n as sharedDocsRule, $r as readJsonc, $t as consoleBreaks, A as scriptsOf, An as findHomes, Ar as prPathFilters, At as HOME_PATTERNS, B as giveWaySlots, Bn as hasTests, Br as STRICT_OPTIONS, Bt as PRIVATE_NAME_LIST, C as setVersions, Cn as messageOf, Cr as licenseFile, Ct as PAGES_WORKFLOWS, D as trustPolicy, Dn as HOME_EXPORTS, Dr as ACTIONS_COMMIT, Dt as publishTextSafe, E as TRAIN_SCOPES, En as signaturesOf, Er as repositoryIsPublic, Et as exportsRequire, F as sourceMain, Fn as npmNames, Fr as MATRIX_EXPAND_MAX, Ft as noLocalPaths, G as workflowPeaks, Gn as callsSharedCi, Gr as codePackages, Gt as lineNameHit, H as repositoryPeak, Hn as SHARED_ACTIONS, Hr as DEPENDENCY_FIELDS, Ht as firstNameMatch, I as TEMPLATE_CALLED, In as readOverlay, Ir as parseWorkflow, It as privateNamesFile, J as mayRun, Jn as callPermissions, Jr as keyLine, Jt as nameMatches, K as evaluateExpression, Kn as sharedCi, Kr as hasFile, Kt as lineNameHits, L as UNKNOWN_MATRIX_JOBS, Ln as SERVICE_PACKAGE, Lr as readAction, Lt as privateNamesFiles, M as testsRequired, Mn as mapText, Mr as summaryJob, Mt as PRIVATE_NAMES_FILE_VARIABLE, N as isSourcePath, Nn as mergeHomes, Nr as summaryName, Nt as PRIVATE_PATTERNS_VARIABLE, O as typedScripts, On as HOMES, Or as convertGate, Ot as packNoBuildinfo, P as pathsOf, Pn as npmDrift, Pr as gateAfterCancel, Pt as invalidPatternBreaks, Q as releaseFiles, Qn as githubFetch, Qr as parseJsonc, Qt as NOT_SOURCE, R as calledJobs, Rn as runCalls, Rr as readWorkflow, Rt as privatePatterns, S as namedVersions, Sn as homePackage, Sr as authorOf, St as pushMainOnly, T as IGNORE_AFTER, Tn as reposOf, Tr as mitText, Tt as pagesSite, U as runnerPeak, Un as SHARED_CI, Ur as RULE_WARN_DAYS, Ut as isAllowedHit, V as matrixPeak, Vn as tsconfigTest, Vr as cuePreset, Vt as PrivateNameListError, W as runsAtOnce, Wn as SHARED_WORKFLOWS, Wr as cleanPath, Wt as isCommonUse, X as roadmapParses, Xn as HOME_TIMEOUT_MS, Xr as matchesAny, Xt as pathNameHit, Y as roadmapOfLine, Yn as callPermissionsRule, Yr as lineOf, Yt as parsePrivateNames, Z as requiredScripts, Zn as blockHash, Zr as parseCatFileBatch, Zt as CONSOLE_LAST_DAY, _ as runPrePushArgs, _n as homeModule, _r as securityOneJob, _t as isGitSpecifier, a as listRules, ai as specifiersOf, an as REAL_COMPARE, ar as isSecurityGate, at as SHIPPED_FIELDS, b as GITHUB_YAML, bn as modulesOf, br as scheduleMinute, bt as siteCheckInCi, c as runCli, ci as parseRuleConfig, cn as coverageProvider, cr as SUMMARY_GATES, ct as unreleasedChange, d as HOOK_MARKER, dn as homeShape, dr as startsOnPullRequest, dt as hiddenFailures, ei as replaceLine, en as consoleGate, er as addReleaseMode, et as minorOf, f as NO_READ_LINE, fn as homeShapesOf, fr as summaryJobRule, ft as jobFails, g as prePush, gn as HOME_SHAPES, gr as securityCallers, gt as pipeFails, h as parsePrePushArgs, hn as spansOf, hr as SECURITY_TIMEOUT_MINUTES, ht as swallowsTests, i as formatResult, ii as showFiles, in as noBuildOutput, ir as SECURITY_FILE, it as NPM_REGISTRY, j as typedFiles, jn as mapMarkdown, jr as skippableJobs, jt as PRIVATE_NAMES_FILE_CONFIG, k as configsOfScript, kn as MAP_RULE, kr as gateTrigger, kt as DEFAULT_ALLOWED, l as runFix, ln as apiReportScript, lr as addSummaryJob, lt as unreleasedChangeRule, m as installHook, mn as shapesOfSource, mr as SECURITY_SCAN_INPUTS, mt as startsTests, n as annotations, ni as runGit, nn as isCliFile, nr as hasReleaseMode, nt as publishedMinorRule, o as readConfig, oi as defaultOptions, on as hasImportMetaMain, or as securityGate, ot as UNSHIPPED_FILES, p as PRE_PUSH_HOOK, pn as shapeMessage, pr as SECURITY_SCAN_COMMIT, pt as parseAdvisory, q as groupParts, qn as setupCue, qr as inFolder, qt as mergePrivateNames, r as createContext, ri as runGitShow, rn as noConsole, rr as releaseModeRule, rt as reachOf, s as runChecks, si as parseConfig, sn as mainCheck, sr as securityWorkflow, st as npmLookup, t as USAGE, ti as repositoryOfRemote, tn as consoleKind, tr as callsReleaseBuild, tt as publishedMinor, u as summaryMarkdown, un as containedHome, ur as hasSummaryJob, ut as playwrightInstall, v as RULES, vn as moduleMessage, vr as withOneJob, vt as isPinned, w as versionTitle, wn as repoOf, wr as licenseFileOf, wt as pagesCalls, x as workflowParses, xn as declaredName, xr as LICENSE_TEXTS, xt as pagesAfterRelease, y as workspaceProtocol, yn as moduleUses, yr as runnerBudget, yt as pinnedGitDeps, z as eventClass, zn as serviceRunMain, zr as yamlFaults, zt as privateTextBreaks } from "./run-BXUOL7js.js";
|
|
2
2
|
import { OWNERS, ownerOf, ownersOf, repoKeyer, sharedNames } from "./owners.js";
|
|
3
3
|
import { a as packageFolders, i as isWorkspaceFolder, l as workspaceGlobs, n as globFolders, o as parseWorkspaceGlobs, r as globToRegExp } from "./workspace-B6xQXXcL.js";
|
|
4
4
|
// src/release-text.ts
|
|
@@ -66,6 +66,6 @@ function releaseNotes(name, version, changelog) {
|
|
|
66
66
|
if (section.length <= 1e5) return section;
|
|
67
67
|
return `${section.slice(0, MAX_NOTES)}\n\n(The CHANGELOG.md of \`${name}\` has the full text.)`;
|
|
68
68
|
}
|
|
69
|
-
export { ACTIONS_COMMIT, CONSOLE_LAST_DAY, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_SHAPES, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, LICENSE_TEXTS, MAP_RULE, MATRIX_EXPAND_MAX, MAX_NOTES, NOT_SOURCE, NO_READ_LINE, NPM_REGISTRY, OWNERS, PAGES_WORKFLOWS, PRE_PUSH_HOOK, PRIVATE_NAMES_FILE_CONFIG, PRIVATE_NAMES_FILE_VARIABLE, PRIVATE_NAME_LIST, PRIVATE_PATTERNS_VARIABLE, PrivateNameListError, REAL_COMPARE, RULES, RULE_WARN_DAYS, SECURITY_FILE, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, SUMMARY_GATES, TEMPLATE_CALLED, TRAIN_SCOPES, UNKNOWN_MATRIX_JOBS, UNSHIPPED_FILES, USAGE, addReleaseMode, addSummaryJob, annotations, apiReportScript, authorOf, blockHash, callPermissions, callPermissionsRule, calledJobs, callsReleaseBuild, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, consoleBreaks, consoleGate, consoleKind, containedHome, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, evaluateExpression, eventClass, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, groupParts, hasFile, hasImportMetaMain, hasReleaseMode, hasSummaryJob, hasTests, hiddenFailures, homeModule, homePackage, homeShape, homeShapesOf, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCliFile, isCommonUse, isGitSpecifier, isPinned, isSecurityGate, isSourcePath, isWorkspaceFolder, jobFails, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, matrixPeak, mayRun, mergeHomes, mergePrivateNames, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noConsole, noLocalPaths, npmDrift, npmLookup, npmNames, npmUrl, ownerOf, ownersOf, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseAdvisory, parseCatFileBatch, parseConfig, parseJsonc, parsePrePushArgs, parsePrivateNames, parseRuleConfig, parseWorkflow, parseWorkspaceGlobs, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, playwrightInstall, prPathFilters, prePush, privateNamesFile, privateNamesFiles, privatePatterns, privateTextBreaks, publishTextSafe, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseModeRule, releaseNotes, replaceLine, repoKeyer, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runGitShow, runPrePushArgs, runnerBudget, runnerPeak, runsAtOnce, scheduleMinute, scriptsOf, securityCallers, securityGate, securityOneJob, securityWorkflow, serviceRunMain, setVersions, setupCue, shapeMessage, shapesOfSource, sharedCi, sharedDocsRule, sharedNames, showFiles, signaturesOf, siteCheckInCi, skippableJobs, sourceMain, spansOf, specifiersOf, startsOnPullRequest, startsTests, summaryJob, summaryJobRule, summaryMarkdown, summaryName, swallowsTests, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workflowPeaks, workspaceGlobs, workspaceProtocol, yamlFaults };
|
|
69
|
+
export { ACTIONS_COMMIT, CONSOLE_LAST_DAY, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_SHAPES, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, LICENSE_TEXTS, MAP_RULE, MATRIX_EXPAND_MAX, MAX_NOTES, NOT_SOURCE, NO_READ_LINE, NPM_REGISTRY, OWNERS, PAGES_WORKFLOWS, PRE_PUSH_HOOK, PRIVATE_NAMES_FILE_CONFIG, PRIVATE_NAMES_FILE_VARIABLE, PRIVATE_NAME_LIST, PRIVATE_PATTERNS_VARIABLE, PrivateNameListError, REAL_COMPARE, RULES, RULE_WARN_DAYS, SECURITY_FILE, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, SUMMARY_GATES, TEMPLATE_CALLED, TRAIN_SCOPES, UNKNOWN_MATRIX_JOBS, UNSHIPPED_FILES, USAGE, addReleaseMode, addSummaryJob, annotations, apiReportScript, authorOf, blockHash, callPermissions, callPermissionsRule, calledJobs, callsReleaseBuild, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, consoleBreaks, consoleGate, consoleKind, containedHome, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, evaluateExpression, eventClass, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, giveWaySlots, globFolders, globToRegExp, groupParts, hasFile, hasImportMetaMain, hasReleaseMode, hasSummaryJob, hasTests, hiddenFailures, homeModule, homePackage, homeShape, homeShapesOf, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCliFile, isCommonUse, isGitSpecifier, isPinned, isSecurityGate, isSourcePath, isWorkspaceFolder, jobFails, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, matrixPeak, mayRun, mergeHomes, mergePrivateNames, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noConsole, noLocalPaths, npmDrift, npmLookup, npmNames, npmUrl, ownerOf, ownersOf, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseAdvisory, parseCatFileBatch, parseConfig, parseJsonc, parsePrePushArgs, parsePrivateNames, parseRuleConfig, parseWorkflow, parseWorkspaceGlobs, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, playwrightInstall, prPathFilters, prePush, privateNamesFile, privateNamesFiles, privatePatterns, privateTextBreaks, publishTextSafe, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseModeRule, releaseNotes, replaceLine, repoKeyer, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, repositoryPeak, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runGitShow, runPrePushArgs, runnerBudget, runnerPeak, runsAtOnce, scheduleMinute, scriptsOf, securityCallers, securityGate, securityOneJob, securityWorkflow, serviceRunMain, setVersions, setupCue, shapeMessage, shapesOfSource, sharedCi, sharedDocsRule, sharedNames, showFiles, signaturesOf, siteCheckInCi, skippableJobs, sourceMain, spansOf, specifiersOf, startsOnPullRequest, startsTests, summaryJob, summaryJobRule, summaryMarkdown, summaryName, swallowsTests, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workflowPeaks, workspaceGlobs, workspaceProtocol, yamlFaults };
|
|
70
70
|
|
|
71
71
|
//# sourceMappingURL=index.js.map
|
|
@@ -1710,11 +1710,14 @@ function secretsOf(value) {
|
|
|
1710
1710
|
function parsedStep(value) {
|
|
1711
1711
|
const step = isObject$1(value) ? value : {};
|
|
1712
1712
|
const uses = actionOf(optionalText(step["uses"]));
|
|
1713
|
+
const label = optionalText(step["name"]) || uses || (optionalText(step["run"]).split("\n")[0] ?? "") || optionalText(step["id"]) || "step";
|
|
1714
|
+
const inputs = isObject$1(step["with"]) ? step["with"] : {};
|
|
1713
1715
|
return {
|
|
1714
|
-
label
|
|
1716
|
+
label,
|
|
1715
1717
|
if: optionalText(step["if"]),
|
|
1716
1718
|
uses,
|
|
1717
|
-
secrets: [...secretsOf(step)]
|
|
1719
|
+
secrets: [...secretsOf(step)],
|
|
1720
|
+
with: Object.fromEntries(Object.entries(inputs).map(([key, value]) => [key, optionalText(value)]))
|
|
1718
1721
|
};
|
|
1719
1722
|
}
|
|
1720
1723
|
/** This function gives the `concurrency` of a workflow or of a job: a group as one text, or a map with `group`. */
|
|
@@ -3974,6 +3977,7 @@ const SHARED_WORKFLOWS = [
|
|
|
3974
3977
|
"reusable-release-tag.yml",
|
|
3975
3978
|
"reusable-release-tree.yml",
|
|
3976
3979
|
"reusable-release-version.yml",
|
|
3980
|
+
"reusable-rigs.yml",
|
|
3977
3981
|
"reusable-security.yml"
|
|
3978
3982
|
];
|
|
3979
3983
|
/** The shared actions of the template, by folder name under `.github/actions`, and the folder `bundles` of their bundles. */
|
|
@@ -5769,7 +5773,7 @@ const HOMES = [
|
|
|
5769
5773
|
{
|
|
5770
5774
|
area: "reactive-ui",
|
|
5771
5775
|
title: "Reactive expressions and rendering by type",
|
|
5772
|
-
covers: "the reactive node store and expressions of render, its viewer; splay renders any data with a viewer for each type",
|
|
5776
|
+
covers: "the reactive node store and expressions of render, its viewer; splay renders any data with a viewer for each type; the context pool: the action ring of a node (the actions of each type as a tree of data, one ring for each level with a back circle, the open path, the parent chain, the geometry of the ring, its styles watch, bar and standard), with no framework in its core",
|
|
5773
5777
|
packages: [
|
|
5774
5778
|
"@mark1russell7/render-dsl",
|
|
5775
5779
|
"@mark1russell7/render-node",
|
|
@@ -5783,9 +5787,13 @@ const HOMES = [
|
|
|
5783
5787
|
"subscription",
|
|
5784
5788
|
"viewer",
|
|
5785
5789
|
"render",
|
|
5786
|
-
"react"
|
|
5790
|
+
"react",
|
|
5791
|
+
"context pool",
|
|
5792
|
+
"action ring",
|
|
5793
|
+
"radial menu",
|
|
5794
|
+
"context menu"
|
|
5787
5795
|
],
|
|
5788
|
-
note: "@mark1russell7/splay is in mark1russell7/splay."
|
|
5796
|
+
note: "@mark1russell7/splay is in mark1russell7/splay. The context pool is planned as the package @mark1russell7/render-context-pool in mark1russell7/render."
|
|
5789
5797
|
},
|
|
5790
5798
|
{
|
|
5791
5799
|
area: "browser-monitoring",
|
|
@@ -77954,6 +77962,15 @@ function mayRun(condition, event) {
|
|
|
77954
77962
|
* run at one time. A burst of merges on `push` and a burst of pull requests give these runs. A job that `needs` a
|
|
77955
77963
|
* different job does not run at the same time as it. Thus the peak of one run is the antichain with the largest weight
|
|
77956
77964
|
* of the graph of the needs. The peak is exact for that graph.
|
|
77965
|
+
*
|
|
77966
|
+
* A step of the action `give-way` of the template holds the jobs after its job to its `slots` runs at one time. The
|
|
77967
|
+
* runs that wait still hold the runner of the job of the step. Each other event (a schedule, a dispatch) gives one run.
|
|
77968
|
+
* The repository counts the class `other` one time: its peak is the largest peak of that class of each workflow.
|
|
77969
|
+
*
|
|
77970
|
+
* The option `runs` gives the measured runs at one time of a workflow and a class. A model of the run records gives
|
|
77971
|
+
* them. The model is Little's law `L = λ·W`, with the law of the run minutes in place of one `W`. The measured runs
|
|
77972
|
+
* replace the burst. A measured class `other` adds to the peak of the repository. The burst and the class `other` one
|
|
77973
|
+
* time are the cases with no records.
|
|
77957
77974
|
*/
|
|
77958
77975
|
/** The jobs of a matrix that the reader cannot count and that has no `max-parallel`: the most that the rule runner-budget lets run. */
|
|
77959
77976
|
const UNKNOWN_MATRIX_JOBS = 3;
|
|
@@ -77971,15 +77988,69 @@ function eventClass(event) {
|
|
|
77971
77988
|
/**
|
|
77972
77989
|
* This function gives the runs of a concurrency group that run at one time on the event. A group that depends on the commit
|
|
77973
77990
|
* or the run, or no group, gives a burst on `push` and on pull requests. A group of the branch gives one run on `push` (the
|
|
77974
|
-
* default branch) and a burst of pull requests. Each other event gives one run.
|
|
77991
|
+
* default branch) and a burst of pull requests. Each other event gives one run. The burst of `push` is `pushBurst`, and its default is `burst`.
|
|
77992
|
+
*
|
|
77993
|
+
* The measured runs replace the burst. On an other event, they hold when the group depends on the commit, the run, the
|
|
77994
|
+
* branch or an input. A group that all runs share gives one run.
|
|
77975
77995
|
*/
|
|
77976
|
-
function runsAtOnce(concurrency, event, burst) {
|
|
77996
|
+
function runsAtOnce(concurrency, event, burst, pushBurst = burst, measured) {
|
|
77977
77997
|
const kind = eventClass(event);
|
|
77978
|
-
if (kind === void 0 || kind === "other") return 1;
|
|
77979
|
-
|
|
77998
|
+
if (kind === void 0 || kind === "other" && measured === void 0) return 1;
|
|
77999
|
+
const many = measured ?? (kind === "push" ? pushBurst : burst);
|
|
78000
|
+
if (concurrency === null) return many;
|
|
77980
78001
|
const parts = groupParts(concurrency.group, event);
|
|
77981
|
-
if (parts.has("commit") || parts.has("run")) return
|
|
77982
|
-
return parts.has("ref")
|
|
78002
|
+
if (parts.has("commit") || parts.has("run")) return many;
|
|
78003
|
+
if (kind === "other") return parts.has("ref") || parts.has("input") ? many : 1;
|
|
78004
|
+
return parts.has("ref") && kind === "pull" ? many : 1;
|
|
78005
|
+
}
|
|
78006
|
+
/** The action of the template that holds a run while earlier runs of a heavy workflow are open. */
|
|
78007
|
+
const GIVE_WAY = ".github/actions/give-way";
|
|
78008
|
+
/** This function gives the text of an input on the event: the text, or the value of an expression `${{ ... }}`. It gives undefined when the reader cannot read it. */
|
|
78009
|
+
function inputOn(value, event) {
|
|
78010
|
+
const text = value.trim();
|
|
78011
|
+
if (!text.startsWith("${{") || !text.endsWith("}}")) return text;
|
|
78012
|
+
return evaluateExpression(text.slice(3, -2), event)?.text;
|
|
78013
|
+
}
|
|
78014
|
+
/**
|
|
78015
|
+
* This function gives the runs at one time that a step `give-way` of the job lets past on the event: its input `slots`.
|
|
78016
|
+
* The default of `slots` is 1. The cap holds when the step can run on the event, and the event is in its input `events`.
|
|
78017
|
+
* The default of `events` is `pull_request`. The step passes after its `wait-minutes`. Thus the cap holds in a busy
|
|
78018
|
+
* minute, not in a long queue. A value that the reader cannot read gives no cap.
|
|
78019
|
+
*/
|
|
78020
|
+
function giveWaySlots(job, event) {
|
|
78021
|
+
let slots;
|
|
78022
|
+
for (const step of job.steps) {
|
|
78023
|
+
if (!step.uses.endsWith(GIVE_WAY) || !mayRun(step.if, event)) continue;
|
|
78024
|
+
const events = inputOn(step.with["events"] ?? "pull_request", event)?.split(",").map((each) => each.trim());
|
|
78025
|
+
const count = Number(inputOn(step.with["slots"] ?? "1", event));
|
|
78026
|
+
if (events === void 0 || !events.includes(event) || !Number.isSafeInteger(count) || count < 1) continue;
|
|
78027
|
+
slots = Math.min(slots ?? count, count);
|
|
78028
|
+
}
|
|
78029
|
+
return slots;
|
|
78030
|
+
}
|
|
78031
|
+
/** This function gives the cap of the runs of each job on the event. The cap is the least `slots` of a step `give-way` in a job that it needs. */
|
|
78032
|
+
function slotsOfJobs(jobs, event) {
|
|
78033
|
+
const byId = new Map(jobs.map((job) => [job.id, job]));
|
|
78034
|
+
const caps = /* @__PURE__ */ new Map();
|
|
78035
|
+
const visit = (id, path) => {
|
|
78036
|
+
if (caps.has(id)) return caps.get(id);
|
|
78037
|
+
const job = byId.get(id);
|
|
78038
|
+
if (job === void 0 || path.has(id)) return void 0;
|
|
78039
|
+
let cap;
|
|
78040
|
+
for (const need of job.needs) {
|
|
78041
|
+
const above = byId.get(need);
|
|
78042
|
+
if (above === void 0) continue;
|
|
78043
|
+
for (const each of [giveWaySlots(above, event), visit(need, /* @__PURE__ */ new Set([...path, id]))]) if (each !== void 0) cap = Math.min(cap ?? each, each);
|
|
78044
|
+
}
|
|
78045
|
+
caps.set(id, cap);
|
|
78046
|
+
return cap;
|
|
78047
|
+
};
|
|
78048
|
+
const out = /* @__PURE__ */ new Map();
|
|
78049
|
+
for (const job of jobs) {
|
|
78050
|
+
const cap = visit(job.id, /* @__PURE__ */ new Set());
|
|
78051
|
+
if (cap !== void 0) out.set(job.id, cap);
|
|
78052
|
+
}
|
|
78053
|
+
return out;
|
|
77983
78054
|
}
|
|
77984
78055
|
/** The file name of the workflow that a job calls, and if it is a file of the same repository (`./.github/workflows/`). */
|
|
77985
78056
|
function callOf(job) {
|
|
@@ -78074,6 +78145,7 @@ function jobOfRun(job, event, local, options, seen) {
|
|
|
78074
78145
|
* event with the most jobs. Each job has its jobs of one run and the runs of its group (the group at the top of the file,
|
|
78075
78146
|
* else the group of the job). A job that `needs` a different job does not run at the same time as it in one run. Thus the
|
|
78076
78147
|
* peak is the sum of the antichains of the layers of runs (`layeredPeak`). The peak is exact for the graph of the needs.
|
|
78148
|
+
* The option `runs` replaces the burst of a workflow and a class with its measured runs.
|
|
78077
78149
|
*/
|
|
78078
78150
|
function workflowPeaks(workflows, options) {
|
|
78079
78151
|
const local = new Map(workflows.map((workflow) => [workflow.file, workflow]));
|
|
@@ -78083,13 +78155,19 @@ function workflowPeaks(workflows, options) {
|
|
|
78083
78155
|
const kind = eventClass(event);
|
|
78084
78156
|
if (kind === void 0) continue;
|
|
78085
78157
|
const running = workflow.jobs.filter((job) => mayRun(job.if, event));
|
|
78158
|
+
const slots = slotsOfJobs(running, event);
|
|
78159
|
+
const measured = options.runs?.[`${workflow.file}@${kind}`];
|
|
78086
78160
|
const jobs = running.map((job) => {
|
|
78087
78161
|
const one = jobOfRun(job, event, local, options, /* @__PURE__ */ new Set([workflow.file]));
|
|
78162
|
+
const runs = runsAtOnce(workflow.concurrency ?? job.concurrency, event, options.burst, options.pushBurst, measured);
|
|
78163
|
+
const cap = slots.get(job.id);
|
|
78164
|
+
const held = cap !== void 0 && cap < runs;
|
|
78088
78165
|
return {
|
|
78089
78166
|
id: job.id,
|
|
78090
78167
|
line: job.line,
|
|
78091
78168
|
jobs: one.jobs,
|
|
78092
|
-
runs:
|
|
78169
|
+
runs: held ? cap : runs,
|
|
78170
|
+
...held ? { slots: cap } : {},
|
|
78093
78171
|
known: one.known
|
|
78094
78172
|
};
|
|
78095
78173
|
});
|
|
@@ -78100,7 +78178,8 @@ function workflowPeaks(workflows, options) {
|
|
|
78100
78178
|
if (peak > (classes[kind]?.peak ?? -1)) classes[kind] = {
|
|
78101
78179
|
event,
|
|
78102
78180
|
peak,
|
|
78103
|
-
jobs
|
|
78181
|
+
jobs,
|
|
78182
|
+
...measured === void 0 ? {} : { measured }
|
|
78104
78183
|
};
|
|
78105
78184
|
}
|
|
78106
78185
|
const peak = Object.values(classes).reduce((sum, item) => sum + item.peak, 0);
|
|
@@ -78111,7 +78190,17 @@ function workflowPeaks(workflows, options) {
|
|
|
78111
78190
|
}];
|
|
78112
78191
|
});
|
|
78113
78192
|
}
|
|
78114
|
-
/**
|
|
78193
|
+
/**
|
|
78194
|
+
* This function gives the most jobs of the workflows of a repository at one time in a busy minute. The classes `push` and
|
|
78195
|
+
* `pull` of each workflow add up. A class `other` with measured runs adds up too. The class `other` with no measured
|
|
78196
|
+
* runs counts one time for the repository: one schedule or one dispatch, the largest of each workflow.
|
|
78197
|
+
*/
|
|
78198
|
+
function repositoryPeak(peaks) {
|
|
78199
|
+
const bursts = peaks.reduce((sum, item) => sum + (item.classes.push?.peak ?? 0) + (item.classes.pull?.peak ?? 0), 0);
|
|
78200
|
+
const others = peaks.flatMap((item) => item.classes.other === void 0 ? [] : [item.classes.other]);
|
|
78201
|
+
return bursts + others.reduce((sum, item) => sum + (item.measured === void 0 ? 0 : item.peak), 0) + Math.max(0, ...others.map((item) => item.measured === void 0 ? item.peak : 0));
|
|
78202
|
+
}
|
|
78203
|
+
/** This function reads the options `called` and `runs`: a list of `<key>=<count>`. A pair that does not parse is left out. */
|
|
78115
78204
|
function calledJobs(values) {
|
|
78116
78205
|
const out = {};
|
|
78117
78206
|
for (const value of values) {
|
|
@@ -78125,7 +78214,10 @@ function peakText(item) {
|
|
|
78125
78214
|
const parts = Object.entries(item.classes).map(([kind, value]) => {
|
|
78126
78215
|
const runs = Math.max(...value.jobs.map((job) => job.runs), 0);
|
|
78127
78216
|
const unknown = value.jobs.some((job) => !job.known) ? ", a call of an unknown workflow counts 1" : "";
|
|
78128
|
-
|
|
78217
|
+
const held = value.jobs.filter((job) => job.slots !== void 0).map((job) => job.id);
|
|
78218
|
+
const slots = held.length === 0 ? "" : `, give-way holds ${held.join(", ")}`;
|
|
78219
|
+
const measured = value.measured === void 0 ? "" : ", measured";
|
|
78220
|
+
return `${kind} ${String(value.peak)} on ${value.event} (up to ${String(runs)} runs at one time${measured}${slots}${unknown})`;
|
|
78129
78221
|
});
|
|
78130
78222
|
return `${item.file.slice(item.file.lastIndexOf("/") + 1)} ${String(item.peak)}: ${parts.join("; ")}`;
|
|
78131
78223
|
}
|
|
@@ -78146,6 +78238,7 @@ const TEMPLATE_CALLED = [
|
|
|
78146
78238
|
"reusable-release-tag.yml=1",
|
|
78147
78239
|
"reusable-release-tree.yml=1",
|
|
78148
78240
|
"reusable-release-version.yml=1",
|
|
78241
|
+
"reusable-rigs.yml=1",
|
|
78149
78242
|
"reusable-security.yml=3"
|
|
78150
78243
|
];
|
|
78151
78244
|
const runnerPeak = {
|
|
@@ -78168,7 +78261,17 @@ const runnerPeak = {
|
|
|
78168
78261
|
burst: {
|
|
78169
78262
|
type: "number",
|
|
78170
78263
|
default: 5,
|
|
78171
|
-
description: "The runs of
|
|
78264
|
+
description: "The runs of pull requests that start in a busy minute when each run has its own group. It is also the burst of push when pushBurst is 0."
|
|
78265
|
+
},
|
|
78266
|
+
pushBurst: {
|
|
78267
|
+
type: "number",
|
|
78268
|
+
default: 0,
|
|
78269
|
+
description: "The runs of push (a burst of merges) that start in a busy minute when each run has its own group. 0 uses the option burst."
|
|
78270
|
+
},
|
|
78271
|
+
runs: {
|
|
78272
|
+
type: "strings",
|
|
78273
|
+
default: [],
|
|
78274
|
+
description: "The measured runs at one time of a workflow and a class, as `<file>@<class>=<runs>` (`lab.yml@pull=13`). The class is push, pull or other. They replace the burst. A model of the run records gives them."
|
|
78172
78275
|
},
|
|
78173
78276
|
called: {
|
|
78174
78277
|
type: "strings",
|
|
@@ -78190,11 +78293,16 @@ const runnerPeak = {
|
|
|
78190
78293
|
continue;
|
|
78191
78294
|
}
|
|
78192
78295
|
const called = calledJobs(Array.isArray(options["called"]) ? options["called"] : []);
|
|
78296
|
+
const burst = Math.max(1, Number(options["burst"]));
|
|
78297
|
+
const push = Number(options["pushBurst"]);
|
|
78298
|
+
const runs = calledJobs(Array.isArray(options["runs"]) ? options["runs"] : []);
|
|
78193
78299
|
const peaks = workflowPeaks(workflows, {
|
|
78194
|
-
burst
|
|
78195
|
-
|
|
78300
|
+
burst,
|
|
78301
|
+
pushBurst: push >= 1 ? push : burst,
|
|
78302
|
+
called,
|
|
78303
|
+
runs
|
|
78196
78304
|
}).sort((a, b) => b.peak - a.peak);
|
|
78197
|
-
const total = peaks
|
|
78305
|
+
const total = repositoryPeak(peaks);
|
|
78198
78306
|
if (total <= share) return [];
|
|
78199
78307
|
return [{
|
|
78200
78308
|
file: `.github/workflows/${peaks[0]?.file ?? ""}`,
|
|
@@ -80996,6 +81104,6 @@ function runHook(args, io) {
|
|
|
80996
81104
|
git: (gitArgs) => runGit(io.cwd, gitArgs)
|
|
80997
81105
|
}, io);
|
|
80998
81106
|
}
|
|
80999
|
-
export {
|
|
81107
|
+
export { lockedVersions as $, sharedDocsRule as $n, readJsonc as $r, consoleBreaks as $t, scriptsOf as A, findHomes as An, prPathFilters as Ar, HOME_PATTERNS as At, giveWaySlots as B, hasTests as Bn, STRICT_OPTIONS as Br, PRIVATE_NAME_LIST as Bt, setVersions as C, messageOf$1 as Cn, licenseFile as Cr, PAGES_WORKFLOWS as Ct, trustPolicy as D, HOME_EXPORTS as Dn, ACTIONS_COMMIT as Dr, publishTextSafe as Dt, TRAIN_SCOPES as E, signaturesOf as En, repositoryIsPublic as Er, exportsRequire as Et, sourceMain as F, npmNames as Fn, MATRIX_EXPAND_MAX as Fr, noLocalPaths as Ft, workflowPeaks as G, callsSharedCi as Gn, codePackages as Gr, lineNameHit as Gt, repositoryPeak as H, SHARED_ACTIONS as Hn, DEPENDENCY_FIELDS as Hr, firstNameMatch as Ht, TEMPLATE_CALLED as I, readOverlay as In, parseWorkflow as Ir, privateNamesFile as It, mayRun as J, callPermissions as Jn, keyLine as Jr, nameMatches as Jt, evaluateExpression as K, sharedCi as Kn, hasFile as Kr, lineNameHits as Kt, UNKNOWN_MATRIX_JOBS as L, SERVICE_PACKAGE as Ln, readAction as Lr, privateNamesFiles as Lt, testsRequired as M, mapText as Mn, summaryJob as Mr, PRIVATE_NAMES_FILE_VARIABLE as Mt, isSourcePath as N, mergeHomes as Nn, summaryName as Nr, PRIVATE_PATTERNS_VARIABLE as Nt, typedScripts as O, HOMES as On, convertGate as Or, packNoBuildinfo as Ot, pathsOf as P, npmDrift as Pn, gateAfterCancel as Pr, invalidPatternBreaks as Pt, releaseFiles as Q, githubFetch as Qn, parseJsonc as Qr, NOT_SOURCE as Qt, calledJobs as R, runCalls as Rn, readWorkflow as Rr, privatePatterns as Rt, namedVersions as S, homePackage as Sn, authorOf as Sr, pushMainOnly as St, IGNORE_AFTER as T, reposOf as Tn, mitText as Tr, pagesSite as Tt, runnerPeak as U, SHARED_CI as Un, RULE_WARN_DAYS as Ur, isAllowedHit as Ut, matrixPeak as V, tsconfigTest as Vn, cuePreset as Vr, PrivateNameListError as Vt, runsAtOnce as W, SHARED_WORKFLOWS as Wn, cleanPath as Wr, isCommonUse as Wt, roadmapParses as X, HOME_TIMEOUT_MS as Xn, matchesAny as Xr, pathNameHit as Xt, roadmapOfLine as Y, callPermissionsRule as Yn, lineOf as Yr, parsePrivateNames as Yt, requiredScripts as Z, blockHash as Zn, parseCatFileBatch as Zr, CONSOLE_LAST_DAY as Zt, runPrePushArgs as _, homeModule as _n, securityOneJob as _r, isGitSpecifier as _t, listRules as a, specifiersOf as ai, REAL_COMPARE as an, isSecurityGate as ar, SHIPPED_FIELDS as at, GITHUB_YAML as b, modulesOf as bn, scheduleMinute as br, siteCheckInCi as bt, runCli as c, parseRuleConfig as ci, coverageProvider as cn, SUMMARY_GATES as cr, unreleasedChange as ct, HOOK_MARKER as d, homeShape as dn, startsOnPullRequest as dr, hiddenFailures as dt, replaceLine as ei, consoleGate as en, addReleaseMode as er, minorOf as et, NO_READ_LINE as f, homeShapesOf as fn, summaryJobRule as fr, jobFails as ft, prePush as g, HOME_SHAPES as gn, securityCallers as gr, pipeFails as gt, parsePrePushArgs as h, spansOf as hn, SECURITY_TIMEOUT_MINUTES as hr, swallowsTests as ht, formatResult as i, showFiles as ii, noBuildOutput as in, SECURITY_FILE as ir, NPM_REGISTRY as it, typedFiles as j, mapMarkdown as jn, skippableJobs as jr, PRIVATE_NAMES_FILE_CONFIG as jt, configsOfScript as k, MAP_RULE as kn, gateTrigger as kr, DEFAULT_ALLOWED as kt, runFix as l, apiReportScript as ln, addSummaryJob as lr, unreleasedChangeRule as lt, installHook as m, shapesOfSource as mn, SECURITY_SCAN_INPUTS as mr, startsTests as mt, annotations as n, runGit as ni, isCliFile as nn, hasReleaseMode as nr, publishedMinorRule as nt, readConfig as o, defaultOptions as oi, hasImportMetaMain as on, securityGate as or, UNSHIPPED_FILES as ot, PRE_PUSH_HOOK as p, shapeMessage as pn, SECURITY_SCAN_COMMIT as pr, parseAdvisory as pt, groupParts as q, setupCue as qn, inFolder as qr, mergePrivateNames as qt, createContext as r, runGitShow as ri, noConsole as rn, releaseModeRule as rr, reachOf as rt, runChecks as s, parseConfig as si, mainCheck as sn, securityWorkflow as sr, npmLookup as st, USAGE as t, repositoryOfRemote as ti, consoleKind as tn, callsReleaseBuild as tr, publishedMinor as tt, summaryMarkdown as u, containedHome as un, hasSummaryJob as ur, playwrightInstall as ut, RULES as v, moduleMessage as vn, withOneJob as vr, isPinned as vt, versionTitle as w, repoOf as wn, licenseFileOf as wr, pagesCalls as wt, workflowParses as x, declaredName as xn, LICENSE_TEXTS as xr, pagesAfterRelease as xt, workspaceProtocol as y, moduleUses as yn, runnerBudget as yr, pinnedGitDeps as yt, eventClass as z, serviceRunMain as zn, yamlFaults as zr, privateTextBreaks as zt };
|
|
81000
81108
|
|
|
81001
|
-
//# sourceMappingURL=run-
|
|
81109
|
+
//# sourceMappingURL=run-BXUOL7js.js.map
|