Skip to content

fix(infra): just preview waits on the branch it deployed - #649

Merged
PiquelChips merged 1 commit into
mainfrom
fix/647-preview-waits-on-deployed-branch
Nov 20, 2026
Merged

PiquelChips merged 1 commit into
mainfrom
fix/647-preview-waits-on-deployed-branch

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

just preview read the branch to wait on only after the deploy, which takes minutes. Switching branch meanwhile made the wait look for the wrong preview and fail with "preview … not found", though the deploy had worked.

The recipe now reads the branch once, before deploying, and waits on that one. preview-delete does the same. The arguments and piquelctl's output are unchanged. The one difference: just no longer echoes each command before running it, as it does for a recipe without a shebang.

Closes #647

Testing

I ran the recipe with a fake piquelctl on PATH. It prints its arguments and switches branch during preview deploy:

--- this branch: just infra preview --slot a
piquelctl --timeout 30m preview deploy sourceorigin --local --slot a
piquelctl --timeout 10m preview wait sourceorigin feat/deployed --slot a --ready routes
--- this branch: just infra preview-delete --slot a
piquelctl --timeout 5m preview delete sourceorigin feat/deployed --slot a --yes
--- main: just infra preview --slot a
piquelctl --timeout 30m preview deploy sourceorigin --local --slot a
piquelctl --timeout 10m preview wait sourceorigin other --slot a --ready routes

When the deploy fails, the recipe still stops with that exit code before the wait. Nothing was deployed.

Note

Written by Claude Opus 5.5 in Claude Code and reviewed by Claude Opus 5.5 (the orchestrator) (via T3 Code)

🤖 Generated with Claude Code

`just preview` read the branch to wait on after the deploy, which takes
minutes, so switching branch meanwhile made the wait look for the wrong
preview. It now reads the branch once, before deploying; `preview-delete`
does the same.

Closes #647
@PiquelChips PiquelChips added bug Something isn't working infra Deployment and infrastructure labels Nov 20, 2026
@github-project-automation github-project-automation Bot moved this to Needs Triage in sourceorigin.dev Nov 20, 2026
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 14 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 12159237-ab1f-4f36-bd9d-389543592eba
Commits

Reviewing files that changed from the base of the PR and between 467e813 and e7b1373.

Files selected for processing: 1

  • just/infra.just
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@PiquelChips
PiquelChips marked this pull request as ready for review November 20, 2026 10:39
@PiquelChips
PiquelChips added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit ab7cd37 Nov 20, 2026
13 checks passed
@PiquelChips
PiquelChips deleted the fix/647-preview-waits-on-deployed-branch branch November 20, 2026 14:32
@github-project-automation github-project-automation Bot moved this from Needs Triage to Done in sourceorigin.dev Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working infra Deployment and infrastructure

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

fix(infra): just preview waits on the branch it deployed

1 participant