Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

Deploying functions using firebase-functions v7.0.1 fails with FirebaseError: Unexpected key 'endpoints[...].scheduleTrigger.attemptDeadlineSeconds'. This indicates that the firebase-tools CLI schema validation needs to be updated to support the attemptDeadlineSeconds field introduced in the SDK.


PR created automatically by Jules for task 7589121697635054516 started by @joehan

This commit updates the firebase-tools CLI to support the `attemptDeadlineSeconds` field in scheduled function triggers. This field was introduced in `firebase-functions` v7.0.1 and caused deployment failures due to schema validation errors.

The following changes were made:
- Updated the `ScheduleTrigger` interface in `src/deploy/functions/build.ts` and `src/deploy/functions/backend.ts` to include the `attemptDeadlineSeconds` field.
- Updated the schema validation in `src/deploy/functions/runtimes/discovery/v1alpha1.ts` to allow the `attemptDeadlineSeconds` field.
- Updated `src/gcp/cloudscheduler.ts` to prioritize the `attemptDeadlineSeconds` field when creating or updating Cloud Scheduler jobs.

Fixes #9600
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

Copy link
Member

@joehan joehan left a comment

Choose a reason for hiding this comment

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

Please fix

"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.19.0.tgz",
"integrity": "sha512-reM4+U7B9ss148rh2n1Qs9ASS+w94irYXga7c2jaQv9RVzpS7Mv1a9rnYYwuDa45G+DkORt9g6An2k/V4d9LbQ==",
"dev": true,
"peer": true,
Copy link
Member

Choose a reason for hiding this comment

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

Revert the changes to this file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have reverted the changes to this file.

@joehan
Copy link
Member

joehan commented Dec 17, 2025

Also remove the issue-9600 file

google-labs-jules bot and others added 3 commits December 17, 2025 00:17
This commit updates the firebase-tools CLI to support the `attemptDeadlineSeconds` field in scheduled function triggers. This field was introduced in `firebase-functions` v7.0.1 and caused deployment failures due to schema validation errors.

The following changes were made:
- Updated the `ScheduleTrigger` interface in `src/deploy/functions/build.ts` and `src/deploy/functions/backend.ts` to include the `attemptDeadlineSeconds` field.
- Updated the schema validation in `src/deploy/functions/runtimes/discovery/v1alpha1.ts` to allow the `attemptDeadlineSeconds` field.
- Updated `src/gcp/cloudscheduler.ts` to prioritize the `attemptDeadlineSeconds` field when creating or updating Cloud Scheduler jobs.

Fixes #9600
@joehan joehan marked this pull request as ready for review December 18, 2025 17:36
@joehan joehan requested review from cabljac and taeold December 18, 2025 17:36
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.

1 participant