Skip to content

chore: Set Bugsnag release stage based on TANGLE_ENV variable#1872

Open
morgan-wowk wants to merge 1 commit intomasterfrom
bugsnag-release-stage
Open

chore: Set Bugsnag release stage based on TANGLE_ENV variable#1872
morgan-wowk wants to merge 1 commit intomasterfrom
bugsnag-release-stage

Conversation

@morgan-wowk
Copy link

@morgan-wowk morgan-wowk commented Feb 27, 2026

Description

Enhanced Bugsnag error reporting configuration to require both API key and environment variables for initialization. Added VITE_TANGLE_ENV environment variable to set the Bugsnag releaseStage and prevent unnecessary API calls for container execution states when containers are in expected non-execution states.

Related Issue and Pull requests

Type of Change

  • Bug fix
  • Improvement
  • Documentation update

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

Test Instructions

  1. Set up environment variables in .env file:
    VITE_BUGSNAG_API_KEY=your-api-key
    VITE_TANGLE_ENV=production
  2. Verify Bugsnag initializes only when both variables are present
  3. Test that error reporting is disabled when either variable is missing
  4. Verify that container execution state API calls are skipped for containers in states like INVALID, UNINITIALIZED, QUEUED, WAITING_FOR_UPSTREAM, SYSTEM_ERROR, CANCELLED, and SKIPPED
  5. Use the "Throw error" button on the home page to test error reporting functionality

Additional Comments

The changes prevent unnecessary API calls for container execution states when containers are in expected states where execution records may not exist yet. This optimization reduces backend load and eliminates expected 404 errors from the logs.

@github-actions
Copy link

github-actions bot commented Feb 27, 2026

🎩 To tophat this PR:

You can add the following URL parameter to your browser to tophat this PR:

`?tophat_location=bugsnag-release-stage/53baa16`

Copy link
Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@morgan-wowk morgan-wowk marked this pull request as ready for review February 27, 2026 19:30
@morgan-wowk morgan-wowk requested a review from a team as a code owner February 27, 2026 19:30
@morgan-wowk morgan-wowk requested a review from Mbeaulne February 27, 2026 19:30
@morgan-wowk morgan-wowk force-pushed the bugsnag-release-stage branch from 2c18fe0 to 5c48c88 Compare February 27, 2026 19:45
@morgan-wowk morgan-wowk force-pushed the bugsnag-release-stage branch from 5c48c88 to 53baa16 Compare February 27, 2026 19:46
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.

2 participants