Skip to content

feat: extend wire protocol and add requiredRoles to manifest discovery (PR 1)#10732

Open
inlined wants to merge 2 commits into
mainfrom
requires-role-1-discovery
Open

feat: extend wire protocol and add requiredRoles to manifest discovery (PR 1)#10732
inlined wants to merge 2 commits into
mainfrom
requires-role-1-discovery

Conversation

@inlined

@inlined inlined commented Jun 29, 2026

Copy link
Copy Markdown
Member

Description

This is PR 1 in the requiresRole PR chain.
It extends the wire protocol to include declared required roles for 2nd generation Cloud Functions, enabling manifest discovery to parse and validate them.

Scenarios Tested

  • Run npm test
  • Run npm run build & npm run lint

Sample Commands

N/A

@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 support for requiredRoles in Cloud Functions deployments by adding the field to the Backend, Build, and WireManifest interfaces, and parsing and validating it during manifest discovery. The reviewer feedback highlights two important improvements: updating the merge utility in backend.ts to prevent requiredRoles from being lost during multi-codebase deployments, and tightening the ROLE_REGEX to enforce stricter GCP naming conventions and catch invalid formats early.

Comment thread src/deploy/functions/backend.ts
Comment thread src/deploy/functions/runtimes/discovery/v1alpha1.ts Outdated
@inlined inlined requested review from Berlioz, ajperel and wandamora June 29, 2026 15:54
@inlined inlined force-pushed the requires-role-1-discovery branch from edc4799 to e0c76d9 Compare June 29, 2026 16:43
### Description
This is PR 1 in the requiresRole PR chain.
It extends the wire protocol to include declared required roles for 2nd generation Cloud Functions, enabling manifest discovery to parse and validate them.

### Scenarios Tested
- Run npm test
- Run npm run build & npm run lint

### Sample Commands
N/A
@inlined inlined force-pushed the requires-role-1-discovery branch from e0c76d9 to 771a36b Compare June 29, 2026 17:33
@inlined inlined enabled auto-merge (squash) June 30, 2026 16:35
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.

4 participants