Skip to content

ci: run Next.js adapter integration suite against harper PRs (downstream gate)#1385

Draft
kriszyp wants to merge 1 commit into
mainfrom
kris/nextjs-caller-ci
Draft

ci: run Next.js adapter integration suite against harper PRs (downstream gate)#1385
kriszyp wants to merge 1 commit into
mainfrom
kris/nextjs-caller-ci

Conversation

@kriszyp

@kriszyp kriszyp commented Jun 18, 2026

Copy link
Copy Markdown
Member

What

Adds .github/workflows/integration-tests-nextjs.yml — a caller workflow that runs the @harperfast/nextjs adapter's Playwright integration suite against this PR's harper build. When a harper PR touches the HTTP / cache / resource / server paths the adapter exercises, it calls the reusable workflow in HarperFast/nextjs, passing the PR head SHA as harper_ref; that workflow checks out + builds harper at the ref and resolves it as the harper the harness and fixtures run against.

This is the harper side of the cross-repo regression loop — the counterpart to the parameterized workflow_call added in HarperFast/nextjs#49. Framework hosting is owned by the nextjs repo (per the Harper Release Testing Strategy's multi-repo topology), so this gate keeps harper from silently breaking it.

⚠️ Merge ordering / before-merge

Generated by a Claude (Opus 4.8) session on Kris's behalf.

Closes the regression loop from the nextjs side: when a harper PR touches the
HTTP/cache/resource/server paths, call HarperFast/nextjs's reusable integration
workflow with harper_ref = this PR's head SHA, so the adapter's Playwright suite
runs against the in-PR harper build.

Depends on HarperFast/nextjs#49 (the workflow_call + harper_ref input). Pin the
@main ref to the #49 merge SHA before merging.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

jobs:
nextjs-integration:
name: Next.js adapter integration (against this PR's harper)
uses: HarperFast/nextjs/.github/workflows/integration-tests.yml@main # TODO: pin to nextjs#49 merge SHA before merging

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Blocker — mutable @main ref not caught by the repo's validator.

validate-caller-workflows.yml only covers claude-*.yml files, so this workflow bypasses the SHA-pinning check entirely. The @main ref means any push to HarperFast/nextjs main can silently change what CI code runs against harper PRs — an unguarded supply-chain injection vector.

The PR body already tracks this as a pre-merge TODO ("replace the mutable @main ref below with the 40-char merge-commit SHA of nextjs#49"). Do that before lifting the draft — this should not land with @main.

Suggested change
uses: HarperFast/nextjs/.github/workflows/integration-tests.yml@main # TODO: pin to nextjs#49 merge SHA before merging
uses: HarperFast/nextjs/.github/workflows/integration-tests.yml@<40-char-SHA-of-nextjs#49-merge-commit>

@claude

claude Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

One blocker: the uses: HarperFast/nextjs/…@main ref is mutable and not caught by validate-caller-workflows.yml (which only covers claude-*.yml files). Pin to the 40-char merge-commit SHA of nextjs#49 before lifting the draft — see inline.

kriszyp added a commit to HarperFast/nextjs that referenced this pull request Jun 19, 2026
- next-16-secrets.pw.ts: use auto-retrying toHaveText assertion instead of
  innerText() + toBe (avoids hydration/render-delay flakiness)
- rename next-16-{coexist,secrets}/next.config.ts -> .mjs (pure-JS fixtures;
  avoids TypeScript install prompt, matches next-16-caching convention)
- remove .github/workflows/CALLER-SNIPPET.md: the caller workflow now lives in
  HarperFast/harper#1385

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant