Skip to content

feat(dev): autoprovision devenv when making a new git worktree#109889

Merged
joshuarli merged 3 commits intomasterfrom
feat-dev-autoprovision-git-worktrees
Mar 4, 2026
Merged

feat(dev): autoprovision devenv when making a new git worktree#109889
joshuarli merged 3 commits intomasterfrom
feat-dev-autoprovision-git-worktrees

Conversation

@joshuarli
Copy link
Member

@joshuarli joshuarli commented Mar 4, 2026

supersedes #108406 and is a more focused version of that

after this, git worktree add ../wherever -b branch will automatically provision the worktree's env with devenv sync which is convenient, pre-commit hooks all work, etc.

and devenv sync / direnv allow now plays nice with worktrees

plus a few cleanups here and there

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 4, 2026
@joshuarli joshuarli requested a review from armenzg March 4, 2026 18:46

### You can override the exported variables with a .env file
# All exports should happen before here unless they're safeguarded (see devenv error reporting below)
if [ -f "${SENTRY_ROOT}/.env" ]; then
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need SENTRY_ROOT; this was from the era where we had shared sentry+getsentry venvs

commands_to_run+=("devenv sync")
fi

python3 -m tools.docker_memory_check
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i took the liberty of removing this; unused for a long time now

CI=true pnpm test components/avatar.spec.tsx
```

> For detailed development patterns, see nested AGENTS.md files:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these deleted instructions are already mentioned below

@joshuarli joshuarli marked this pull request as ready for review March 4, 2026 18:48
@joshuarli joshuarli requested review from a team as code owners March 4, 2026 18:48
@joshuarli joshuarli merged commit c1472de into master Mar 4, 2026
82 of 84 checks passed
@joshuarli joshuarli deleted the feat-dev-autoprovision-git-worktrees branch March 4, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants