Repository navigation
Conversation
The op runner, the executor and five lexicon plugins imported workspace code statically, so a plain project's build, lint, graph, audit and run list loaded it. Each now loads it where it is used: - op-waves-evidence imports the evidence signer when a wave reads or signs evidence; the runner key and identity variable names move to ci-evidence-claims. - local-executor reads the workspace run citation when an Op runs. - the aws, helm and k8s plugins import their member reader only for a member; the last-read report lives in member-report.ts. - otel's workspaceLinks hook loads its reader on call; the hook may now return a promise. - terraform's composed group loads the cloud identity reader when it runs. A unit test walks the static imports of the level-0 handlers and those plugins and fails on any workspace module.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5219
A plain project loads no workspace module again. Each module named below now loads where it is used.
op-waves-evidence.tsimports the evidence signer withimport()when a wave reads or signs evidence.CHECK_EVIDENCE_KEY_ENVandRUNNER_IDENTITY_ENVmove toci-evidence-claims.ts, which imports only node modules.local-executor.tsloadsworkspace-run-envwhen an Op runs.member-report.ts, whichworkspace-member.tsre-exports. Each plugin imports the reader only when a member is configured.workspaceLinksloads its reader when called.LexiconPlugin.workspaceLinksmay now return a promise, and its one caller inworkspace/lexicon-outputs.tsawaits it inside the sametry.The issue named the evidence signer. Fixing only that left the level-0 e2e failing on the other chains above.
packages/core/src/cli/level0-imports.test.tsis a new unit guard. It builds an esbuild metafile from the level-0 handlers and the five plugins, then walks the static imports with the harness's rule. It names the chain when it fails on the old code. It runs in about 200 ms, so a new leak shows on a pull request without the e2e project.The pulumi and sql plugins still import workspace modules statically, and no golden example loads either lexicon. They are left for a follow-up issue.
level0-goldensandlineage-lockwent from 21 failed and 19 passed to 3 failed and 37 passed. The three left are the golden drifts that #5224 fixes. The other gate steps pass, and the repo-wide typecheck has no regressions. The test step failed under load at a load average above 50, with failures over the unit-test budget (#5221) and four timing tests in other files, and those files pass on their own.