Skip to content

fix: port standalone dev/test fixes from the redesign branch - #73

Merged
ajbozarth merged 2 commits into
generative-computing:mainfrom
ajbozarth:fix/dev-origin-and-e2e-retries
Jul 30, 2026
Merged

fix: port standalone dev/test fixes from the redesign branch#73
ajbozarth merged 2 commits into
generative-computing:mainfrom
ajbozarth:fix/dev-origin-and-e2e-retries

Conversation

@ajbozarth

Copy link
Copy Markdown
Contributor

Two independent fixes that were made on the redesign branch (#67) but apply cleanly to main on their own. Pulling them over as standalone changes since the redesign is on indefinite hold.

Changes

  • next.config.mjs — replace the hardcoded LAN IP in allowedDevOrigins (committed from on-device testing) with a NEXT_DEV_ORIGIN env var. Contributors can point it at their own machine's LAN IP, or leave it unset, without editing the config.
  • playwright.config.ts — add retries (2 in CI, 1 locally) so hydration races and cold-compile timeouts don't red an otherwise-passing e2e suite. This also makes the existing trace: 'on-first-retry' actually capture a trace.

Notes

Ported from the redesign branch (#67). No behavior change on the site itself — both are dev/CI ergonomics.

Two independent fixes made on the redesign branch that apply cleanly to main,
pulled over as the redesign is on indefinite hold:

- next.config.mjs: replace the hardcoded LAN IP in allowedDevOrigins (committed
  from on-device testing) with a NEXT_DEV_ORIGIN env var, so contributors point
  it at their own machine or leave it empty without editing the config.
- playwright.config.ts: add retries (2 in CI, 1 locally) so hydration races and
  cold-compile timeouts don't red an otherwise-passing suite; this also makes
  the existing trace: 'on-first-retry' actually capture a trace.

Ported from the redesign branch (generative-computing#67).

Assisted-by: Claude Code
Signed-off-by: Alex Bozarth <ajbozart@us.ibm.com>
@ajbozarth
ajbozarth requested a review from a team as a code owner July 27, 2026 21:31
@ajbozarth
ajbozarth enabled auto-merge July 27, 2026 21:32
@ajbozarth

Copy link
Copy Markdown
Contributor Author

I set to auto-merge once this gets an approval since its a minor test/dev fix

Comment thread playwright.config.ts Outdated
Assisted-by: Claude Code
Signed-off-by: Alex Bozarth <ajbozart@us.ibm.com>
@ajbozarth ajbozarth self-assigned this Jul 28, 2026

@planetf1 planetf1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the fix — is exactly right.

@ajbozarth
ajbozarth added this pull request to the merge queue Jul 30, 2026

@planetf1 planetf1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the fix — retries: process.env.CI ? 2 : 0 is exactly right.

Merged via the queue into generative-computing:main with commit 5af8070 Jul 30, 2026
7 checks passed
@ajbozarth
ajbozarth deleted the fix/dev-origin-and-e2e-retries branch July 30, 2026 07:45
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