Repository navigation
Updating workflows to run only on code changes - #511
Conversation
WalkthroughThe workflow configurations for GitHub Actions were updated to refine their trigger conditions. Both the build-and-test and LLM evaluation workflows now ignore documentation and metadata file changes, and only trigger on specific pull request event types. These changes aim to restrict workflow runs to relevant code or test modifications. Changes
Sequence Diagram(s)sequenceDiagram
participant Developer
participant GitHub
participant Workflow
Developer->>GitHub: Push or PR event
GitHub->>Workflow: Check event type and file changes
alt Relevant code/test change & allowed event type
Workflow->>Workflow: Run workflow jobs
else Only docs/metadata changed or disallowed PR event
Workflow-->>GitHub: Do not run workflow
end
Assessment against linked issues
Assessment against linked issues: Out-of-scope changesNo out-of-scope changes were found. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (4)
.github/workflows/llm-evaluation.yaml (2)
6-13: Refinepull_requesttriggers and ignore patterns
Restricts runs to onlyopened,synchronize,reopened, andready_for_reviewevents and ignores Markdown, docs, and key metadata.Nit: The patterns
'*.md'and'**/*.md'overlap; you can drop the root-level*.mdsince**/*.mdcovers the same scope.
16-22: Optimizepushtrigger exclusions
Skips workflow runs on non-code changes by ignoring docs, Markdown, and metadata files.Nit: Similarly,
'*.md'is redundant given'**/*.md'; consider consolidating..github/workflows/build-and-test.yaml (2)
5-13: Exclude documentation and metadata onpush
The updatedpaths-ignoreprevents CI runs for docs and Markdown updates, focusing on actual code changes.Nit: You can simplify by removing
'*.md', relying solely on'**/*.md'.
15-22: Alignpull_requesttriggers with evaluation workflow
Using specific event types and identical ignore patterns maintains consistency and reduces redundant pipeline executions.Nit: As above, drop the root-level
*.mdentry in favor of**/*.mdto minimize duplication.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/workflows/build-and-test.yaml(1 hunks).github/workflows/llm-evaluation.yaml(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (4)
- GitHub Check: build (3.11)
- GitHub Check: build (3.12)
- GitHub Check: build (3.10)
- GitHub Check: build (3.12)
Fixes #510.