Repository navigation
Conversation
Live E2E suites used a personal user token to create and delete a temporary workspace per suite. Switch to one dedicated CI workspace: - Workspace admin token for branches, ingest, query and pull. - WORKSPACE:DEPLOY token for production deploys (falls back to the admin token locally). - Remove workspace create/delete helpers and the admin-token check. - Clear GITHUB_HEAD_REF in suites: the SDK prefers it over GITHUB_REF_NAME, so on pull_request runs every suite used the PR branch name instead of its own run-scoped branch. - Global setup deletes leftover live_* branches from killed runs. - Assertions in append/build use per-run values. - CI: e2e-live environment, concurrency group, new secret names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Live E2E suites no longer use a user token or create/delete a workspace per suite. They run against a single CI workspace with two workspace-scoped tokens:
TINYBIRD_E2E_WORKSPACE_TOKENTINYBIRD_E2E_DEPLOY_TOKENdeploy,pullsuites)Changes
e2e-live/cloud-workspace.ts: removed the workspace create/fetch/delete helpers and the admin-token check. AddedcreateRunScopedName, anddeployToProduction, which deploys with the deploy token and then switches back to the workspace token.init,build,append,null-engine) run on per-run branches in the shared workspace.deploy,pull) deploy withallowDestructiveOperations, because each deploy replaces whatever the previous one left.GITHUB_HEAD_REF. The SDK prefers it overGITHUB_REF_NAME, so onpull_requestruns every suite was using the PR's branch name instead of its own.e2e-live/global-setup.tsdeletes leftoverlive_*branches from cancelled or crashed runs.appendandbuildassertions check per-run values, not fixed strings orrows > 0.ci.yml: the e2e job uses thee2e-liveenvironment, a concurrency group (runs share one workspace) and the new secret names.Verification
pnpm typecheckandpnpm test:runpass, ande2e-live/*.tstypechecks.Requires the CI workspace and secrets to be configured before merge (tracked internally).
🤖 Generated with Claude Code