@mark1russell7/conventions 0.53.0 → 0.53.2
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 +1 -1
- package/build/cli.js +1 -1
- package/build/index.d.ts +3 -3
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -1
- package/build/{run-BZi-u7Dp.js → run-DlmcJnPe.js} +325 -17
- package/build/run-DlmcJnPe.js.map +1 -0
- package/package.json +2 -2
- package/build/run-BZi-u7Dp.js.map +0 -1
package/README.md
CHANGED
|
@@ -69,7 +69,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
|
|
|
69
69
|
| `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). |
|
|
70
70
|
| `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). |
|
|
71
71
|
| `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). |
|
|
72
|
-
| `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).
|
|
72
|
+
| `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 function `workflowPeaks` gives 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. |
|
|
73
73
|
| `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). |
|
|
74
74
|
| `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". |
|
|
75
75
|
| `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. |
|
package/build/cli.js
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -1027,9 +1027,9 @@ export declare function runsAtOnce(concurrency: ParsedConcurrency | null, event:
|
|
|
1027
1027
|
export declare function matrixPeak(job: ParsedJob): number;
|
|
1028
1028
|
/**
|
|
1029
1029
|
* This function gives the peak of each workflow of a repository in a busy minute. In each class of events, it takes the
|
|
1030
|
-
* event with the most jobs.
|
|
1031
|
-
*
|
|
1032
|
-
*
|
|
1030
|
+
* 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,
|
|
1031
|
+
* 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
|
|
1032
|
+
* peak is the sum of the antichains of the layers of runs (`layeredPeak`). The peak is exact for the graph of the needs.
|
|
1033
1033
|
*/
|
|
1034
1034
|
export declare function workflowPeaks(workflows: readonly ParsedWorkflow[], options: PeakOptions): WorkflowPeak[];
|
|
1035
1035
|
/** This function reads the option `called`: a list of `<file>=<jobs>`. A pair that does not parse is left out. */
|
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/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/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/shared-docs.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/run.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.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,iCAA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e;;;wBAgGV,aAAa,cAAc,eAAe;;;;;;;wBAmD1C,WAAW,cAAc,eAAe;;UA0BvC;WACN;WACA;WACA;;;wBAoBK,WAAW,eAAe;;;;;;;;;KAY9B,+BAA+B,SAAS;;UAGnC;;WAEN;;WAEA;;WAEA;;WAEA;;;UAIM;;WAEN;;WAEA;;;;;;KAOC,WAAW,SAAS;;UAGf;WACN;;WAEA;;WAEA,OAAO;;WAEP;;WAEA;;;;;;WAMA;;WAEA,aAAa;;WAEb;WACA;;WAEA;WACA,aAAa;;WAEb;WACA,gBAAgB;;;UAIV;;WAEN;;WAEA;;WAEA;WACA,aAAa;;WAEb,aAAa;;WAEb;WACA,eAAe;;WAEf,OAAO;;;;;;WAMP,iBAAiB;;;qBAyFf;;;;;wBA6FG,cAAc,cAAc,eAAe;;
|
|
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/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/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/shared-docs.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/run.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.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;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;;;;;;;WAOA;EACT,MAAM,SAAS,aAAa,SAAS,UAAU;;;;;;EAM/C,UAAU,SAAS;;;;;;EAMnB,QAAQ,SAAS,SAAS,OAAO;;;;;;EAMjC,QAAQ,SAAS,aAAa,SAAS;;;qBAO5B;;wBAGG,aAAa,UAAU,UAAU;;wBAOjC,OAAO,cAAc,gBAAgB;;wBAOrC,QAAQ,cAAc,eAAe;;qBAMxC,WAAY,gBAAgB;;qBAG5B,YAAa;;wBAGV,WAAW,cAAc;;;;;;wBASzB,WAAW;;wBA2BX,UAAU;;;;;;w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O,SAAS,eAAe;;wBAyC/B,aAAa,QAAQ;;wBA4BrB,gBAAgB,QAAQ;;;;;;wBA2BxB,YAAY,QAAQ;;wBAapB,UAAU,QAAQ,+BAA+B,iBAAgB;;UAkBhE;WACN;WACA,KAAK,SAAS;WACd,SAAS;WACT,SAAS;;WAET;;;qBAIE;;wBA8EG,OAAO,yBAAyB,IAAI;;qBC7YvC;;UAGI;;WAEN;;;;;WAKA;;;;;WAKA;;;;;WAKA;;WAEA;WACA,KAAK,SAAS;;WAEd;;WAEA,MAAM;;WAEN,YAAY;;;;;;;;;;;;wBA0MP,QAAQ,SAAS,gBAAgB,IAAI,KAAK;;UA6GzC;;WAEN;WACA;WACA;WACA;;;;;;wBAOK,iBAAiB,0BAA0B;;;;;wBAuB3C,eAAe,MAAM,aAAa,IAAI,KAAK;;qBAS9C;;;;;;;;qBAgCA;;UAgBI;;WAEN;WACA,KAAK,SAAS;;WAEd,MAAM;;;;;;;wBAQD,YAAY,SAAS,aAAa,IAAI,KAAK;;;;;;;;;;;;KCzc/C;;UAGK;WACN,OAAO,YAAY;WACnB;;WAEA;;;wBA8DK,mBAAmB,cAAc,gBAAgB;;;;;wBAoGjD,WAAW,eAAe,gBAAgB,YAAY;;;;;wBActD,OAAO,mBAAmB;;qBCjM7B,cAAc,SAAS;WAA0B;WAA0B;;;;;;;;;qBCM3E;;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 requiredScripts, $n as SECURITY_SCAN_INPUTS, $t as CONSOLE_LAST_DAY, A as scriptsOf, An as npmNames, Ar as codePackages, At as packNoBuildinfo, B as TEMPLATE_CALLED, Bn as callsSharedCi, Br as repositoryOfRemote, Bt as privatePatterns, C as setVersions, Cn as HOMES, Cr as readWorkflow, Ct as pagesAfterRelease, D as trustPolicy, Dn as mapText, Dr as DEPENDENCY_FIELDS, Dt as pagesSite, E as TRAIN_SCOPES, En as mapMarkdown, Er as cuePreset, Et as pagesCalls, F as sourceMain, Fn as hasTests, Fr as matchesAny, Ft as PRIVATE_PATTERNS_VARIABLE, G as runnerPeak, Gn as securityGate, Gr as defaultOptions, Gt as isAllowedHit, H as calledJobs, Hn as setupCue, Hr as runGitShow, Ht as PRIVATE_NAME_LIST, I as HOME_TIMEOUT_MS, In as tsconfigTest, Ir as parseCatFileBatch, It as invalidPatternBreaks, J as evaluateExpression, Jn as addSummaryJob, Jt as lineNameHits, K as runsAtOnce, Kn as securityWorkflow, Kr as parseConfig, Kt as isCommonUse, L as blockHash, Ln as SHARED_ACTIONS, Lr as parseJsonc, Lt as noLocalPaths, M as testsRequired, Mn as SERVICE_PACKAGE, Mr as inFolder, Mt as HOME_PATTERNS, N as isSourcePath, Nn as runCalls, Nr as keyLine, Nt as PRIVATE_NAMES_FILE_CONFIG, O as typedScripts, On as mergeHomes, Or as RULE_WARN_DAYS, Ot as exportsRequire, P as pathsOf, Pn as serviceRunMain, Pr as lineOf, Pt as PRIVATE_NAMES_FILE_VARIABLE, Q as roadmapParses, Qn as SECURITY_SCAN_COMMIT, Qt as pathNameHit, R as githubFetch, Rn as SHARED_CI, Rr as readJsonc, Rt as privateNamesFile, S as namedVersions, Sn as HOME_EXPORTS, Sr as readAction, St as siteCheckInCi, T as IGNORE_AFTER, Tn as findHomes, Tr as STRICT_OPTIONS, Tt as PAGES_WORKFLOWS, U as eventClass, Un as SECURITY_FILE, Ur as showFiles, Ut as PrivateNameListError, V as UNKNOWN_MATRIX_JOBS, Vn as sharedCi, Vr as runGit, Vt as privateTextBreaks, W as matrixPeak, Wn as isSecurityGate, Wr as specifiersOf, Wt as firstNameMatch, X as mayRun, Xn as startsOnPullRequest, Xt as nameMatches, Y as groupParts, Yn as hasSummaryJob, Yt as mergePrivateNames, Z as roadmapOfLine, Zn as summaryJobRule, Zt as parsePrivateNames, _ as runPrePushArgs, _n as homePackage, _r as summaryJob, _t as swallowsTests, a as listRules, an as noConsole, ar as scheduleMinute, at as reachOf, b as GITHUB_YAML, bn as reposOf, br as MATRIX_EXPAND_MAX, bt as isPinned, c as runCli, cn as hasImportMetaMain, cr as licenseFile, ct as UNSHIPPED_FILES, d as HOOK_MARKER, dn as apiReportScript, dr as repositoryIsPublic, dt as unreleasedChangeRule, en as NOT_SOURCE, er as SECURITY_TIMEOUT_MINUTES, et as releaseFiles, f as NO_READ_LINE, fn as homeModule, fr as ACTIONS_COMMIT, ft as playwrightInstall, g as prePush, gn as declaredName, gr as skippableJobs, gt as startsTests, h as parsePrePushArgs, hn as modulesOf, hr as prPathFilters, ht as parseAdvisory, i as formatResult, in as isCliFile, ir as runnerBudget, it as publishedMinorRule, j as typedFiles, jn as readOverlay, jr as hasFile, jt as DEFAULT_ALLOWED, k as configsOfScript, kn as npmDrift, kr as cleanPath, kt as publishTextSafe, l as runFix, ln as mainCheck, lr as licenseFileOf, lt as npmLookup, m as installHook, mn as moduleUses, mr as gateTrigger, mt as jobFails, n as annotations, nn as consoleGate, nr as securityOneJob, nt as minorOf, o as readConfig, on as noBuildOutput, or as LICENSE_TEXTS, ot as NPM_REGISTRY, p as PRE_PUSH_HOOK, pn as moduleMessage, pr as convertGate, pt as hiddenFailures, q as workflowPeaks, qn as SUMMARY_GATES, qr as parseRuleConfig, qt as lineNameHit, r as createContext, rn as consoleKind, rr as withOneJob, rt as publishedMinor, s as runChecks, sn as REAL_COMPARE, sr as authorOf, st as SHIPPED_FIELDS, t as USAGE, tn as consoleBreaks, tr as securityCallers, tt as lockedVersions, u as summaryMarkdown, un as coverageProvider, ur as mitText, ut as unreleasedChange, v as RULES, vn as messageOf, vr as summaryName, vt as pipeFails, w as versionTitle, wn as MAP_RULE, wr as yamlFaults, wt as pushMainOnly, x as workflowParses, xn as signaturesOf, xr as parseWorkflow, xt as pinnedGitDeps, y as workspaceProtocol, yn as repoOf, yr as gateAfterCancel, yt as isGitSpecifier, z as sharedDocsRule, zn as SHARED_WORKFLOWS, zr as replaceLine, zt as privateNamesFiles } from "./run-
|
|
1
|
+
import { $ as requiredScripts, $n as SECURITY_SCAN_INPUTS, $t as CONSOLE_LAST_DAY, A as scriptsOf, An as npmNames, Ar as codePackages, At as packNoBuildinfo, B as TEMPLATE_CALLED, Bn as callsSharedCi, Br as repositoryOfRemote, Bt as privatePatterns, C as setVersions, Cn as HOMES, Cr as readWorkflow, Ct as pagesAfterRelease, D as trustPolicy, Dn as mapText, Dr as DEPENDENCY_FIELDS, Dt as pagesSite, E as TRAIN_SCOPES, En as mapMarkdown, Er as cuePreset, Et as pagesCalls, F as sourceMain, Fn as hasTests, Fr as matchesAny, Ft as PRIVATE_PATTERNS_VARIABLE, G as runnerPeak, Gn as securityGate, Gr as defaultOptions, Gt as isAllowedHit, H as calledJobs, Hn as setupCue, Hr as runGitShow, Ht as PRIVATE_NAME_LIST, I as HOME_TIMEOUT_MS, In as tsconfigTest, Ir as parseCatFileBatch, It as invalidPatternBreaks, J as evaluateExpression, Jn as addSummaryJob, Jt as lineNameHits, K as runsAtOnce, Kn as securityWorkflow, Kr as parseConfig, Kt as isCommonUse, L as blockHash, Ln as SHARED_ACTIONS, Lr as parseJsonc, Lt as noLocalPaths, M as testsRequired, Mn as SERVICE_PACKAGE, Mr as inFolder, Mt as HOME_PATTERNS, N as isSourcePath, Nn as runCalls, Nr as keyLine, Nt as PRIVATE_NAMES_FILE_CONFIG, O as typedScripts, On as mergeHomes, Or as RULE_WARN_DAYS, Ot as exportsRequire, P as pathsOf, Pn as serviceRunMain, Pr as lineOf, Pt as PRIVATE_NAMES_FILE_VARIABLE, Q as roadmapParses, Qn as SECURITY_SCAN_COMMIT, Qt as pathNameHit, R as githubFetch, Rn as SHARED_CI, Rr as readJsonc, Rt as privateNamesFile, S as namedVersions, Sn as HOME_EXPORTS, Sr as readAction, St as siteCheckInCi, T as IGNORE_AFTER, Tn as findHomes, Tr as STRICT_OPTIONS, Tt as PAGES_WORKFLOWS, U as eventClass, Un as SECURITY_FILE, Ur as showFiles, Ut as PrivateNameListError, V as UNKNOWN_MATRIX_JOBS, Vn as sharedCi, Vr as runGit, Vt as privateTextBreaks, W as matrixPeak, Wn as isSecurityGate, Wr as specifiersOf, Wt as firstNameMatch, X as mayRun, Xn as startsOnPullRequest, Xt as nameMatches, Y as groupParts, Yn as hasSummaryJob, Yt as mergePrivateNames, Z as roadmapOfLine, Zn as summaryJobRule, Zt as parsePrivateNames, _ as runPrePushArgs, _n as homePackage, _r as summaryJob, _t as swallowsTests, a as listRules, an as noConsole, ar as scheduleMinute, at as reachOf, b as GITHUB_YAML, bn as reposOf, br as MATRIX_EXPAND_MAX, bt as isPinned, c as runCli, cn as hasImportMetaMain, cr as licenseFile, ct as UNSHIPPED_FILES, d as HOOK_MARKER, dn as apiReportScript, dr as repositoryIsPublic, dt as unreleasedChangeRule, en as NOT_SOURCE, er as SECURITY_TIMEOUT_MINUTES, et as releaseFiles, f as NO_READ_LINE, fn as homeModule, fr as ACTIONS_COMMIT, ft as playwrightInstall, g as prePush, gn as declaredName, gr as skippableJobs, gt as startsTests, h as parsePrePushArgs, hn as modulesOf, hr as prPathFilters, ht as parseAdvisory, i as formatResult, in as isCliFile, ir as runnerBudget, it as publishedMinorRule, j as typedFiles, jn as readOverlay, jr as hasFile, jt as DEFAULT_ALLOWED, k as configsOfScript, kn as npmDrift, kr as cleanPath, kt as publishTextSafe, l as runFix, ln as mainCheck, lr as licenseFileOf, lt as npmLookup, m as installHook, mn as moduleUses, mr as gateTrigger, mt as jobFails, n as annotations, nn as consoleGate, nr as securityOneJob, nt as minorOf, o as readConfig, on as noBuildOutput, or as LICENSE_TEXTS, ot as NPM_REGISTRY, p as PRE_PUSH_HOOK, pn as moduleMessage, pr as convertGate, pt as hiddenFailures, q as workflowPeaks, qn as SUMMARY_GATES, qr as parseRuleConfig, qt as lineNameHit, r as createContext, rn as consoleKind, rr as withOneJob, rt as publishedMinor, s as runChecks, sn as REAL_COMPARE, sr as authorOf, st as SHIPPED_FIELDS, t as USAGE, tn as consoleBreaks, tr as securityCallers, tt as lockedVersions, u as summaryMarkdown, un as coverageProvider, ur as mitText, ut as unreleasedChange, v as RULES, vn as messageOf, vr as summaryName, vt as pipeFails, w as versionTitle, wn as MAP_RULE, wr as yamlFaults, wt as pushMainOnly, x as workflowParses, xn as signaturesOf, xr as parseWorkflow, xt as pinnedGitDeps, y as workspaceProtocol, yn as repoOf, yr as gateAfterCancel, yt as isGitSpecifier, z as sharedDocsRule, zn as SHARED_WORKFLOWS, zr as replaceLine, zt as privateNamesFiles } from "./run-DlmcJnPe.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-_CIq-8ei.js";
|
|
4
4
|
// src/release-text.ts
|
|
@@ -3376,7 +3376,8 @@ const SHARED_ACTIONS = [
|
|
|
3376
3376
|
"setup-playwright",
|
|
3377
3377
|
"site-check",
|
|
3378
3378
|
"site-config",
|
|
3379
|
-
"site-pages"
|
|
3379
|
+
"site-pages",
|
|
3380
|
+
"stamp-gate"
|
|
3380
3381
|
];
|
|
3381
3382
|
/** The `uses` value of a job that calls the shared CI, with no pin. */
|
|
3382
3383
|
const SHARED_CI = "mark1russell7/template/.github/workflows/reusable-ci.yml";
|
|
@@ -22090,6 +22091,272 @@ const roadmapParses = {
|
|
|
22090
22091
|
return breaks;
|
|
22091
22092
|
}
|
|
22092
22093
|
};
|
|
22094
|
+
// ../../node_modules/.pnpm/@mark1russell7+collections@0.11.5_zod@4.6.7/node_modules/@mark1russell7/collections/build/graph/index.js
|
|
22095
|
+
/**
|
|
22096
|
+
* This function gives the strongly connected components of the directed graph of the nodes `0` to `n - 1`, in its
|
|
22097
|
+
* compact form. The edges of the node `v` go to the items of `targets` from `start[v]` up to `start[v + 1]`.
|
|
22098
|
+
*
|
|
22099
|
+
* - Each component comes after each component that its nodes reach: the deepest component is first, as Tarjan gives them.
|
|
22100
|
+
* - The nodes of a component are in increasing order. A node on no cycle is a component of one node.
|
|
22101
|
+
* - The search keeps its own stack in arrays, so a chain of 100000 nodes does not overflow the stack of the host.
|
|
22102
|
+
* - A bad `n`, a bad `start`, or a target outside the nodes, throws a `RangeError`.
|
|
22103
|
+
*
|
|
22104
|
+
* The function is pure. It keeps no state, and it does not change its arguments.
|
|
22105
|
+
*/
|
|
22106
|
+
function strongComponentsCompact(n, start, targets) {
|
|
22107
|
+
if (!Number.isInteger(n) || n < 0) throw new RangeError(`The count of the nodes is a whole number from 0, not ${n}.`);
|
|
22108
|
+
if (start.length < n + 1) throw new RangeError(`The array start has ${n + 1} items or more, not ${start.length}.`);
|
|
22109
|
+
for (let v = 0; v < n; v += 1) {
|
|
22110
|
+
const from = start[v];
|
|
22111
|
+
const to = start[v + 1];
|
|
22112
|
+
if (!Number.isInteger(from) || !Number.isInteger(to) || from < 0 || to < from || to > targets.length) throw new RangeError(`The edges of the node ${v} go from ${from} up to ${to}, outside the ${targets.length} targets.`);
|
|
22113
|
+
for (let e = from; e < to; e += 1) {
|
|
22114
|
+
const t = targets[e];
|
|
22115
|
+
if (!Number.isInteger(t) || t < 0 || t >= n) throw new RangeError(`An edge of the node ${v} goes to ${t}, but the nodes go from 0 to ${n - 1}.`);
|
|
22116
|
+
}
|
|
22117
|
+
}
|
|
22118
|
+
const order = new Int32Array(n).fill(-1);
|
|
22119
|
+
const low = new Int32Array(n);
|
|
22120
|
+
const of = new Int32Array(n).fill(-1);
|
|
22121
|
+
const open = new Int32Array(n);
|
|
22122
|
+
const onOpen = new Uint8Array(n);
|
|
22123
|
+
const calls = new Int32Array(n);
|
|
22124
|
+
const next = new Int32Array(n);
|
|
22125
|
+
const list = [];
|
|
22126
|
+
let top = 0;
|
|
22127
|
+
let count = 0;
|
|
22128
|
+
const enter = (node, depth) => {
|
|
22129
|
+
order[node] = count;
|
|
22130
|
+
low[node] = count;
|
|
22131
|
+
count += 1;
|
|
22132
|
+
open[top] = node;
|
|
22133
|
+
top += 1;
|
|
22134
|
+
onOpen[node] = 1;
|
|
22135
|
+
calls[depth] = node;
|
|
22136
|
+
next[depth] = start[node];
|
|
22137
|
+
};
|
|
22138
|
+
for (let root = 0; root < n; root += 1) {
|
|
22139
|
+
if (order[root] !== -1) continue;
|
|
22140
|
+
enter(root, 0);
|
|
22141
|
+
let depth = 1;
|
|
22142
|
+
while (depth > 0) {
|
|
22143
|
+
const node = calls[depth - 1];
|
|
22144
|
+
const edge = next[depth - 1];
|
|
22145
|
+
if (edge < start[node + 1]) {
|
|
22146
|
+
next[depth - 1] = edge + 1;
|
|
22147
|
+
const to = targets[edge];
|
|
22148
|
+
if (order[to] === -1) {
|
|
22149
|
+
enter(to, depth);
|
|
22150
|
+
depth += 1;
|
|
22151
|
+
} else if (onOpen[to] === 1 && order[to] < low[node]) low[node] = order[to];
|
|
22152
|
+
continue;
|
|
22153
|
+
}
|
|
22154
|
+
depth -= 1;
|
|
22155
|
+
if (low[node] === order[node]) {
|
|
22156
|
+
const members = [];
|
|
22157
|
+
let member;
|
|
22158
|
+
do {
|
|
22159
|
+
top -= 1;
|
|
22160
|
+
member = open[top];
|
|
22161
|
+
onOpen[member] = 0;
|
|
22162
|
+
of[member] = list.length;
|
|
22163
|
+
members.push(member);
|
|
22164
|
+
} while (member !== node);
|
|
22165
|
+
list.push(members.sort((a, b) => a - b));
|
|
22166
|
+
}
|
|
22167
|
+
if (depth > 0) {
|
|
22168
|
+
const parent = calls[depth - 1];
|
|
22169
|
+
if (low[node] < low[parent]) low[parent] = low[node];
|
|
22170
|
+
}
|
|
22171
|
+
}
|
|
22172
|
+
}
|
|
22173
|
+
return {
|
|
22174
|
+
of,
|
|
22175
|
+
list
|
|
22176
|
+
};
|
|
22177
|
+
}
|
|
22178
|
+
/**
|
|
22179
|
+
* The antichain with the largest weight in a directed acyclic graph. The method is the weighted theorem of Dilworth:
|
|
22180
|
+
* a minimum flow with lower bounds, and its minimum cut.
|
|
22181
|
+
*/
|
|
22182
|
+
/**
|
|
22183
|
+
* This function gives an antichain of a directed acyclic graph with the largest sum of weights. A node `u` comes before
|
|
22184
|
+
* a node `v` when a path goes from `u` to `v`. An antichain is a set of nodes with no path between two of them. Thus
|
|
22185
|
+
* the nodes of an antichain can occur at the same time. For example, let the nodes be the jobs of a workflow. Let each
|
|
22186
|
+
* edge go from a job to a job that needs it. Let the weight be the runners of each job. Then the result is the peak
|
|
22187
|
+
* count of runners.
|
|
22188
|
+
*
|
|
22189
|
+
* - The result is exact. The weighted theorem of Dilworth tells that the largest weight of an antichain is a smallest
|
|
22190
|
+
* flow. That flow sends the weight of each node, or more, through that node.
|
|
22191
|
+
* - The function splits each node `v` into an edge `v_in -> v_out` with the lower bound `weight(v)`. Each edge
|
|
22192
|
+
* `u_out -> v_in`, each edge from the source to `v_in` and each edge from `v_out` to the sink has no upper bound.
|
|
22193
|
+
* - The first flow sends the weight of each node on its own path. A maximum flow back from the sink to the source, by
|
|
22194
|
+
* Dinic, makes it the smallest flow.
|
|
22195
|
+
* - The minimum cut of that flow gives the antichain. It has each node `v` with `v_in` on the side of the source and
|
|
22196
|
+
* `v_out` on the side of the sink.
|
|
22197
|
+
* - The time is the time of Dinic on `2n + 2` nodes and `3n + m` edges, for `n` nodes and `m` edges.
|
|
22198
|
+
* - The default weight is 1. Then the result is the width of the graph: the largest count of nodes in an antichain.
|
|
22199
|
+
* - A node with the weight 0 can be in the result or not.
|
|
22200
|
+
* - A successor that is not in `nodes` is not an edge. A node that comes two times in `nodes` counts one time. An edge
|
|
22201
|
+
* that comes two times counts one time. The function compares the nodes as a `Map` compares its keys.
|
|
22202
|
+
* - The same graph in the same order gives the same result. No node gives the empty antichain with the weight 0.
|
|
22203
|
+
* - A weight that is not a whole number from 0 throws a `RangeError`. A sum of weights above
|
|
22204
|
+
* `Number.MAX_SAFE_INTEGER` also throws one.
|
|
22205
|
+
* - A cycle throws a `RangeError` that names the nodes of the cycle. An edge from a node to itself is a cycle.
|
|
22206
|
+
*
|
|
22207
|
+
* The function is pure. It keeps no state, and it does not change its arguments.
|
|
22208
|
+
*
|
|
22209
|
+
* @param nodes - The nodes. Their order gives the order of the result.
|
|
22210
|
+
* @param successors - The function that gives the nodes that an edge from a node reaches.
|
|
22211
|
+
* @param weight - The weight of a node: a whole number from 0. The default is 1.
|
|
22212
|
+
* @returns An antichain with the largest weight, and that weight.
|
|
22213
|
+
*/
|
|
22214
|
+
function maxWeightAntichain(nodes, successors, weight = () => 1) {
|
|
22215
|
+
const ids = [];
|
|
22216
|
+
const index = /* @__PURE__ */ new Map();
|
|
22217
|
+
for (const id of nodes) {
|
|
22218
|
+
if (index.has(id)) continue;
|
|
22219
|
+
index.set(id, ids.length);
|
|
22220
|
+
ids.push(id);
|
|
22221
|
+
}
|
|
22222
|
+
const n = ids.length;
|
|
22223
|
+
const start = new Int32Array(n + 1);
|
|
22224
|
+
const targets = [];
|
|
22225
|
+
for (let v = 0; v < n; v += 1) {
|
|
22226
|
+
start[v] = targets.length;
|
|
22227
|
+
const seen = /* @__PURE__ */ new Set();
|
|
22228
|
+
for (const to of successors(ids[v])) {
|
|
22229
|
+
const t = index.get(to);
|
|
22230
|
+
if (t === void 0 || seen.has(t)) continue;
|
|
22231
|
+
if (t === v) throw new RangeError(`The graph has a cycle: an edge goes from the node ${String(ids[v])} to itself.`);
|
|
22232
|
+
seen.add(t);
|
|
22233
|
+
targets.push(t);
|
|
22234
|
+
}
|
|
22235
|
+
}
|
|
22236
|
+
start[n] = targets.length;
|
|
22237
|
+
for (const members of strongComponentsCompact(n, start, targets).list) if (members.length > 1) throw new RangeError(`The graph has a cycle through the nodes ${members.map((v) => String(ids[v])).join(", ")}.`);
|
|
22238
|
+
const weights = ids.map((id) => {
|
|
22239
|
+
const w = weight(id);
|
|
22240
|
+
if (!Number.isSafeInteger(w) || w < 0) throw new RangeError(`The weight of a node is a whole number from 0, not ${w}.`);
|
|
22241
|
+
return w;
|
|
22242
|
+
});
|
|
22243
|
+
const total = weights.reduce((sum, w) => sum + w, 0);
|
|
22244
|
+
if (total > Number.MAX_SAFE_INTEGER) throw new RangeError(`The sum of the weights is ${total}, above Number.MAX_SAFE_INTEGER.`);
|
|
22245
|
+
const source = 2 * n;
|
|
22246
|
+
const sink = 2 * n + 1;
|
|
22247
|
+
const network = new Network(2 * n + 2);
|
|
22248
|
+
for (let v = 0; v < n; v += 1) {
|
|
22249
|
+
const w = weights[v];
|
|
22250
|
+
network.edge(2 * v, 2 * v + 1, 0);
|
|
22251
|
+
network.edge(source, 2 * v, w);
|
|
22252
|
+
network.edge(2 * v + 1, sink, w);
|
|
22253
|
+
for (let e = start[v]; e < start[v + 1]; e += 1) network.edge(2 * v + 1, 2 * targets[e], 0);
|
|
22254
|
+
}
|
|
22255
|
+
const cancelled = network.maxFlow(sink, source);
|
|
22256
|
+
const fromSink = network.reachable(sink);
|
|
22257
|
+
const picked = [];
|
|
22258
|
+
let sum = 0;
|
|
22259
|
+
for (let v = 0; v < n; v += 1) if (fromSink[2 * v] === 0 && fromSink[2 * v + 1] === 1) {
|
|
22260
|
+
picked.push(ids[v]);
|
|
22261
|
+
sum += weights[v];
|
|
22262
|
+
}
|
|
22263
|
+
if (sum !== total - cancelled) throw new Error(`Internal error: the cut has the weight ${sum}, but the smallest flow is ${total - cancelled}.`);
|
|
22264
|
+
return {
|
|
22265
|
+
nodes: picked,
|
|
22266
|
+
weight: sum
|
|
22267
|
+
};
|
|
22268
|
+
}
|
|
22269
|
+
var Network = class {
|
|
22270
|
+
size;
|
|
22271
|
+
head;
|
|
22272
|
+
to = [];
|
|
22273
|
+
next = [];
|
|
22274
|
+
residual = [];
|
|
22275
|
+
constructor(size) {
|
|
22276
|
+
this.size = size;
|
|
22277
|
+
this.head = Array.from({ length: size }, () => -1);
|
|
22278
|
+
}
|
|
22279
|
+
edge(u, v, back) {
|
|
22280
|
+
this.arc(u, v, Number.POSITIVE_INFINITY);
|
|
22281
|
+
this.arc(v, u, back);
|
|
22282
|
+
}
|
|
22283
|
+
arc(u, v, residual) {
|
|
22284
|
+
this.to.push(v);
|
|
22285
|
+
this.residual.push(residual);
|
|
22286
|
+
this.next.push(this.head[u]);
|
|
22287
|
+
this.head[u] = this.to.length - 1;
|
|
22288
|
+
}
|
|
22289
|
+
maxFlow(from, to) {
|
|
22290
|
+
let flow = 0;
|
|
22291
|
+
const level = new Int32Array(this.size);
|
|
22292
|
+
const current = new Int32Array(this.size);
|
|
22293
|
+
const path = [];
|
|
22294
|
+
for (;;) {
|
|
22295
|
+
if (!this.levels(from, to, level)) return flow;
|
|
22296
|
+
for (let u = 0; u < this.size; u += 1) current[u] = this.head[u];
|
|
22297
|
+
let u = from;
|
|
22298
|
+
for (;;) {
|
|
22299
|
+
if (u === to) {
|
|
22300
|
+
let push = Number.POSITIVE_INFINITY;
|
|
22301
|
+
for (const a of path) push = Math.min(push, this.residual[a]);
|
|
22302
|
+
for (const a of path) {
|
|
22303
|
+
this.residual[a] = this.residual[a] - push;
|
|
22304
|
+
this.residual[a ^ 1] = this.residual[a ^ 1] + push;
|
|
22305
|
+
}
|
|
22306
|
+
flow += push;
|
|
22307
|
+
path.length = 0;
|
|
22308
|
+
u = from;
|
|
22309
|
+
continue;
|
|
22310
|
+
}
|
|
22311
|
+
let a = current[u];
|
|
22312
|
+
while (a !== -1 && (this.residual[a] <= 0 || level[this.to[a]] !== level[u] + 1)) a = this.next[a];
|
|
22313
|
+
current[u] = a;
|
|
22314
|
+
if (a !== -1) {
|
|
22315
|
+
path.push(a);
|
|
22316
|
+
u = this.to[a];
|
|
22317
|
+
continue;
|
|
22318
|
+
}
|
|
22319
|
+
if (u === from) break;
|
|
22320
|
+
level[u] = -1;
|
|
22321
|
+
const back = path.pop();
|
|
22322
|
+
u = this.to[back ^ 1];
|
|
22323
|
+
current[u] = this.next[current[u]];
|
|
22324
|
+
}
|
|
22325
|
+
}
|
|
22326
|
+
}
|
|
22327
|
+
levels(from, to, level) {
|
|
22328
|
+
level.fill(-1);
|
|
22329
|
+
level[from] = 0;
|
|
22330
|
+
const queue = [from];
|
|
22331
|
+
for (let i = 0; i < queue.length; i += 1) {
|
|
22332
|
+
const u = queue[i];
|
|
22333
|
+
for (let a = this.head[u]; a !== -1; a = this.next[a]) {
|
|
22334
|
+
const v = this.to[a];
|
|
22335
|
+
if (this.residual[a] > 0 && level[v] === -1) {
|
|
22336
|
+
level[v] = level[u] + 1;
|
|
22337
|
+
queue.push(v);
|
|
22338
|
+
}
|
|
22339
|
+
}
|
|
22340
|
+
}
|
|
22341
|
+
return level[to] !== -1;
|
|
22342
|
+
}
|
|
22343
|
+
reachable(from) {
|
|
22344
|
+
const seen = new Uint8Array(this.size);
|
|
22345
|
+
seen[from] = 1;
|
|
22346
|
+
const queue = [from];
|
|
22347
|
+
for (let i = 0; i < queue.length; i += 1) {
|
|
22348
|
+
const u = queue[i];
|
|
22349
|
+
for (let a = this.head[u]; a !== -1; a = this.next[a]) {
|
|
22350
|
+
const v = this.to[a];
|
|
22351
|
+
if (this.residual[a] > 0 && seen[v] === 0) {
|
|
22352
|
+
seen[v] = 1;
|
|
22353
|
+
queue.push(v);
|
|
22354
|
+
}
|
|
22355
|
+
}
|
|
22356
|
+
}
|
|
22357
|
+
return seen;
|
|
22358
|
+
}
|
|
22359
|
+
};
|
|
22093
22360
|
// src/workflow-expression.ts
|
|
22094
22361
|
/** The events of a pull request: `github.head_ref` is not empty only on these. */
|
|
22095
22362
|
const PULL_REQUEST_EVENTS = /* @__PURE__ */ new Set([
|
|
@@ -22298,8 +22565,9 @@ function mayRun(condition, event) {
|
|
|
22298
22565
|
/**
|
|
22299
22566
|
* The rule `runner-peak`: the workflows of a repository hold at most its share of the runners in a busy minute. The peak
|
|
22300
22567
|
* of a job is the jobs of one run (a matrix, capped by its `max-parallel`) times the runs that its concurrency group lets
|
|
22301
|
-
* run at one time. A burst of merges on `push` and a burst of pull requests give these runs.
|
|
22302
|
-
* the
|
|
22568
|
+
* run at one time. A burst of merges on `push` and a burst of pull requests give these runs. A job that `needs` a
|
|
22569
|
+
* different job does not run at the same time as it. Thus the peak of one run is the antichain with the largest weight
|
|
22570
|
+
* of the graph of the needs. The peak is exact for that graph.
|
|
22303
22571
|
*/
|
|
22304
22572
|
/** 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. */
|
|
22305
22573
|
const UNKNOWN_MATRIX_JOBS = 3;
|
|
@@ -22343,18 +22611,54 @@ function matrixPeak(job) {
|
|
|
22343
22611
|
if (job.matrixJobs === null) return limit ?? 3;
|
|
22344
22612
|
return Math.max(1, Math.min(job.matrixJobs, limit ?? job.matrixJobs));
|
|
22345
22613
|
}
|
|
22346
|
-
/**
|
|
22614
|
+
/**
|
|
22615
|
+
* This function gives the most jobs of one run that run at one time. It is the antichain with the largest weight of the
|
|
22616
|
+
* graph of the needs. The successors of a job are the jobs that list it in `needs`. A name in `needs` that is not a job of the
|
|
22617
|
+
* list is not an edge. GitHub refuses a workflow with a cycle of needs, so a cycle gives the sum of the jobs.
|
|
22618
|
+
*/
|
|
22619
|
+
function needsPeak(jobs) {
|
|
22620
|
+
const dependents = new Map(jobs.map((job) => [job.id, []]));
|
|
22621
|
+
for (const job of jobs) for (const need of job.needs) dependents.get(need)?.push(job.id);
|
|
22622
|
+
const weight = new Map(jobs.map((job) => [job.id, job.jobs]));
|
|
22623
|
+
try {
|
|
22624
|
+
return maxWeightAntichain(jobs.map((job) => job.id), (id) => dependents.get(id) ?? [], (id) => weight.get(id) ?? 0).weight;
|
|
22625
|
+
} catch (error) {
|
|
22626
|
+
if (!(error instanceof RangeError)) throw error;
|
|
22627
|
+
return jobs.reduce((sum, job) => sum + job.jobs, 0);
|
|
22628
|
+
}
|
|
22629
|
+
}
|
|
22630
|
+
/**
|
|
22631
|
+
* This function gives the most jobs at one time of the runs of one class of events. Each job has its own runs at one time.
|
|
22632
|
+
* Different runs can be at different stages, so the jobs of different runs overlap freely. Layer `r` has the jobs with
|
|
22633
|
+
* `r` or more runs, and the peak is the sum of the antichains of the layers. When each job has the same runs, the peak
|
|
22634
|
+
* is the runs times the antichain.
|
|
22635
|
+
*/
|
|
22636
|
+
function layeredPeak(jobs) {
|
|
22637
|
+
const levels = [...new Set(jobs.map((job) => job.runs))].filter((runs) => runs > 0).sort((a, b) => a - b);
|
|
22638
|
+
let peak = 0;
|
|
22639
|
+
let below = 0;
|
|
22640
|
+
for (const level of levels) {
|
|
22641
|
+
peak += (level - below) * needsPeak(jobs.filter((job) => job.runs >= level));
|
|
22642
|
+
below = level;
|
|
22643
|
+
}
|
|
22644
|
+
return peak;
|
|
22645
|
+
}
|
|
22646
|
+
/** This function gives the jobs of one run of a workflow on the event. It is the antichain of the needs of the jobs that can run on it. */
|
|
22347
22647
|
function jobsOfRun(workflow, event, local, options, seen) {
|
|
22348
|
-
|
|
22648
|
+
const nodes = [];
|
|
22349
22649
|
let known = true;
|
|
22350
22650
|
for (const job of workflow.jobs) {
|
|
22351
22651
|
if (!mayRun(job.if, event)) continue;
|
|
22352
22652
|
const one = jobOfRun(job, event, local, options, seen);
|
|
22353
|
-
|
|
22653
|
+
nodes.push({
|
|
22654
|
+
id: job.id,
|
|
22655
|
+
needs: job.needs,
|
|
22656
|
+
jobs: one.jobs
|
|
22657
|
+
});
|
|
22354
22658
|
known &&= one.known;
|
|
22355
22659
|
}
|
|
22356
22660
|
return {
|
|
22357
|
-
jobs,
|
|
22661
|
+
jobs: needsPeak(nodes),
|
|
22358
22662
|
known
|
|
22359
22663
|
};
|
|
22360
22664
|
}
|
|
@@ -22381,9 +22685,9 @@ function jobOfRun(job, event, local, options, seen) {
|
|
|
22381
22685
|
}
|
|
22382
22686
|
/**
|
|
22383
22687
|
* This function gives the peak of each workflow of a repository in a busy minute. In each class of events, it takes the
|
|
22384
|
-
* event with the most jobs.
|
|
22385
|
-
*
|
|
22386
|
-
*
|
|
22688
|
+
* 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,
|
|
22689
|
+
* 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
|
|
22690
|
+
* peak is the sum of the antichains of the layers of runs (`layeredPeak`). The peak is exact for the graph of the needs.
|
|
22387
22691
|
*/
|
|
22388
22692
|
function workflowPeaks(workflows, options) {
|
|
22389
22693
|
const local = new Map(workflows.map((workflow) => [workflow.file, workflow]));
|
|
@@ -22392,7 +22696,8 @@ function workflowPeaks(workflows, options) {
|
|
|
22392
22696
|
for (const event of workflow.triggers) {
|
|
22393
22697
|
const kind = eventClass(event);
|
|
22394
22698
|
if (kind === void 0) continue;
|
|
22395
|
-
const
|
|
22699
|
+
const running = workflow.jobs.filter((job) => mayRun(job.if, event));
|
|
22700
|
+
const jobs = running.map((job) => {
|
|
22396
22701
|
const one = jobOfRun(job, event, local, options, /* @__PURE__ */ new Set([workflow.file]));
|
|
22397
22702
|
return {
|
|
22398
22703
|
id: job.id,
|
|
@@ -22402,7 +22707,10 @@ function workflowPeaks(workflows, options) {
|
|
|
22402
22707
|
known: one.known
|
|
22403
22708
|
};
|
|
22404
22709
|
});
|
|
22405
|
-
const peak = jobs.
|
|
22710
|
+
const peak = layeredPeak(jobs.map((job, at) => ({
|
|
22711
|
+
...job,
|
|
22712
|
+
needs: running[at]?.needs ?? []
|
|
22713
|
+
})));
|
|
22406
22714
|
if (peak > (classes[kind]?.peak ?? -1)) classes[kind] = {
|
|
22407
22715
|
event,
|
|
22408
22716
|
peak,
|
|
@@ -22442,11 +22750,11 @@ function peakText(item) {
|
|
|
22442
22750
|
const TEMPLATE_CALLED = [
|
|
22443
22751
|
"reusable-ai-review.yml=1",
|
|
22444
22752
|
"reusable-ci.yml=7",
|
|
22445
|
-
"reusable-codex-review.yml=
|
|
22753
|
+
"reusable-codex-review.yml=1",
|
|
22446
22754
|
"reusable-lockfile.yml=1",
|
|
22447
|
-
"reusable-mutation.yml=
|
|
22755
|
+
"reusable-mutation.yml=3",
|
|
22448
22756
|
"reusable-pages-check.yml=1",
|
|
22449
|
-
"reusable-pages.yml=
|
|
22757
|
+
"reusable-pages.yml=1",
|
|
22450
22758
|
"reusable-queue.yml=1",
|
|
22451
22759
|
"reusable-release-build.yml=1",
|
|
22452
22760
|
"reusable-release-tag.yml=1",
|
|
@@ -22469,7 +22777,7 @@ const runnerPeak = {
|
|
|
22469
22777
|
share: {
|
|
22470
22778
|
type: "number",
|
|
22471
22779
|
default: 0,
|
|
22472
|
-
description: "The most jobs that the workflows of the repository hold at one time in a busy minute. The organization gives each repository its share of the pool. 0 turns the rule off: the CI of the template alone can hold
|
|
22780
|
+
description: "The most jobs that the workflows of the repository hold at one time in a busy minute. The organization gives each repository its share of the pool. 0 turns the rule off: the CI of the template alone can hold 148 jobs in a busy minute, so no one share fits each repository."
|
|
22473
22781
|
},
|
|
22474
22782
|
burst: {
|
|
22475
22783
|
type: "number",
|
|
@@ -25465,4 +25773,4 @@ function runHook(args, io) {
|
|
|
25465
25773
|
}
|
|
25466
25774
|
export { requiredScripts as $, SECURITY_SCAN_INPUTS as $n, CONSOLE_LAST_DAY as $t, scriptsOf as A, npmNames as An, codePackages as Ar, packNoBuildinfo as At, TEMPLATE_CALLED as B, callsSharedCi as Bn, repositoryOfRemote as Br, privatePatterns as Bt, setVersions as C, HOMES as Cn, readWorkflow as Cr, pagesAfterRelease as Ct, trustPolicy as D, mapText as Dn, DEPENDENCY_FIELDS as Dr, pagesSite as Dt, TRAIN_SCOPES as E, mapMarkdown as En, cuePreset as Er, pagesCalls as Et, sourceMain as F, hasTests as Fn, matchesAny as Fr, PRIVATE_PATTERNS_VARIABLE as Ft, runnerPeak as G, securityGate as Gn, defaultOptions as Gr, isAllowedHit as Gt, calledJobs as H, setupCue as Hn, runGitShow as Hr, PRIVATE_NAME_LIST as Ht, HOME_TIMEOUT_MS as I, tsconfigTest as In, parseCatFileBatch as Ir, invalidPatternBreaks as It, evaluateExpression as J, addSummaryJob as Jn, lineNameHits as Jt, runsAtOnce as K, securityWorkflow as Kn, parseConfig as Kr, isCommonUse as Kt, blockHash as L, SHARED_ACTIONS as Ln, parseJsonc as Lr, noLocalPaths as Lt, testsRequired as M, SERVICE_PACKAGE as Mn, inFolder as Mr, HOME_PATTERNS as Mt, isSourcePath as N, runCalls as Nn, keyLine as Nr, PRIVATE_NAMES_FILE_CONFIG as Nt, typedScripts as O, mergeHomes as On, RULE_WARN_DAYS as Or, exportsRequire as Ot, pathsOf as P, serviceRunMain as Pn, lineOf as Pr, PRIVATE_NAMES_FILE_VARIABLE as Pt, roadmapParses as Q, SECURITY_SCAN_COMMIT as Qn, pathNameHit as Qt, githubFetch as R, SHARED_CI as Rn, readJsonc as Rr, privateNamesFile as Rt, namedVersions as S, HOME_EXPORTS as Sn, readAction as Sr, siteCheckInCi as St, IGNORE_AFTER as T, findHomes as Tn, STRICT_OPTIONS as Tr, PAGES_WORKFLOWS as Tt, eventClass as U, SECURITY_FILE as Un, showFiles as Ur, PrivateNameListError as Ut, UNKNOWN_MATRIX_JOBS as V, sharedCi as Vn, runGit as Vr, privateTextBreaks as Vt, matrixPeak as W, isSecurityGate as Wn, specifiersOf as Wr, firstNameMatch as Wt, mayRun as X, startsOnPullRequest as Xn, nameMatches as Xt, groupParts as Y, hasSummaryJob as Yn, mergePrivateNames as Yt, roadmapOfLine as Z, summaryJobRule as Zn, parsePrivateNames as Zt, runPrePushArgs as _, homePackage as _n, summaryJob as _r, swallowsTests as _t, listRules as a, noConsole as an, scheduleMinute as ar, reachOf as at, GITHUB_YAML as b, reposOf as bn, MATRIX_EXPAND_MAX as br, isPinned as bt, runCli as c, hasImportMetaMain as cn, licenseFile as cr, UNSHIPPED_FILES as ct, HOOK_MARKER as d, apiReportScript as dn, repositoryIsPublic as dr, unreleasedChangeRule as dt, NOT_SOURCE as en, SECURITY_TIMEOUT_MINUTES as er, releaseFiles as et, NO_READ_LINE as f, homeModule as fn, ACTIONS_COMMIT as fr, playwrightInstall as ft, prePush as g, declaredName as gn, skippableJobs as gr, startsTests as gt, parsePrePushArgs as h, modulesOf as hn, prPathFilters as hr, parseAdvisory as ht, formatResult as i, isCliFile as in, runnerBudget as ir, publishedMinorRule as it, typedFiles as j, readOverlay as jn, hasFile as jr, DEFAULT_ALLOWED as jt, configsOfScript as k, npmDrift as kn, cleanPath as kr, publishTextSafe as kt, runFix as l, mainCheck as ln, licenseFileOf as lr, npmLookup as lt, installHook as m, moduleUses as mn, gateTrigger as mr, jobFails as mt, annotations as n, consoleGate as nn, securityOneJob as nr, minorOf as nt, readConfig as o, noBuildOutput as on, LICENSE_TEXTS as or, NPM_REGISTRY as ot, PRE_PUSH_HOOK as p, moduleMessage as pn, convertGate as pr, hiddenFailures as pt, workflowPeaks as q, SUMMARY_GATES as qn, parseRuleConfig as qr, lineNameHit as qt, createContext as r, consoleKind as rn, withOneJob as rr, publishedMinor as rt, runChecks as s, REAL_COMPARE as sn, authorOf as sr, SHIPPED_FIELDS as st, USAGE as t, consoleBreaks as tn, securityCallers as tr, lockedVersions as tt, summaryMarkdown as u, coverageProvider as un, mitText as ur, unreleasedChange as ut, RULES as v, messageOf$1 as vn, summaryName as vr, pipeFails as vt, versionTitle as w, MAP_RULE as wn, yamlFaults as wr, pushMainOnly as wt, workflowParses as x, signaturesOf as xn, parseWorkflow as xr, pinnedGitDeps as xt, workspaceProtocol as y, repoOf as yn, gateAfterCancel as yr, isGitSpecifier as yt, sharedDocsRule as z, SHARED_WORKFLOWS as zn, replaceLine as zr, privateNamesFiles as zt };
|
|
25467
25775
|
|
|
25468
|
-
//# sourceMappingURL=run-
|
|
25776
|
+
//# sourceMappingURL=run-DlmcJnPe.js.map
|