@codyswann/lisa 5.4.0 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -3
- package/all/copy-contents/gitignore +16 -0
- package/all/copy-contents/scripts/lisa-mutation.sh +4 -6
- package/all/copy-overwrite/scripts/fetch-test-access-map.d.mts +71 -0
- package/all/copy-overwrite/scripts/fetch-test-access-map.mjs +674 -0
- package/all/copy-overwrite/scripts/lib/affected-tests.mjs +818 -0
- package/all/copy-overwrite/scripts/lib/automation-provenance-local.mjs +48 -3
- package/all/copy-overwrite/scripts/lib/build-marker.mjs +410 -0
- package/all/copy-overwrite/scripts/lib/gate-pass-cache.mjs +537 -0
- package/all/copy-overwrite/scripts/lib/github-attestation-provider.mjs +68 -0
- package/all/copy-overwrite/scripts/lib/github-attestation-recovery.mjs +25 -10
- package/all/copy-overwrite/scripts/lib/github-attestation-verifier.mjs +4 -1
- package/all/copy-overwrite/scripts/lib/kill-marks.mjs +1 -2
- package/all/copy-overwrite/scripts/lib/lisa-cleanup-sweep-processes.mjs +3 -4
- package/all/copy-overwrite/scripts/lib/npm-update-allocate.mjs +1 -6
- package/all/copy-overwrite/scripts/lib/npm-update-authorization.mjs +25 -14
- package/all/copy-overwrite/scripts/lib/npm-update-cancel-origin.mjs +45 -11
- package/all/copy-overwrite/scripts/lib/npm-update-cancellation-proof.mjs +22 -11
- package/all/copy-overwrite/scripts/lib/npm-update-cancellation.mjs +29 -17
- package/all/copy-overwrite/scripts/lib/npm-update-controller-broker.mjs +1 -1
- package/all/copy-overwrite/scripts/lib/npm-update-controller-factory.mjs +19 -1
- package/all/copy-overwrite/scripts/lib/npm-update-gate-hooks.mjs +2 -1
- package/all/copy-overwrite/scripts/lib/npm-update-gate.mjs +5 -0
- package/all/copy-overwrite/scripts/lib/npm-update-gh-requests.mjs +57 -30
- package/all/copy-overwrite/scripts/lib/npm-update-helper-inventory.mjs +9 -1
- package/all/copy-overwrite/scripts/lib/npm-update-hosted-hook.mjs +1 -1
- package/all/copy-overwrite/scripts/lib/npm-update-leaf.mjs +6 -1
- package/all/copy-overwrite/scripts/lib/npm-update-policy.mjs +38 -0
- package/all/copy-overwrite/scripts/lib/npm-update-publication.mjs +21 -3
- package/all/copy-overwrite/scripts/lib/npm-update-publish.mjs +13 -1
- package/all/copy-overwrite/scripts/lib/npm-update-recovery.mjs +29 -4
- package/all/copy-overwrite/scripts/lib/npm-update-supersession.mjs +21 -7
- package/all/copy-overwrite/scripts/lib/npm-update-tool-launcher.mjs +1 -1
- package/all/copy-overwrite/scripts/lib/npm-update-tracker-cancel.mjs +139 -0
- package/all/copy-overwrite/scripts/lib/npm-update-tracker-jira.mjs +149 -19
- package/all/copy-overwrite/scripts/lib/npm-update-tracker-linear.mjs +72 -17
- package/all/copy-overwrite/scripts/lib/npm-update-tracker-wire.mjs +102 -12
- package/all/copy-overwrite/scripts/lib/npm-update-tracker.mjs +91 -13
- package/all/copy-overwrite/scripts/lib/push-admission.mjs +158 -0
- package/all/copy-overwrite/scripts/lib/push-gate-defaults.d.mts +34 -0
- package/all/copy-overwrite/scripts/lib/push-gate-defaults.mjs +147 -0
- package/all/copy-overwrite/scripts/lib/push-timing.mjs +323 -0
- package/all/copy-overwrite/scripts/lib/rspec-selection.mjs +672 -0
- package/all/copy-overwrite/scripts/lisa-affected-tests.mjs +566 -0
- package/all/copy-overwrite/scripts/lisa-automation-provenance.mjs +35 -8
- package/all/copy-overwrite/scripts/lisa-gates.mjs +29 -0
- package/all/copy-overwrite/scripts/lisa-lint-staged-preflight.mjs +10 -1
- package/all/copy-overwrite/scripts/lisa-npm-updater.mjs +8 -5
- package/all/copy-overwrite/scripts/lisa-push-timing-report.mjs +153 -0
- package/all/copy-overwrite/scripts/lisa-rspec-select.mjs +982 -0
- package/all/copy-overwrite/scripts/lisa-run-gates.mjs +231 -6
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +148 -41
- package/all/deletions.json +11 -2
- package/cdk/create-only/vitest.config.local.ts +1 -7
- package/cdk/package-lisa/package.lisa.json +4 -4
- package/dist/cli/admit-cmd.d.ts +21 -0
- package/dist/cli/admit-cmd.d.ts.map +1 -0
- package/dist/cli/admit-cmd.js +142 -0
- package/dist/cli/admit-cmd.js.map +1 -0
- package/dist/cli/check-cmd.d.ts +72 -0
- package/dist/cli/check-cmd.d.ts.map +1 -0
- package/dist/cli/check-cmd.js +316 -0
- package/dist/cli/check-cmd.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +6 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/lisa-test-run-admission.d.ts +18 -0
- package/dist/cli/lisa-test-run-admission.d.ts.map +1 -0
- package/dist/cli/lisa-test-run-admission.js +62 -0
- package/dist/cli/lisa-test-run-admission.js.map +1 -0
- package/dist/cli/lisa-test-run-payload.d.ts +37 -0
- package/dist/cli/lisa-test-run-payload.d.ts.map +1 -0
- package/dist/cli/lisa-test-run-payload.js +55 -0
- package/dist/cli/lisa-test-run-payload.js.map +1 -0
- package/dist/cli/lisa-test-run-shard-files.d.ts +89 -0
- package/dist/cli/lisa-test-run-shard-files.d.ts.map +1 -0
- package/dist/cli/lisa-test-run-shard-files.js +239 -0
- package/dist/cli/lisa-test-run-shard-files.js.map +1 -0
- package/dist/cli/lisa-test-run-shard.d.ts +6 -2
- package/dist/cli/lisa-test-run-shard.d.ts.map +1 -1
- package/dist/cli/lisa-test-run-shard.js +25 -13
- package/dist/cli/lisa-test-run-shard.js.map +1 -1
- package/dist/cli/lisa-test-run.d.ts +1 -1
- package/dist/cli/lisa-test-run.d.ts.map +1 -1
- package/dist/cli/lisa-test-run.js +47 -10
- package/dist/cli/lisa-test-run.js.map +1 -1
- package/dist/cli/update-check-hook.d.ts.map +1 -1
- package/dist/cli/update-check-hook.js +3 -0
- package/dist/cli/update-check-hook.js.map +1 -1
- package/dist/configs/vitest/base.d.ts +58 -135
- package/dist/configs/vitest/base.d.ts.map +1 -1
- package/dist/configs/vitest/base.js +76 -228
- package/dist/configs/vitest/base.js.map +1 -1
- package/dist/configs/vitest/cdk.d.ts.map +1 -1
- package/dist/configs/vitest/cdk.js +3 -2
- package/dist/configs/vitest/cdk.js.map +1 -1
- package/dist/configs/vitest/coverage-include-global-setup.d.ts.map +1 -1
- package/dist/configs/vitest/coverage-include-global-setup.js +3 -4
- package/dist/configs/vitest/coverage-include-global-setup.js.map +1 -1
- package/dist/configs/vitest/coverage-reports-directory.d.ts +27 -5
- package/dist/configs/vitest/coverage-reports-directory.d.ts.map +1 -1
- package/dist/configs/vitest/coverage-reports-directory.js +47 -10
- package/dist/configs/vitest/coverage-reports-directory.js.map +1 -1
- package/dist/configs/vitest/harper-fabric.d.ts.map +1 -1
- package/dist/configs/vitest/harper-fabric.js +3 -2
- package/dist/configs/vitest/harper-fabric.js.map +1 -1
- package/dist/configs/vitest/nestjs.d.ts.map +1 -1
- package/dist/configs/vitest/nestjs.js +3 -2
- package/dist/configs/vitest/nestjs.js.map +1 -1
- package/dist/configs/vitest/phaser.d.ts.map +1 -1
- package/dist/configs/vitest/phaser.js +3 -2
- package/dist/configs/vitest/phaser.js.map +1 -1
- package/dist/configs/vitest/refusal-announcement.d.ts +51 -0
- package/dist/configs/vitest/refusal-announcement.d.ts.map +1 -0
- package/dist/configs/vitest/refusal-announcement.js +97 -0
- package/dist/configs/vitest/refusal-announcement.js.map +1 -0
- package/dist/configs/vitest/socket-safe-temp-base.d.ts +3 -4
- package/dist/configs/vitest/socket-safe-temp-base.d.ts.map +1 -1
- package/dist/configs/vitest/socket-safe-temp-base.js +7 -6
- package/dist/configs/vitest/socket-safe-temp-base.js.map +1 -1
- package/dist/configs/vitest/typescript.d.ts.map +1 -1
- package/dist/configs/vitest/typescript.js +3 -2
- package/dist/configs/vitest/typescript.js.map +1 -1
- package/dist/core/admission-decision.d.ts +110 -0
- package/dist/core/admission-decision.d.ts.map +1 -0
- package/dist/core/admission-decision.js +91 -0
- package/dist/core/admission-decision.js.map +1 -0
- package/dist/core/admission-lock.d.ts +69 -0
- package/dist/core/admission-lock.d.ts.map +1 -0
- package/dist/core/admission-lock.js +278 -0
- package/dist/core/admission-lock.js.map +1 -0
- package/dist/core/admission-settings.d.ts +69 -0
- package/dist/core/admission-settings.d.ts.map +1 -0
- package/dist/core/admission-settings.js +204 -0
- package/dist/core/admission-settings.js.map +1 -0
- package/dist/core/admission-state.d.ts +50 -0
- package/dist/core/admission-state.d.ts.map +1 -0
- package/dist/core/admission-state.js +168 -0
- package/dist/core/admission-state.js.map +1 -0
- package/dist/core/admission.d.ts +70 -0
- package/dist/core/admission.d.ts.map +1 -0
- package/dist/core/admission.js +205 -0
- package/dist/core/admission.js.map +1 -0
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +440 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/project-config-push-gate.d.ts +66 -0
- package/dist/core/project-config-push-gate.d.ts.map +1 -0
- package/dist/core/project-config-push-gate.js +82 -0
- package/dist/core/project-config-push-gate.js.map +1 -0
- package/dist/core/project-config.d.ts +4 -0
- package/dist/core/project-config.d.ts.map +1 -1
- package/dist/core/project-config.js +14 -9
- package/dist/core/project-config.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +234 -146
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/expo/package-lisa/package.lisa.json +2 -2
- package/harper-fabric/package-lisa/package.lisa.json +4 -4
- package/nestjs/create-only/vitest.config.local.ts +1 -7
- package/nestjs/package-lisa/package.lisa.json +4 -4
- package/npm-package/package-lisa/package.lisa.json +4 -4
- package/package.json +12 -11
- package/phaser/package-lisa/package.lisa.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-git-submit-pr/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
- package/plugins/lisa/skills/lisa-git-submit-pr/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
- package/plugins/lisa-agy/skills/lisa-git-submit-pr/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
- package/plugins/lisa-copilot/skills/lisa-git-submit-pr/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
- package/plugins/lisa-cursor/skills/lisa-git-submit-pr/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
- package/plugins/lisa-devin/skills/lisa-git-submit-pr/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
- package/plugins/src/base/skills/lisa-git-submit-pr/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-implement/SKILL.md +1 -1
- package/rails/copy-overwrite/Gemfile.lisa +8 -0
- package/rails/copy-overwrite/lefthook.yml +25 -11
- package/rails/copy-overwrite/scripts/lisa-rails-gates.mjs +686 -0
- package/rails/copy-overwrite/scripts/lisa-rspec-shards.mjs +2 -2
- package/rails/copy-overwrite/scripts/lisa_crystalball_recorder.rb +239 -0
- package/rails/copy-overwrite/scripts/lisa_rspec_partial_coverage.rb +83 -0
- package/scripts/build-unless-marked.mjs +83 -0
- package/scripts/check-plugins-sync.sh +22 -5
- package/scripts/classify-markdown-assertions.mjs +141 -0
- package/scripts/integration-shard-build.mjs +143 -0
- package/scripts/lib/history-scanner-suites.mjs +19 -0
- package/scripts/lib/markdown-assertions/classify.mjs +289 -0
- package/scripts/lib/markdown-assertions/context.mjs +53 -0
- package/scripts/lib/markdown-assertions/corpus.mjs +222 -0
- package/scripts/lib/markdown-assertions/manifest-cull.mjs +86 -0
- package/scripts/lib/markdown-assertions/record-setup.mjs +265 -0
- package/scripts/lib/markdown-assertions/record.mjs +115 -0
- package/scripts/lib/markdown-assertions/record.vitest.config.mjs +24 -0
- package/scripts/lib/markdown-assertions/sites.mjs +273 -0
- package/scripts/lib/markdown-assertions/test-cull.mjs +768 -0
- package/scripts/lib/markdown-assertions/tokens.mjs +158 -0
- package/scripts/lib/shell-guard-trace.mjs +6 -0
- package/scripts/lib/test-access-map-setup.mjs +40 -0
- package/scripts/lib/test-access-map-tracer.mjs +205 -0
- package/scripts/lib/test-access-map.d.mts +72 -0
- package/scripts/lib/test-access-map.mjs +395 -0
- package/scripts/lib/test-timings-reporter.d.mts +17 -0
- package/scripts/lib/test-timings-reporter.mjs +99 -0
- package/scripts/plan-integration-shards.mjs +300 -0
- package/scripts/test-timing-report.d.mts +41 -0
- package/scripts/test-timing-report.mjs +361 -0
- package/scripts/two-channel-couplings.json +132 -36
- package/scripts/verify-npm-advisories-4333.mjs +3 -12
- package/typescript/copy-overwrite/.prettierignore +13 -0
- package/typescript/create-only/vitest.config.local.ts +1 -7
- package/typescript/package-lisa/package.lisa.json +4 -4
- package/all/copy-overwrite/scripts/lisa-scratch-run.sh +0 -1078
- package/dist/cli/lisa-test-run-bootstrap.d.ts +0 -3
- package/dist/cli/lisa-test-run-bootstrap.d.ts.map +0 -1
- package/dist/cli/lisa-test-run-bootstrap.js +0 -229
- package/dist/cli/lisa-test-run-bootstrap.js.map +0 -1
- package/dist/cli/lisa-test-run-ipc.d.ts +0 -49
- package/dist/cli/lisa-test-run-ipc.d.ts.map +0 -1
- package/dist/cli/lisa-test-run-ipc.js +0 -226
- package/dist/cli/lisa-test-run-ipc.js.map +0 -1
- package/dist/cli/lisa-test-run-process-group.d.ts +0 -30
- package/dist/cli/lisa-test-run-process-group.d.ts.map +0 -1
- package/dist/cli/lisa-test-run-process-group.js +0 -140
- package/dist/cli/lisa-test-run-process-group.js.map +0 -1
- package/dist/cli/lisa-test-run-reaper.d.ts +0 -3
- package/dist/cli/lisa-test-run-reaper.d.ts.map +0 -1
- package/dist/cli/lisa-test-run-reaper.js +0 -195
- package/dist/cli/lisa-test-run-reaper.js.map +0 -1
- package/dist/cli/lisa-test-run-runtime.d.ts +0 -46
- package/dist/cli/lisa-test-run-runtime.d.ts.map +0 -1
- package/dist/cli/lisa-test-run-runtime.js +0 -123
- package/dist/cli/lisa-test-run-runtime.js.map +0 -1
- package/dist/cli/lisa-test-run-supervisor.d.ts +0 -13
- package/dist/cli/lisa-test-run-supervisor.d.ts.map +0 -1
- package/dist/cli/lisa-test-run-supervisor.js +0 -265
- package/dist/cli/lisa-test-run-supervisor.js.map +0 -1
- package/dist/configs/vitest/fleet-admission-global-setup.d.ts +0 -34
- package/dist/configs/vitest/fleet-admission-global-setup.d.ts.map +0 -1
- package/dist/configs/vitest/fleet-admission-global-setup.js +0 -123
- package/dist/configs/vitest/fleet-admission-global-setup.js.map +0 -1
- package/dist/configs/vitest/fleet-admission.d.ts +0 -129
- package/dist/configs/vitest/fleet-admission.d.ts.map +0 -1
- package/dist/configs/vitest/fleet-admission.js +0 -239
- package/dist/configs/vitest/fleet-admission.js.map +0 -1
- package/dist/configs/vitest/scratch-authority.d.ts +0 -25
- package/dist/configs/vitest/scratch-authority.d.ts.map +0 -1
- package/dist/configs/vitest/scratch-authority.js +0 -107
- package/dist/configs/vitest/scratch-authority.js.map +0 -1
- package/dist/configs/vitest/scratch-bound-cleanup-programs.d.ts +0 -5
- package/dist/configs/vitest/scratch-bound-cleanup-programs.d.ts.map +0 -1
- package/dist/configs/vitest/scratch-bound-cleanup-programs.js +0 -219
- package/dist/configs/vitest/scratch-bound-cleanup-programs.js.map +0 -1
- package/dist/configs/vitest/scratch-bound-cleanup.d.ts +0 -28
- package/dist/configs/vitest/scratch-bound-cleanup.d.ts.map +0 -1
- package/dist/configs/vitest/scratch-bound-cleanup.js +0 -155
- package/dist/configs/vitest/scratch-bound-cleanup.js.map +0 -1
- package/dist/configs/vitest/scratch-bound-root-cleanup.d.ts +0 -17
- package/dist/configs/vitest/scratch-bound-root-cleanup.d.ts.map +0 -1
- package/dist/configs/vitest/scratch-bound-root-cleanup.js +0 -149
- package/dist/configs/vitest/scratch-bound-root-cleanup.js.map +0 -1
- package/dist/configs/vitest/scratch-global-setup.d.ts +0 -258
- package/dist/configs/vitest/scratch-global-setup.d.ts.map +0 -1
- package/dist/configs/vitest/scratch-global-setup.js +0 -505
- package/dist/configs/vitest/scratch-global-setup.js.map +0 -1
- package/dist/configs/vitest/scratch-leak-setup.d.ts +0 -2
- package/dist/configs/vitest/scratch-leak-setup.d.ts.map +0 -1
- package/dist/configs/vitest/scratch-leak-setup.js +0 -108
- package/dist/configs/vitest/scratch-leak-setup.js.map +0 -1
- package/dist/configs/vitest/scratch-namespace-authority.d.ts +0 -80
- package/dist/configs/vitest/scratch-namespace-authority.d.ts.map +0 -1
- package/dist/configs/vitest/scratch-namespace-authority.js +0 -291
- package/dist/configs/vitest/scratch-namespace-authority.js.map +0 -1
- package/dist/configs/vitest/scratch-owner.d.ts +0 -131
- package/dist/configs/vitest/scratch-owner.d.ts.map +0 -1
- package/dist/configs/vitest/scratch-owner.js +0 -297
- package/dist/configs/vitest/scratch-owner.js.map +0 -1
- package/dist/configs/vitest/scratch-route-profile.d.ts +0 -46
- package/dist/configs/vitest/scratch-route-profile.d.ts.map +0 -1
- package/dist/configs/vitest/scratch-route-profile.js +0 -233
- package/dist/configs/vitest/scratch-route-profile.js.map +0 -1
- package/dist/configs/vitest/scratch-run-root-compatibility.d.ts +0 -33
- package/dist/configs/vitest/scratch-run-root-compatibility.d.ts.map +0 -1
- package/dist/configs/vitest/scratch-run-root-compatibility.js +0 -137
- package/dist/configs/vitest/scratch-run-root-compatibility.js.map +0 -1
- package/dist/configs/vitest/scratch-run-root-intent.d.ts +0 -66
- package/dist/configs/vitest/scratch-run-root-intent.d.ts.map +0 -1
- package/dist/configs/vitest/scratch-run-root-intent.js +0 -183
- package/dist/configs/vitest/scratch-run-root-intent.js.map +0 -1
- package/dist/configs/vitest/scratch-setup.d.ts +0 -46
- package/dist/configs/vitest/scratch-setup.d.ts.map +0 -1
- package/dist/configs/vitest/scratch-setup.js +0 -226
- package/dist/configs/vitest/scratch-setup.js.map +0 -1
- package/dist/configs/vitest/scratch-supervision-intent.d.ts +0 -8
- package/dist/configs/vitest/scratch-supervision-intent.d.ts.map +0 -1
- package/dist/configs/vitest/scratch-supervision-intent.js +0 -125
- package/dist/configs/vitest/scratch-supervision-intent.js.map +0 -1
- package/dist/configs/vitest/scratch-supervision-protocol.d.ts +0 -12
- package/dist/configs/vitest/scratch-supervision-protocol.d.ts.map +0 -1
- package/dist/configs/vitest/scratch-supervision-protocol.js +0 -230
- package/dist/configs/vitest/scratch-supervision-protocol.js.map +0 -1
- package/dist/configs/vitest/scratch-supervision.d.ts +0 -69
- package/dist/configs/vitest/scratch-supervision.d.ts.map +0 -1
- package/dist/configs/vitest/scratch-supervision.js +0 -244
- package/dist/configs/vitest/scratch-supervision.js.map +0 -1
- package/dist/configs/vitest/scratch-sweep.d.ts +0 -66
- package/dist/configs/vitest/scratch-sweep.d.ts.map +0 -1
- package/dist/configs/vitest/scratch-sweep.js +0 -82
- package/dist/configs/vitest/scratch-sweep.js.map +0 -1
- package/dist/configs/vitest/scratch-tmpdir-trust.d.ts +0 -48
- package/dist/configs/vitest/scratch-tmpdir-trust.d.ts.map +0 -1
- package/dist/configs/vitest/scratch-tmpdir-trust.js +0 -194
- package/dist/configs/vitest/scratch-tmpdir-trust.js.map +0 -1
- package/dist/configs/vitest/scratch.d.ts +0 -19
- package/dist/configs/vitest/scratch.d.ts.map +0 -1
- package/dist/configs/vitest/scratch.js +0 -34
- package/dist/configs/vitest/scratch.js.map +0 -1
- package/dist/configs/vitest/synthesis-scratch-reclaim.d.ts +0 -86
- package/dist/configs/vitest/synthesis-scratch-reclaim.d.ts.map +0 -1
- package/dist/configs/vitest/synthesis-scratch-reclaim.js +0 -226
- package/dist/configs/vitest/synthesis-scratch-reclaim.js.map +0 -1
|
@@ -57,8 +57,22 @@ import {
|
|
|
57
57
|
recordKillMark,
|
|
58
58
|
} from "./lib/kill-marks.mjs";
|
|
59
59
|
import { boundedSpawnSync, isChildTimeout } from "./lib/bounded-spawn.mjs";
|
|
60
|
+
import { openGatePassCache } from "./lib/gate-pass-cache.mjs";
|
|
61
|
+
import {
|
|
62
|
+
PARTIAL_COVERAGE_SKIP_REASON,
|
|
63
|
+
coverageLeftToCi,
|
|
64
|
+
openSelectionReports,
|
|
65
|
+
} from "./lib/affected-tests.mjs";
|
|
66
|
+
import { BUILD_ONCE_ID, runBuildOnce } from "./lib/build-marker.mjs";
|
|
60
67
|
import { invokedAsScript } from "./lib/invoked-as-script.mjs";
|
|
61
68
|
import { runStartOfRunSweep } from "./lib/lisa-cleanup-sweep.mjs";
|
|
69
|
+
import {
|
|
70
|
+
admissionEnabled,
|
|
71
|
+
PUSH_CONTEXT,
|
|
72
|
+
withAdmission,
|
|
73
|
+
} from "./lib/push-admission.mjs";
|
|
74
|
+
import { withPushGateDefaults } from "./lib/push-gate-defaults.mjs";
|
|
75
|
+
import { hostReading, recordPushTiming } from "./lib/push-timing.mjs";
|
|
62
76
|
import { worktreeDependencyProblem } from "./lib/worktree-dependencies.mjs";
|
|
63
77
|
import {
|
|
64
78
|
interruptionReason,
|
|
@@ -219,6 +233,12 @@ export const CONDITIONAL_FLOOR = Object.freeze({
|
|
|
219
233
|
* `ATTRIBUTION`; absent unless a diagnosis attributed it.
|
|
220
234
|
* @property {string|null} provedBy The gate whose run proved this one, when
|
|
221
235
|
* they share a command. Always set: `runMoment` stamps it on every outcome.
|
|
236
|
+
* @property {string|null} [startedAt] When this gate's verdict began,
|
|
237
|
+
* ISO-8601; null when the run never reached it (#4591).
|
|
238
|
+
* @property {number} [durationMs] Time spent on this gate; 0 when a sibling's
|
|
239
|
+
* run proved it or it was never reached (#4591).
|
|
240
|
+
* @property {boolean} [cached] True when the verdict is a remembered pass for
|
|
241
|
+
* this exact content and the gate did not run (CodySwannGT/lisa#4594).
|
|
222
242
|
*/
|
|
223
243
|
|
|
224
244
|
/**
|
|
@@ -729,10 +749,33 @@ function summarise(result, priorKills = []) {
|
|
|
729
749
|
* @param {{proved: Map<string, object>, blockedBy: string|null, exec: Function}} ctx Run state.
|
|
730
750
|
* @returns {{outcome: object, shared: object|undefined, ran: boolean}} The verdict.
|
|
731
751
|
*/
|
|
732
|
-
function verdictFor(
|
|
752
|
+
function verdictFor(
|
|
753
|
+
gate,
|
|
754
|
+
{ proved, blockedBy, exec, siblings, declarations, cache }
|
|
755
|
+
) {
|
|
733
756
|
const own = classifyStatic(gate);
|
|
734
757
|
if (own) return { outcome: own, shared: undefined, ran: false };
|
|
735
758
|
|
|
759
|
+
// A remembered pass for this exact content (CodySwannGT/lisa#4594). It is a
|
|
760
|
+
// known verdict, so it is honoured even once the run is blocked, exactly as
|
|
761
|
+
// a shared result is. It is never shared onward: a sibling computes its own
|
|
762
|
+
// key, and a sibling marked `"cache": false` must run the command itself.
|
|
763
|
+
const hit = cache?.lookup(gate) ?? null;
|
|
764
|
+
if (hit) {
|
|
765
|
+
return {
|
|
766
|
+
outcome: {
|
|
767
|
+
state: STATE.PASSED,
|
|
768
|
+
detail: `CACHED PASS (${hit.key.slice(0, 12)}) ${gate.command}`,
|
|
769
|
+
code: 0,
|
|
770
|
+
diagnosis: null,
|
|
771
|
+
evidence: [],
|
|
772
|
+
cached: true,
|
|
773
|
+
},
|
|
774
|
+
shared: undefined,
|
|
775
|
+
ran: false,
|
|
776
|
+
};
|
|
777
|
+
}
|
|
778
|
+
|
|
736
779
|
const shared = gate.command ? proved.get(gate.command) : undefined;
|
|
737
780
|
if (shared) {
|
|
738
781
|
// The RAW outcome is what is shared, and each gate reads it for itself.
|
|
@@ -818,6 +861,18 @@ function verdictFor(gate, { proved, blockedBy, exec, siblings, declarations }) {
|
|
|
818
861
|
* whether the run this chain serves is still there. Injectable for the same
|
|
819
862
|
* reason `exec` is: a test states that the caller went away instead of having
|
|
820
863
|
* to kill a real hook mid-chain.
|
|
864
|
+
* @param {() => number} [options.clock] Epoch-ms clock used to time each gate
|
|
865
|
+
* for the push timing report (CodySwannGT/lisa#4591). Injectable so a test
|
|
866
|
+
* states durations instead of racing a real clock.
|
|
867
|
+
* @param {{lookup: (gate: GateOutcome) => ({key: string}|null), remember: (gate: GateOutcome, durationMs: number|null) => void, commit: () => void}|null} [options.cache]
|
|
868
|
+
* The push-gate pass cache from `openGatePassCache`, or null for none. A
|
|
869
|
+
* lookup hit reports `CACHED PASS` without running; only full passes are
|
|
870
|
+
* handed to `remember`, and `commit` writes them once the run is over.
|
|
871
|
+
* @param {{read: (command: string) => ({selection?: string, coverage?: string}|null)}|null} [options.selection]
|
|
872
|
+
* What each command reported about the tests it selected, from
|
|
873
|
+
* `openSelectionReports` (CodySwannGT/lisa#4600), or null for none. A
|
|
874
|
+
* partial selection is never remembered by the cache, and one run with
|
|
875
|
+
* coverage off reports coverage-adequacy SKIPPED.
|
|
821
876
|
* @returns {GateRun} What every declared gate at this moment produced.
|
|
822
877
|
*/
|
|
823
878
|
export function runGates({
|
|
@@ -830,6 +885,9 @@ export function runGates({
|
|
|
830
885
|
priorKills = recentKillMarks(),
|
|
831
886
|
recordKill = recordKillMark,
|
|
832
887
|
interrupted = runInterruption,
|
|
888
|
+
clock = Date.now,
|
|
889
|
+
cache = null,
|
|
890
|
+
selection = null,
|
|
833
891
|
}) {
|
|
834
892
|
const resolved = resolveMoment({ gates, moment, runner, scripts });
|
|
835
893
|
const results = [];
|
|
@@ -901,17 +959,42 @@ export function runGates({
|
|
|
901
959
|
diagnosis: null,
|
|
902
960
|
evidence: [],
|
|
903
961
|
provedBy: null,
|
|
962
|
+
startedAt: null,
|
|
963
|
+
durationMs: 0,
|
|
904
964
|
});
|
|
905
965
|
out(formatLine(STATE.NOT_RUN, gate, detail));
|
|
906
966
|
continue;
|
|
907
967
|
}
|
|
908
|
-
const
|
|
968
|
+
const began = clock();
|
|
969
|
+
const verdict = verdictFor(gate, {
|
|
909
970
|
proved,
|
|
910
971
|
blockedBy,
|
|
911
972
|
exec,
|
|
912
973
|
siblings: sharers.get(gate.command) ?? new Set(),
|
|
913
974
|
declarations: declaredShapes.get(gate.command) ?? [],
|
|
975
|
+
cache,
|
|
914
976
|
});
|
|
977
|
+
const { shared, ran, raw } = verdict;
|
|
978
|
+
// What the command said it selected (CodySwannGT/lisa#4600). A partial
|
|
979
|
+
// selection is never remembered as a pass, and with coverage switched off
|
|
980
|
+
// coverage-adequacy reports SKIPPED: its property was not measured here,
|
|
981
|
+
// and CI's full run enforces it before merge.
|
|
982
|
+
const report =
|
|
983
|
+
gate.command && !verdict.outcome.cached
|
|
984
|
+
? (selection?.read(gate.command) ?? null)
|
|
985
|
+
: null;
|
|
986
|
+
const outcome = coverageLeftToCi(gate, report)
|
|
987
|
+
? {
|
|
988
|
+
state: STATE.SKIPPED,
|
|
989
|
+
detail: `${PARTIAL_COVERAGE_SKIP_REASON} (${gate.command})`,
|
|
990
|
+
code: null,
|
|
991
|
+
diagnosis: null,
|
|
992
|
+
evidence: [],
|
|
993
|
+
}
|
|
994
|
+
: verdict.outcome;
|
|
995
|
+
// One end reading per gate: the timing report and the pass cache share it.
|
|
996
|
+
const elapsedMs = Math.max(0, clock() - began);
|
|
997
|
+
const durationMs = ran ? elapsedMs : shared?.durationMs;
|
|
915
998
|
|
|
916
999
|
// Only what this iteration actually executed is shareable, and `ran` says
|
|
917
1000
|
// so explicitly rather than being inferred from the exit code. `execute`
|
|
@@ -920,10 +1003,34 @@ export function runGates({
|
|
|
920
1003
|
// next gate to run it again — re-running a whole suite an operator has
|
|
921
1004
|
// just interrupted.
|
|
922
1005
|
if (ran && gate.command) {
|
|
923
|
-
proved.set(gate.command, {
|
|
1006
|
+
proved.set(gate.command, {
|
|
1007
|
+
id: gate.id,
|
|
1008
|
+
outcome: raw ?? outcome,
|
|
1009
|
+
durationMs,
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
1012
|
+
// Only a FULL pass is remembered: this gate's own verdict passed, and so
|
|
1013
|
+
// did the run that produced it — never a pass read off a shared prover
|
|
1014
|
+
// whose own outcome was anything else. Written after the run, by `commit`.
|
|
1015
|
+
const source = ran ? raw : shared?.outcome;
|
|
1016
|
+
if (
|
|
1017
|
+
cache &&
|
|
1018
|
+
report?.selection !== "partial" &&
|
|
1019
|
+
outcome.state === STATE.PASSED &&
|
|
1020
|
+
!outcome.cached &&
|
|
1021
|
+
source?.state === STATE.PASSED
|
|
1022
|
+
) {
|
|
1023
|
+
cache.remember(gate, durationMs ?? null);
|
|
924
1024
|
}
|
|
925
1025
|
|
|
926
|
-
|
|
1026
|
+
// A gate proved by a sibling's run takes no time of its own.
|
|
1027
|
+
results.push({
|
|
1028
|
+
...gate,
|
|
1029
|
+
...outcome,
|
|
1030
|
+
provedBy: shared?.id ?? null,
|
|
1031
|
+
startedAt: new Date(began).toISOString(),
|
|
1032
|
+
durationMs: shared ? 0 : elapsedMs,
|
|
1033
|
+
});
|
|
927
1034
|
out(formatLine(outcome.state, gate, outcome.detail));
|
|
928
1035
|
for (const line of outcome.evidence ?? []) out(`${" ".repeat(6)}↳ ${line}`);
|
|
929
1036
|
const unproved =
|
|
@@ -942,6 +1049,7 @@ export function runGates({
|
|
|
942
1049
|
// next iteration to observe it, and an optional gate cannot block on its own.
|
|
943
1050
|
// Record the interruption before this result can claim completion.
|
|
944
1051
|
interruption ??= interrupted();
|
|
1052
|
+
cache?.commit();
|
|
945
1053
|
|
|
946
1054
|
const bucket = state => results.filter(entry => entry.state === state);
|
|
947
1055
|
const result = {
|
|
@@ -975,6 +1083,12 @@ export function runGates({
|
|
|
975
1083
|
recordKill({ kind: STATE.KILLED, gateId: entry.id });
|
|
976
1084
|
}
|
|
977
1085
|
for (const line of summarise(result, priorKills)) out(line);
|
|
1086
|
+
const cached = result.passed.filter(entry => entry.cached).length;
|
|
1087
|
+
if (cached) {
|
|
1088
|
+
out(
|
|
1089
|
+
` ${cached} of those proved by a remembered pass for this exact tree.`
|
|
1090
|
+
);
|
|
1091
|
+
}
|
|
978
1092
|
return result;
|
|
979
1093
|
}
|
|
980
1094
|
|
|
@@ -1585,7 +1699,10 @@ export function main(argv = process.argv.slice(2)) {
|
|
|
1585
1699
|
// Taken before anything runs. See `evidenceDocument`: a start stamp makes a
|
|
1586
1700
|
// freshness bound err toward `unknown` rather than toward crediting a stale
|
|
1587
1701
|
// observation, which is the only direction a gate may err in.
|
|
1588
|
-
const
|
|
1702
|
+
const startedAtMs = Date.now();
|
|
1703
|
+
const observedAt = new Date(startedAtMs).toISOString();
|
|
1704
|
+
// Host load at the START of the run, for the push timing report (#4591).
|
|
1705
|
+
const startReading = hostReading();
|
|
1589
1706
|
if (!moment) {
|
|
1590
1707
|
console.error(
|
|
1591
1708
|
"usage: lisa-run-gates.mjs --moment=<moment> [--coverage=<file>] " +
|
|
@@ -1716,12 +1833,28 @@ export function main(argv = process.argv.slice(2)) {
|
|
|
1716
1833
|
);
|
|
1717
1834
|
}
|
|
1718
1835
|
|
|
1836
|
+
// The stack's push-gate defaults (CodySwannGT/lisa#4611): a TypeScript host
|
|
1837
|
+
// gets the pass cache, admission and affected tests without declaring them,
|
|
1838
|
+
// and anything it does declare, `false` included, wins.
|
|
1839
|
+
const pushConfig = withPushGateDefaults(config.config, process.cwd());
|
|
1840
|
+
|
|
1719
1841
|
const wired = wiredConditionalFloor({ moment });
|
|
1720
1842
|
const missing = undeclaredFloor({ gates: config.gates, moment, wired });
|
|
1721
1843
|
|
|
1722
1844
|
// One cleanup sweep per push (CodySwannGT/lisa#4597), before the first gate
|
|
1723
1845
|
// and before the built-in fallback below, which runs tests too. It never
|
|
1724
1846
|
// fails the run: whatever goes wrong is printed and the gates run.
|
|
1847
|
+
// Opened before the sweep, and only at push. Off unless the project set
|
|
1848
|
+
// `pushGate.cache: true`, and then silent and inert (CodySwannGT/lisa#4594).
|
|
1849
|
+
const cache =
|
|
1850
|
+
moment === "push"
|
|
1851
|
+
? openGatePassCache({
|
|
1852
|
+
config: pushConfig,
|
|
1853
|
+
gates: config.gates,
|
|
1854
|
+
moment,
|
|
1855
|
+
out: line => console.log(line),
|
|
1856
|
+
})
|
|
1857
|
+
: null;
|
|
1725
1858
|
if (moment === "push") {
|
|
1726
1859
|
try {
|
|
1727
1860
|
runStartOfRunSweep();
|
|
@@ -1766,12 +1899,92 @@ export function main(argv = process.argv.slice(2)) {
|
|
|
1766
1899
|
});
|
|
1767
1900
|
}
|
|
1768
1901
|
|
|
1902
|
+
// Heavy push steps go through headroom admission when the project opted in
|
|
1903
|
+
// with `pushGate.admission` (CodySwannGT/lisa#4596). Off, `exec` is
|
|
1904
|
+
// `spawnExec` itself and every step starts immediately as before.
|
|
1905
|
+
let exec = spawnExec;
|
|
1906
|
+
if (moment === "push") {
|
|
1907
|
+
// Inherited by every gate, so `lisa admit` and `lisa-test-run` apply the
|
|
1908
|
+
// short in-push wait bound rather than the standalone one.
|
|
1909
|
+
process.env.LISA_ADMISSION_CONTEXT = PUSH_CONTEXT;
|
|
1910
|
+
try {
|
|
1911
|
+
exec = withAdmission(spawnExec, {
|
|
1912
|
+
enabled: admissionEnabled(pushConfig),
|
|
1913
|
+
});
|
|
1914
|
+
} catch (err) {
|
|
1915
|
+
console.error(`🚫 Nothing ran at "push": ${err.message}`);
|
|
1916
|
+
console.error(
|
|
1917
|
+
" Fix pushGate in .lisa.config.json. This is NOT a pass."
|
|
1918
|
+
);
|
|
1919
|
+
return settle(EXIT.BLOCKED, EVIDENCE_VERDICT.REFUSED, {
|
|
1920
|
+
gates: config.gates,
|
|
1921
|
+
runner: config.runner,
|
|
1922
|
+
scripts,
|
|
1923
|
+
});
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
// Build once, before the first push gate, when the project opted in with
|
|
1928
|
+
// `pushGate.buildOnce` (CodySwannGT/lisa#4595). `buildOnceStep` is the entry
|
|
1929
|
+
// for the push timing report; null means the push builds exactly as before.
|
|
1930
|
+
let buildOnceStep = null;
|
|
1931
|
+
if (moment === "push") {
|
|
1932
|
+
try {
|
|
1933
|
+
buildOnceStep = runBuildOnce({
|
|
1934
|
+
config: pushConfig,
|
|
1935
|
+
runner: config.runner,
|
|
1936
|
+
scripts,
|
|
1937
|
+
exec: command => exec(command, { id: BUILD_ONCE_ID }),
|
|
1938
|
+
});
|
|
1939
|
+
} catch (err) {
|
|
1940
|
+
console.error(`🚫 Nothing ran at "push": ${err.message}`);
|
|
1941
|
+
console.error(
|
|
1942
|
+
" Fix pushGate in .lisa.config.json. This is NOT a pass."
|
|
1943
|
+
);
|
|
1944
|
+
return settle(EXIT.BLOCKED, EVIDENCE_VERDICT.REFUSED, {
|
|
1945
|
+
gates: config.gates,
|
|
1946
|
+
runner: config.runner,
|
|
1947
|
+
scripts,
|
|
1948
|
+
});
|
|
1949
|
+
}
|
|
1950
|
+
if (buildOnceStep) {
|
|
1951
|
+
const seconds = (buildOnceStep.durationMs / 1000).toFixed(1);
|
|
1952
|
+
if (buildOnceStep.state !== STATE.PASSED) {
|
|
1953
|
+
console.error(
|
|
1954
|
+
`❌ build-once: \`${buildOnceStep.command}\` failed (exit ` +
|
|
1955
|
+
`${buildOnceStep.code}) after ${seconds}s; no push gate ran.`
|
|
1956
|
+
);
|
|
1957
|
+
return settle(EXIT.BLOCKED, EVIDENCE_VERDICT.BLOCKED, {
|
|
1958
|
+
gates: config.gates,
|
|
1959
|
+
runner: config.runner,
|
|
1960
|
+
scripts,
|
|
1961
|
+
});
|
|
1962
|
+
}
|
|
1963
|
+
console.log(
|
|
1964
|
+
`🔨 build-once: \`${buildOnceStep.command}\` built in ${seconds}s; ` +
|
|
1965
|
+
`later steps skip their build while the tree matches.`
|
|
1966
|
+
);
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1769
1970
|
console.log(`🚦 Gates at ${moment}:`);
|
|
1971
|
+
// At push a test command may narrow itself to the affected tests
|
|
1972
|
+
// (CodySwannGT/lisa#4600) and says so through this channel.
|
|
1973
|
+
const selection = moment === "push" ? openSelectionReports() : null;
|
|
1770
1974
|
const result = runGates({
|
|
1771
1975
|
gates: config.gates,
|
|
1772
1976
|
moment,
|
|
1773
1977
|
runner: config.runner,
|
|
1774
|
-
exec
|
|
1978
|
+
// Selection reporting wraps the admission-aware `exec`, so a narrowed
|
|
1979
|
+
// test command is still admitted like any other heavy step.
|
|
1980
|
+
exec: selection
|
|
1981
|
+
? (command, gate) => {
|
|
1982
|
+
selection.before(command);
|
|
1983
|
+
return exec(command, gate);
|
|
1984
|
+
}
|
|
1985
|
+
: exec,
|
|
1986
|
+
cache,
|
|
1987
|
+
selection,
|
|
1775
1988
|
// The manifest is read HERE and handed down, rather than read inside the
|
|
1776
1989
|
// resolver, so that `runGates` stays a pure function of its inputs and
|
|
1777
1990
|
// every test above can state what this project ships instead of writing a
|
|
@@ -1779,12 +1992,24 @@ export function main(argv = process.argv.slice(2)) {
|
|
|
1779
1992
|
// check and the run cannot disagree about what this project ships.
|
|
1780
1993
|
scripts,
|
|
1781
1994
|
});
|
|
1995
|
+
selection?.close();
|
|
1782
1996
|
// A gates block that declares nothing at this moment is a deliberate
|
|
1783
1997
|
// statement, not an unmigrated project: the registry governs the moment and
|
|
1784
1998
|
// says there is nothing to prove. Say so rather than silently passing.
|
|
1785
1999
|
if (result.total === 0) {
|
|
1786
2000
|
console.log(` (the gates block declares nothing at ${moment})`);
|
|
1787
2001
|
}
|
|
2002
|
+
// Per-gate push timing report (CodySwannGT/lisa#4591). A measurement only:
|
|
2003
|
+
// it never throws and never changes the exit code below.
|
|
2004
|
+
if (moment === "push" && result.total > 0) {
|
|
2005
|
+
recordPushTiming({
|
|
2006
|
+
moment,
|
|
2007
|
+
startedAtMs,
|
|
2008
|
+
start: startReading,
|
|
2009
|
+
result,
|
|
2010
|
+
preGates: buildOnceStep ? [buildOnceStep] : [],
|
|
2011
|
+
});
|
|
2012
|
+
}
|
|
1788
2013
|
|
|
1789
2014
|
// WRITTEN AFTER THE RUN, because it reports the run. Written before it, the
|
|
1790
2015
|
// file said what the project DECLARED, and the hook that reads it stands its
|