Skip to content

Skip workflow cron discovery for git worktree directories#285

Merged
tbrandenburg merged 1 commit intomainfrom
codex/exclude-crontab-yml-in-worktrees
Mar 14, 2026
Merged

Skip workflow cron discovery for git worktree directories#285
tbrandenburg merged 1 commit intomainfrom
codex/exclude-crontab-yml-in-worktrees

Conversation

@tbrandenburg
Copy link
Owner

Motivation

  • Avoid collecting workflow YAMLs from git worktree checkouts so cron/workflow discovery does not register workflows from worktree child directories.

Description

  • Update list_workspace_workflows to skip workspace entries where (.git) is a file, which indicates a git worktree checkout.
  • Add a unit test test_list_workspace_workflows_skips_git_worktrees to verify worktree directories are excluded from workspace workflow aggregation.

Testing

  • Running python -m pytest packages/pybackend/tests/unit/test_workflow_service.py in the plain environment initially failed due to a missing yaml dependency.
  • Installed backend dependencies with cd packages/pybackend && uv sync and ran uv run --project packages/pybackend python -m pytest packages/pybackend/tests/unit/test_workflow_service.py.
  • Final test run succeeded with all tests passing: 5 passed.

Codex Task

@vercel
Copy link

vercel bot commented Mar 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
made Ready Ready Preview, Comment Mar 14, 2026 7:13am

@tbrandenburg tbrandenburg merged commit 782ce1b into main Mar 14, 2026
8 checks passed
@tbrandenburg tbrandenburg deleted the codex/exclude-crontab-yml-in-worktrees branch March 14, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant