Improve PR builder - #4181
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughWalkthroughCI setup now caches Playwright and Go artifacts, separates backend and frontend linting, builds frontend packages in affected jobs, and centralizes pnpm and Node.js setup. ChangesCI maintenance
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the 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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
2b71479 to
f14f4b4
Compare
f14f4b4 to
89851ec
Compare
There was a problem hiding this comment.
Pull request overview
This PR improves the PR-builder CI workflow by adding dependency caching, splitting linting into backend/frontend jobs for clearer feedback, and standardizing frontend build steps used across jobs.
Changes:
- Added caching for Go modules (
actions/cache) in relevant Go jobs and introduced Playwright browser caching in the composite setup action. - Split linting into separate
lint-backendandlint-frontendjobs for more granular reporting and shorter timeouts. - Standardized various frontend CI jobs to build via
pnpm build:packagesfrom thefrontend/workspace.
Reviewed changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| build.sh | Removes a stray blank/whitespace-only line in the integration test function. |
| build.ps1 | Removes a stray blank/whitespace-only line in the integration test function. |
| .github/workflows/pr-builder.yml | Adds Go module caching, splits lint jobs, and standardizes frontend build steps for CI jobs. |
| .github/actions/setup-playwright/action.yml | Adds Playwright browser caching and adjusts install behavior based on cache hits. |
| - name: �️ Cache Go Modules | ||
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 |
| - name: �🔧 Install Mockery | ||
| run: make install-mockery |
| run: | | ||
| if [ "${{ steps.playwright-cache.outputs.cache-hit }}" = "true" ]; then | ||
| pnpm exec playwright install-deps ${{ inputs.browsers }} | ||
| else | ||
| pnpm exec playwright install --with-deps ${{ inputs.browsers }} | ||
| fi |
89851ec to
a7d9f82
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 5 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (2)
.github/workflows/pr-builder.yml:81
- This step name contains a Unicode replacement character (�), which usually indicates a broken/incorrect file encoding. Replace it with the intended emoji (or plain text) so the workflow UI renders correctly.
- name: �️ Cache Go Modules
.github/workflows/pr-builder.yml:91
- This step name contains a Unicode replacement character (�), which usually indicates a broken/incorrect file encoding. Replace it with the intended emoji (or plain text) so the workflow UI renders correctly.
- name: �🔧 Install Mockery
a7d9f82 to
e95e11c
Compare
| - name: ⚙️ Set up Node.js and pnpm | ||
| uses: ./.github/actions/setup-pnpm | ||
| with: | ||
| run_install: false | ||
| cache_dependency_path: pnpm-lock.yaml | ||
| version: ${{ env.PNPM_VERSION }} | ||
| node-version: ${{ env.NODE_VERSION }} |
Purpose
This pull request introduces several improvements to the CI workflows, focusing on caching and better separation of linting jobs. The main highlights are enhanced caching for dependencies and splitting frontend/backend linting for more granular feedback and performance.
Approach
CI Workflow Improvements:
.github/workflows/pr-builder.yml,.github/actions/setup-playwright/action.yml)lint-backendandlint-frontendfor clearer separation and potentially faster feedback (.github/workflows/pr-builder.yml)Frontend Build Consistency:
pnpm build:packagesfrom thefrontenddirectory for all relevant jobs, improving consistency and reliability (.github/workflows/pr-builder.yml)Related Issues
Related PRs
Checklist
breaking changelabel added.Security checks
Summary by CodeRabbit