firebase / firebase/firebase-tools

Very slow startup and cloud function updates if working without internet connection

Open
#4,565 1 comment 2 reactions 0 assignees View on GitHub
emulator-suite emulators: firestore type: bug
Dominant language
TypeScript
Stars
4.5k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
84

Description

### Environment info

**firebase-tools:**
11.0.0

**Platform:**
OS: Pop!_OS 22.04 LTS x86_64
### Test case

start emulator without internet connection

### Steps to reproduce

Run: 'firebase --debug emulators:start' or update a cloud function

### Expected behavior

start emulator and update cloud functions in a couple of seconds (like when running with internet connection)

### Actual behavior

The emulator stops **more than a minute** showing the message:
Validating nodejs source

The same happens when updating a function

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue offline with `firebase --debug emulators:start` and by updating a cloud function, then capture where execution remains at “Validating nodejs source.” Trace that validation entry point and compare behavior with and without internet access. Done means emulator startup and cloud function updates complete in a couple of seconds offline, as they do online.

Written by the indexing model from the issue text.

Assessment

Tech stack
firebase, nodejs, typescript
Domain
cli, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.