Skip to content

feat(ci): flag overrides that exist only in CI builds#635

Draft
gewenyu99 wants to merge 1 commit into
experiment/orchestrator-email-targetingfrom
experiment/orchestrator-ci-flag-overrides
Draft

feat(ci): flag overrides that exist only in CI builds#635
gewenyu99 wants to merge 1 commit into
experiment/orchestrator-email-targetingfrom
experiment/orchestrator-ci-flag-overrides

Conversation

@gewenyu99

@gewenyu99 gewenyu99 commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

WIZARD_CI_FLAG_OVERRIDES, a JSON object of flag key to value, merges over whatever PostHog returns, so CI routes deterministically instead of depending on a live flag someone can edit. The override path exists only in build:ci bundles. Published builds inline NODE_ENV and tsdown strips it entirely, and the smoke test asserts the env var's name is physically absent from production output and present in CI output, on every build. A malformed override fails the run loudly, and a valid one applies even when the flag fetch fails.

@github-actions

Copy link
Copy Markdown

🧙 Wizard CI

Run the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands:

Test all apps:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci basic-integration
  • /wizard-ci error-tracking-upload-source-maps
  • /wizard-ci misc
  • /wizard-ci revenue

Test an individual app:

  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
Show more apps
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci error-tracking-upload-source-maps/android
  • /wizard-ci error-tracking-upload-source-maps/flutter
  • /wizard-ci error-tracking-upload-source-maps/ios
  • /wizard-ci error-tracking-upload-source-maps/next
  • /wizard-ci error-tracking-upload-source-maps/next-no-posthog
  • /wizard-ci error-tracking-upload-source-maps/node-raw
  • /wizard-ci error-tracking-upload-source-maps/node-rollup
  • /wizard-ci error-tracking-upload-source-maps/node-rollup-typescript-plugin
  • /wizard-ci error-tracking-upload-source-maps/node-webpack
  • /wizard-ci error-tracking-upload-source-maps/nuxt-3-6
  • /wizard-ci error-tracking-upload-source-maps/nuxt-4-3
  • /wizard-ci error-tracking-upload-source-maps/react-native
  • /wizard-ci error-tracking-upload-source-maps/react-vite
  • /wizard-ci error-tracking-upload-source-maps/rust
  • /wizard-ci misc/quack-quack
  • /wizard-ci revenue/stripe

Results will be posted here when complete.

@gewenyu99 gewenyu99 force-pushed the experiment/orchestrator-ci-flag-overrides branch from 6fa5a9e to a66f029 Compare June 10, 2026 19:37
@gewenyu99 gewenyu99 force-pushed the experiment/orchestrator-email-targeting branch from 2804e98 to 52f3310 Compare June 10, 2026 20:04
@gewenyu99 gewenyu99 force-pushed the experiment/orchestrator-ci-flag-overrides branch from a66f029 to 2dc8205 Compare June 10, 2026 20:04
POSTHOG_WIZARD_CI_FLAG_OVERRIDES (a JSON object of flag key → value) merges
over the flags PostHog returns, so CI routes deterministically — a run that
tests the orchestrator arm says so instead of depending on a live flag.
Published builds inline NODE_ENV and tsdown strips the entire override path
from the bundle; the smoke test asserts the env var's name is physically
absent from production output and present in CI output, on every build.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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