Skip to content

test(v1.8.3): live ecosystem e2e + roadmap closure sync#51

Merged
lopadova merged 2 commits into
mainfrom
task/v1.8.3-ecosystem-finalize
May 20, 2026
Merged

test(v1.8.3): live ecosystem e2e + roadmap closure sync#51
lopadova merged 2 commits into
mainfrom
task/v1.8.3-ecosystem-finalize

Conversation

@lopadova
Copy link
Copy Markdown
Contributor

Summary

  • add a live ecosystem e2e stack bootstrap (scripts/ecosystem-stack.mjs)
  • add dedicated Playwright config + test for end-to-end live audit verification
  • wire root/admin scripts for �2e:ecosystem
  • mark v1.x roadmap closure in docs/PROGRESS.md and capture lessons in docs/LESSON.md

Validation

  • �un run typecheck
  • �un run lint
  • �un run build
  • �un run e2e:ecosystem

Notes

  • �un test currently fails in this repo on existing Node test .skip() incompatibility under Bun (NotImplementedError), unrelated to this change set.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d7f018a969

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +78 to +82
const sut = spawn('bun', ['run', 'src/server.ts'], {
cwd: FIXTURE,
env: { ...process.env, PORT: String(SUT_PORT) },
stdio: ['ignore', 'pipe', 'pipe'],
windowsHide: true,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Install fixture deps before launching the Bun SUT

Starting the SUT before bun install makes the ecosystem smoke fail on clean environments where examples/bun-api has no node_modules: bun run src/server.ts cannot resolve hono, exits, and then the sut.on('exit') path aborts the whole stack. Because dependency installation happens later (mustOk('bun', ['install'], FIXTURE)), bun run e2e:ecosystem is brittle and can fail before the admin/API bridge is even up.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a “live ecosystem” end-to-end smoke that boots a real SUT (examples/bun-api), runs aqa run --profile smoke to generate artifacts, serves the Admin against a live in-memory @aqa/server API, and verifies the audit chain UI via Playwright.

Changes:

  • Add scripts/ecosystem-stack.mjs to bootstrap the live stack (SUT + run artifacts + API bridge + Admin dev server).
  • Add a dedicated Playwright config + e2e spec to validate finding_emitted visibility and chain verification.
  • Wire new e2e:ecosystem scripts at root and admin, and update roadmap/lessons docs.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
scripts/ecosystem-stack.mjs New stack bootstrap script that runs a real CLI smoke, seeds MemoryStore, serves makeApi(), and boots the admin dev server.
packages/admin/test/e2e/ecosystem-live.e2e.ts New Playwright test that navigates to Audit log and verifies chain success on live audit data.
packages/admin/playwright.ecosystem.config.ts Dedicated Playwright config that starts the full stack as a webServer dependency.
packages/admin/package.json Adds test:e2e:ecosystem script.
package.json Adds root e2e:ecosystem entry point.
docs/PROGRESS.md Records v1.x roadmap closure and the new ecosystem live e2e.
docs/LESSON.md Captures lessons about CORS + audit event ordering for live admin e2e stability.

Comment on lines +78 to +83
const sut = spawn('bun', ['run', 'src/server.ts'], {
cwd: FIXTURE,
env: { ...process.env, PORT: String(SUT_PORT) },
stdio: ['ignore', 'pipe', 'pipe'],
windowsHide: true,
});
Comment on lines +97 to +103
mustOk('bun', ['install'], FIXTURE);
if (!sutReady) {
const start = Date.now();
while (!sutReady && Date.now() - start < 10_000) {
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 100);
}
}
}
}

mustOk('node', [AQA_BIN, 'init', '--silent'], FIXTURE);
@lopadova lopadova requested a review from Copilot May 20, 2026 11:28
@lopadova lopadova merged commit 374b2e3 into main May 20, 2026
15 of 16 checks passed
@lopadova lopadova deleted the task/v1.8.3-ecosystem-finalize branch May 20, 2026 11:33
@lopadova lopadova review requested due to automatic review settings May 20, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants