Skip to content

ci: Add path-based filtering to main workflow#2677

Merged
backspace merged 20 commits into
mainfrom
ci/ai-bot-no-host-tests-cs-8737
May 30, 2025
Merged

ci: Add path-based filtering to main workflow#2677
backspace merged 20 commits into
mainfrom
ci/ai-bot-no-host-tests-cs-8737

Conversation

@backspace
Copy link
Copy Markdown
Contributor

@backspace backspace commented May 29, 2025

The main goal of this is to ensure that changes in packages/ai-bot don’t cause the tests and Percy jobs for packages/host to run, which are sadly flaky and slow. But I added path-based filtering to many of the jobs in the main workflow so PRs that focus on a particular package don’t produce unrelated Actions jobs.

I originally tried moving the ai-bot job into its own workflow but the deploy job checks its passing status, which wouldn’t work across workflows.

These are the jobs that ran and didn’t when I made a fake ai-bot change (and removed .github/workflows/ci.yml from the shared path filter):

boxel 2025-05-29 10-49-09

@backspace backspace self-assigned this May 29, 2025
@backspace backspace added the enhancement New feature or request label May 29, 2025
@backspace backspace changed the title ci: Move ai-bot to its own workflow with filtering ci: Remove host testing from ai-bot-only PRs May 29, 2025
@cardstack cardstack deleted a comment from github-actions Bot May 29, 2025
@backspace backspace changed the title ci: Remove host testing from ai-bot-only PRs ci: Add path-based filtering to main workflow May 29, 2025
Comment thread .github/workflows/ci.yaml
- 'packages/realm-server/**'
- 'packages/runtime-common/**'
- 'pnpm-lock.yaml'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Since so many of the jobs now depend on this, I moved it to the top.

@@ -1,4 +1,4 @@
name: CI Preview Host
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I renamed the file and workflow for clarity.

@backspace backspace marked this pull request as ready for review May 29, 2025 16:15
@backspace backspace requested a review from a team May 29, 2025 16:32
@backspace backspace merged commit 826ff1b into main May 30, 2025
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants