Skip to content

ci: run create-checkly e2e jobs only for PRs that affect them [RED-934] - #1472

Merged
sorccu merged 1 commit into
mainfrom
simo/red-934-disable-create-checkly-e2e
Sep 4, 2026
Merged

ci: run create-checkly e2e jobs only for PRs that affect them [RED-934]#1472
sorccu merged 1 commit into
mainfrom
simo/red-934-disable-create-checkly-e2e

Conversation

@sorccu

@sorccu sorccu commented Sep 4, 2026

Copy link
Copy Markdown
Member

Linear: RED-934

The create-checkly e2e suite is slow enough to hold up the CI gates for PRs that never touch it. This scopes the two e2e - create-checkly - * jobs to PRs that can actually affect the suite.

  • The changes job gains a second dorny/paths-filter step exposing a create-cli output. It is a separate step because the existing one uses predicate-quantifier: every, whereas this filter needs the default some (match any pattern).
  • The filter covers packages/create-cli/**, examples/** (the e2e runner points CHECKLY_E2E_LOCAL_TEMPLATE_ROOT at the checked-out templates), root package.json, pnpm-lock.yaml, pnpm-workspace.yaml, and the workflow file itself.
  • Both e2e jobs are gated on needs.changes.outputs.create-cli instead of code. The jobs stay defined, so the gates' needs: lists are untouched and a skipped job continues to count as success.

Known trade-off: any PR touching the shared pnpm-lock.yaml (e.g. a packages/cli dependency bump) still runs the suite, since a path filter cannot tell which workspace importer changed.

Note: because the workflow file is in the filter, this PR itself runs the create-checkly jobs. The skip path is first exercised by the next unrelated PR after merge.

🤖 Generated with Claude Code

The create-checkly e2e suite is slow enough to hold up the CI gates for
PRs that never touch it. Add a second paths-filter step to the `changes`
job (separate from the first because that one uses the `every`
quantifier) exposing a `create-cli` output for the suite's inputs:
packages/create-cli, the example templates it scaffolds from locally,
the workspace-wide dependency/config files and the workflow itself.
Gate both e2e jobs on that output. The jobs stay defined so the gates'
`needs:` lists remain valid; a skipped job already counts as success.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@sorccu
sorccu merged commit 90436ee into main Sep 4, 2026
14 of 16 checks passed
@sorccu
sorccu deleted the simo/red-934-disable-create-checkly-e2e branch September 4, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant