Skip to content

feat(functions): support seedEnv in kit installation and instance configuration - #11012

Merged
inlined merged 9 commits into
mainfrom
feat_kit_seed_env_skip_report
Sep 1, 2026
Merged

feat(functions): support seedEnv in kit installation and instance configuration#11012
inlined merged 9 commits into
mainfrom
feat_kit_seed_env_skip_report

Conversation

@inlined

@inlined inlined commented Aug 31, 2026

Copy link
Copy Markdown
Member

Description

  • Supports seedEnv in addKitInstanceOrConfigureProject when configuring an existing kit instance for an environment/project.
  • Ensures environment variables can be seeded into .env.<projectId> when adding or configuring kit instances programmatically.

Scenarios Tested

  • Added unit test in src/functions/kits/install.spec.ts verifying seedEnv writes .env.<projectId> during existing instance configuration.
  • Ran full test suite in src/functions/kits/install.spec.ts.

Sample Commands

  • npm test

… helpers

### Description
Refactors function kit installation helper APIs (`extractExistingFunctionsInfo`, `promptKitInstanceId`, `promptKitId`, `generateUniqueId`, and `ExistingFunctionsInfo`) to use standard `string[]` arrays instead of `Set<string>` per codebase conventions (using intrinsic arrays in module APIs).

### Scenarios Tested
- Unit tests in `src/functions/kits/install.spec.ts` (`npm run mocha:fast -- src/functions/kits/install.spec.ts`).
- Verified unique ID generation and suffix collision avoidance with string arrays.
- Verified existing kit, codebase, and instance ID validation and prompt collisions.

### Sample Commands
N/A (Internal refactoring)
### Description
- Adds `skipReport` option to `InstallKitOrInstanceOptions` and `ExistingKitInstallOptions` to allow callers (such as migration tooling) to suppress the first-deploy report.
- Supports `seedEnv` in `addKitInstanceOrConfigureProject` when configuring an existing kit instance for an environment/project.
- Suppresses `printKitFirstDeployReport` when `skipReport: true` is provided.

### Scenarios Tested
- Added unit test in `src/functions/kits/install.spec.ts` verifying `seedEnv` writes `.env.<projectId>` during existing instance configuration.
- Added unit test verifying `skipReport: true` suppresses `printKitFirstDeployReport`.
- Ran full test suite in `src/functions/kits/install.spec.ts`.

### Sample Commands
- `npm test`

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

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.

Code Review

This pull request introduces a skipReport option to suppress the first deploy report during function kit installation or configuration. Additionally, it adds support for seeding environment variables for an existing kit instance when seedEnv is provided. Unit tests have been added to verify both features. No review comments were provided, and the implementation is clean and well-tested.

@inlined inlined changed the title feat(functions): support seedEnv and skipReport in kit installation feat(functions): support seedEnv in kit installation and instance configuration Sep 1, 2026

@ajperel ajperel left a comment

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.

I don't know how to delete my draft comment after you already addressed it and it's outdated. But thank you.

Comment thread src/functions/kits/install.spec.ts Outdated
@inlined
inlined merged commit 9dc6e15 into main Sep 1, 2026
51 checks passed
@inlined
inlined deleted the feat_kit_seed_env_skip_report branch September 1, 2026 00:46
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