Skip to content

feat: add warnings when using experimental triggers in Dart runtime - #10332

Closed
Lyokone wants to merge 2 commits into
firebase:mainfrom
invertase:feat/warning-dart
Closed

Lyokone wants to merge 2 commits into
firebase:mainfrom
invertase:feat/warning-dart

Conversation

@Lyokone

@Lyokone Lyokone commented Apr 14, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adding warnings when using experimental triggers in Dart runtime.
Fixes #10305

Scenarios Tested

running emulator:start and deploy

You can see the warning here for firestore triggers.

Screenshot 2026-04-14 at 09 32 43 Screenshot 2026-04-14 at 09 49 03

@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 centralized classification system for Dart function triggers, categorizing them into production, emulator-only, and experimental support levels. It integrates warning logs into both the deployment preparation process and the functions emulator to inform users about limited trigger support. The review feedback suggests enhancing the detection and labeling of Eventarc triggers by explicitly checking for the presence of a channel and updating the service mapping logic to include Eventarc explicitly.

@jhuleatt
jhuleatt requested review from ajperel and kevmoo April 14, 2026 13:09

@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.

This LGTM but let me see if I can get a more experienced developer of firebase-tools to take a look.

* Only non-production endpoints are returned — callers never need to
* enumerate production-ready functions.
*/
export function classifyEndpoints(endpoints: backend.Endpoint[]): {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: Naming is a bit unclear here, since it only classifies non-production endpoints. Maybe rename to classifyNonProductionEndpoints

@joehan joehan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, please add a CHANGELOG entry like:

- Improved warning messages when deploying or emulating Dart functions.

@ajperel

ajperel commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Can be abandoned as I merged #10338

@kevmoo kevmoo 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.

Abandon this. We have the fix in already!

@Lyokone Lyokone closed this Apr 20, 2026
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.

Add emulator warning for unsupported deployment of Dart functions

4 participants