Skip to content

pulumi-member test fixture is hand-written #4507

Closed

Description

@lex00

lexicons/pulumi/src/testdata/pulumi-member/stack-export.json is hand-written ("magic": "x", v3.100.0) and has no README saying so. Record it from a real plunge run on the pinned floci, and add a README naming the tool, version, corpus commit and date.

Follow-up from epic:engine-ship's round-1 audit (2026-10-26).

Activity

  1. added
    epic:engine-ship
    on Oct 26, 2026
  2. lex00 commented on Oct 26, 2026

    @lex00
    ContributorAuthor

    Epic-ready recording (epic:engine-ship round 2): merged into integration/engine-ship as 280be4e (branch unit/es2-chant-4507).

    lexicons/pulumi/src/testdata/pulumi-member/stack-export.json is now the stdout of plunge stack export --stack dev after one real plunge up of a new program in pulumi-member/recording/ (project app, stack dev):

    • plunge v0.1.0-dev.0 (pulumi-compatible v3.272.0, the manifest's version) built from INTENTIUS/plunge integration/engine-ship d7653de7f5;
    • pulumi-aws 7.51.1, @pulumi/pulumi 3.272.0;
    • pinned floci ghcr.io/lex00/floci@sha256:5ec92ae8046445d62c0009590dd09f04560886e5a5ef31248cb3fcc09b2961ec, plunge+file:// backend in a scratch dir, fake keys, every endpoint on localhost:4566;
    • recorded 2026-10-26; the stack was destroyed afterwards.

    The program declares an s3 Bucket assets, an iam Role web, an iam RolePolicy webReadsAssets depending on both (its policy is a secret, so the export holds ciphertext), and a my:mod:Web component web-app whose child is a Lambda Function handler depending on the role. floci served Lambda, so the child is a real Lambda function. The program is JavaScript (index.js): lexicons/pulumi's tsconfigs include all of src/, and a TypeScript program there would fail tsc on its @pulumi/* imports. pulumi-member/README.md names the tool, versions, image digest, date and the exact commands.

    The node ids and counts are the same as the hand-written file's (five nodes, the same four edges, stack dev), so run.test.ts and plugin.test.ts needed no change. The hand-written file's dangling dependency on a bucket elsewhere was what the test "a dependency outside the export ... is not an edge" relied on; that case is now its own test in workspace-member.test.ts, built from a copy of the recorded export with the extra dependency added in a temp dir.

    Tests: npx vitest run lexicons/pulumi/src/workspace-member.test.ts lexicons/pulumi/src/run.test.ts lexicons/pulumi/src/plugin.test.ts after npm ci and scripts/ci-lexicon-artifacts.sh --steps generate,bundle: 3 files, 26 tests passed.

    Two plunge findings from the run, for plunge issues:

    • Without PLUNGE_CLOUDCONTROL_ENDPOINT, plunge's Cloud Control marker listing and sweep go to AWS's real Cloud Control endpoint even when every provider endpoint points at an emulator. My first plunge up (and round 1's recording in rec-4475) did that with the fake test keys and got UnrecognizedClientException. That run was destroyed and re-recorded with PLUNGE_CLOUDCONTROL_ENDPOINT=http://localhost:4566, and the README's commands set it.
    • With the endpoint set, plunge up warned that the Lambda function arn:aws:lambda:...:function:rec-r2-4507-handler is an unrecorded marked object, though the stack records it as rec-r2-4507-handler: the lister's identifier looks like it is not translated to the pulumi-aws id for Lambda.

    Left open for epic-ready's close-out.

  3. lex00 commented on Oct 26, 2026

    @lex00
    ContributorAuthor

    Epic-ready (epic:engine-ship round 2, 2026-10-26): closing. Merge 280be4e records stack-export.json from a real plunge up and plunge stack export --stack dev on the pinned floci with a plunge+file:// backend, and adds pulumi-member/README.md naming the tool, versions, image digest, date and commands. workspace-member.test.ts (6), run.test.ts (14) and plugin.test.ts (6) in lexicons/pulumi passed on 280be4e. The README's commands set PLUNGE_CLOUDCONTROL_ENDPOINT=http://localhost:4566. Without it plunge sends its Cloud Control listing to real AWS (plunge#27). The Lambda ARN finding is plunge#28.

    chant main is 9b8fa99, the merge of integration/engine-ship with its tree equal to the tested tip 280be4e. Epic-ready on 280be4e: npm ci, scripts/ci-lexicon-artifacts.sh --steps generate,bundle, npx tsx scripts/typecheck.ts with no regressions (26 baselined), and npx vitest run --project unit with 29365 passed and 2 failed, both 5s budget overruns under load with no assertion failure (#4472). Push CI on main 9b8fa99 passed: chant run 40407754959 (check and the four unit shards).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic:engine-ship

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions