Skip to content

ci: replace wildcard path triggers on E2E tests#2025

Merged
KRRT7 merged 1 commit into
mainfrom
fix/e2e-path-triggers
Apr 9, 2026
Merged

ci: replace wildcard path triggers on E2E tests#2025
KRRT7 merged 1 commit into
mainfrom
fix/e2e-path-triggers

Conversation

@KRRT7
Copy link
Copy Markdown
Contributor

@KRRT7 KRRT7 commented Apr 9, 2026

Summary

  • Replace paths: ['**'] with targeted path filters on all 12 E2E workflows
  • Python E2E tests now only trigger on codeflash/**, tests/**, pyproject.toml, uv.lock, and workflow files
  • JS E2E tests additionally trigger on packages/**
  • Java E2E tests already had proper path filters (no change)

Why

Every PR push triggers 18+ workflows simultaneously, regardless of what files changed. A README edit fires all E2E tests. Total compute per push: ~140-200 min (~3.3 hours).

With targeted paths, E2E tests only run when source code, tests, or dependencies actually change.

Also noted (separate fixes needed)

  • Claude Code workflow: 100% failure rate — ANTHROPIC_API_KEY is empty in CI env. Since we use OIDC, this env var may need to be removed or the secret needs to be set.
  • Duplicate Code Detector (codeflash-internal): 100% failure since Apr 8 — same root cause (empty API key + claude-code-action config).

Test plan

  • Verify E2E tests still trigger on PRs that change Python source files
  • Verify E2E tests do NOT trigger on PRs that only change docs/configs
  • workflow_dispatch still works for manual triggers

All 12 E2E workflows used `paths: ['**']` which triggered on every file
change — docs, configs, experiments, etc. This caused ~140-200 min of
compute per push event (18+ parallel workflows).

Now E2E tests only trigger when relevant source code changes:
- Python E2E: codeflash/**, tests/**, pyproject.toml, uv.lock, workflow files
- JS E2E: same + packages/**
- Java E2E: already had proper path filters (no change needed)

Estimated savings: ~$150-200/mo in CI compute.
@github-actions github-actions Bot added the workflow-modified This PR modifies GitHub Actions workflows label Apr 9, 2026
@KRRT7 KRRT7 merged commit 77be8b1 into main Apr 9, 2026
24 of 26 checks passed
@KRRT7 KRRT7 deleted the fix/e2e-path-triggers branch April 9, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

workflow-modified This PR modifies GitHub Actions workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant