Skip to content

Conversation

@andrewbrook
Copy link
Contributor

Description

This is a new, partially implemented command for uploading javascript mapping files. The command takes the user-supplied mapping file path, or a path to a directory, and uploads all available *.js.map files to the customer's Google Cloud Storage bucket. If the bucket does not exist yet, it is created.

The next steps for this command are to:

  • extract the app version information
  • notify Firebase Telemetry of the newly uploaded files

Scenarios Tested

  • Uploading a single mapping file
  • Specifying and uploading a nested directory of mapping files
  • Creating a new GCS bucket
  • Changing the location of the GCS bucket

Sample Commands

firebase crashlytics:sourcemap:upload path/to/build/mapping.js.map --app
firebase crashlytics:sourcemap:upload .next --app

Copy link
Contributor

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

This like 90% looks good to me - only blocking bit is putting a depth cap on the recursive read (we just got burned by something similar yesterday, so I'm feeling extra cautious here). Everything else is a nice to have and can be done in a follow up

@andrewbrook andrewbrook changed the base branch from telemetry to master November 20, 2025 17:10
@andrewbrook andrewbrook changed the base branch from master to telemetry November 20, 2025 17:10
@andrewbrook andrewbrook merged commit d4dd524 into telemetry Nov 20, 2025
44 checks passed
@andrewbrook andrewbrook deleted the telemetry1 branch November 20, 2025 18:14
@github-project-automation github-project-automation bot moved this from Approved [PR] to Done in [Cloud] Extensions + Functions Nov 20, 2025
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