Skip to content

Local Build env vars should NOT be set on the global process#10538

Open
falahat wants to merge 18 commits into
mainfrom
local_build_fix_envvars
Open

Local Build env vars should NOT be set on the global process#10538
falahat wants to merge 18 commits into
mainfrom
local_build_fix_envvars

Conversation

@falahat
Copy link
Copy Markdown
Contributor

@falahat falahat commented May 20, 2026

Description

Instead of modifying process.env, this sets env vars on the child process that runs universal maker.

Scenarios Tested

Performed a local build

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors environment variable handling during local builds by passing them explicitly through function arguments instead of mutating the global process.env. Feedback focuses on improving type safety by using NodeJS.ProcessEnv instead of generic records and replacing any types in test stubs with proper TypeScript definitions to align with the repository's style guide.

Comment thread src/apphosting/localbuilds.ts Outdated
Comment thread src/apphosting/localbuilds.ts Outdated
Comment thread src/apphosting/localbuilds.ts Outdated
Comment thread src/apphosting/localbuilds.spec.ts
Comment thread src/apphosting/localbuilds.spec.ts
@falahat falahat requested a review from Yuangwang May 26, 2026 18:56
Base automatically changed from fix_angular to main May 27, 2026 17:54
@falahat falahat marked this pull request as ready for review May 27, 2026 18:00
# Conflicts:
#	src/deploy/apphosting/util.spec.ts
#	src/deploy/apphosting/util.ts
@falahat falahat requested a review from abhis3 May 27, 2026 18:06
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