Skip to content

PHOENIX-7981 Site build improvements - #38

Merged
apurtell merged 2 commits into
apache:asf-sitefrom
apurtell:PHOENIX-7981
Aug 5, 2026
Merged

PHOENIX-7981 Site build improvements#38
apurtell merged 2 commits into
apache:asf-sitefrom
apurtell:PHOENIX-7981

Conversation

@apurtell

@apurtell apurtell commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.

build.sh: Enforce the project’s required Node 22 runtime. If Node or
npm are missing or a different Node major is active, install and switch
to Node 22 through nvm. This avoids incompatibilities with the current
Playwright dependency.

unit-tests/setup.ts: Provide an in-memory localStorage implementation
when the test environment lacks one. This prevents UI tests from
failing Node versions where the experimental localStorage is disabled.

Co-authored-by: GPT-5.6 Terra Medium <cursoragent@cursor.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR improves build reliability and unit test execution by ensuring a consistent Node.js major version during site builds and by providing a localStorage fallback for the Vitest happy-dom environment.

Changes:

  • Add a localStorage polyfill in the unit test setup for environments where it is missing.
  • Update build.sh to bootstrap via nvm when the installed Node.js major version does not match the required major version.

Reviewed changes

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

File Description
unit-tests/setup.ts Adds a localStorage polyfill for the Vitest runtime and adjusts test setup behavior.
build.sh Enforces required Node.js major version and improves nvm sourcing/bootstrapping logic.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread build.sh
Comment thread unit-tests/setup.ts Outdated
Comment thread unit-tests/setup.ts
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@apurtell
apurtell merged commit 2a862f2 into apache:asf-site Aug 5, 2026
@apurtell
apurtell deleted the PHOENIX-7981 branch August 5, 2026 00:19
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.

3 participants