Skip to content

chore(crashlytics-autotriage): local-test deps, ignore secrets, runbook#86

Merged
stozo04 merged 1 commit into
mainfrom
feature/crashlytics-autotriage-followups
Jun 23, 2026
Merged

chore(crashlytics-autotriage): local-test deps, ignore secrets, runbook#86
stozo04 merged 1 commit into
mainfrom
feature/crashlytics-autotriage-followups

Conversation

@stozo04

@stozo04 stozo04 commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Description

Follow-ups captured while running the Phase 0 local end-to-end test of the Crashlytics auto-triage system (the firebase functions:shell "fake crash" path).

  • functions/package.json — add firebase-admin (the Functions emulator / functions:shell refuses to load functions without it).
  • .gitignore — ignore functions/.secret.local and *.secret.local (the local-only token file the shell reads). Keeps the GitHub PAT out of git.
  • docs/FIREBASE.md — add a "Testing locally — fake a crash end-to-end" section documenting the functions:shell steps and the gotchas we hit (payload must be {payload:{issue:{…}}} with no data: wrapper, plain-ASCII only, firebase-admin requirement, dedupe 422). Also corrected the secrets:access comment (it does print the value).

Related Issue

Follows #83 (initial scaffold).

Type of Change

  • 🔧 Chore (build deps + gitignore)
  • 📝 Documentation

How Has This Been Tested?

  • Manual Verification: ran firebase functions:shell locally and invoked crashlyticsToGithub({payload:{issue:{…}}}) — it created a real GitHub issue (confirming function → issue → workflow trigger). Steps reproduced in the new FIREBASE.md section.
  • No app/runtime code changed.

Note / known follow-up

The workflow's triage step isn't completing yet (test issues got created but Claude posted no comment) — being diagnosed separately from the Actions logs; not part of this PR.

Checklist

  • 🔍 Self-review performed.
  • 📖 No new compile/parse errors (docs + config only).
  • 🔒 No secrets committed (the SA key and .secret.local are gitignored).

Follow-ups from the Phase 0 local end-to-end test:
- functions/package.json: add firebase-admin (required by functions:shell / emulator)
- .gitignore: ignore functions/.secret.local and *.secret.local (local shell secret)
- docs/FIREBASE.md: add "Testing locally — fake a crash end-to-end" section with the
  functions:shell steps and gotchas (payload shape, ASCII-only, dedupe 422)
@stozo04 stozo04 merged commit fef9c0c into main Jun 23, 2026
2 checks passed
@stozo04 stozo04 deleted the feature/crashlytics-autotriage-followups branch June 23, 2026 19:45
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