Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📝 WalkthroughWalkthroughThis PR updates the VSCode integration test GitHub Actions workflow: it changes the trigger ordering to run on Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In @.github/workflows/vscode-integration-test.yml:
- Line 3: The workflow currently triggers only on "on: [pull_request]" which
drops post-merge runs; update the "on" configuration to also trigger pushes to
the main branch (e.g., add a push trigger with branches: [main] alongside
pull_request) so integration tests run both on PRs and on pushes/merges to main;
modify the "on" YAML block to include push: { branches: [main] } in addition to
pull_request.
🧹 Nitpick comments (1)
.github/workflows/vscode-integration-test.yml (1)
25-29: Playwright browser cache looks correct; note thatinstall-depsstill runs every time.The browser binary cache at
~/.cache/ms-playwrightis the right path for Linux, and keying onpackage-lock.jsonis appropriate since the Playwright version (and thus browser revisions) is pinned there. Omittingrestore-keysis the safer choice to avoid restoring incompatible browser builds.Note that
npx playwright install-deps(Line 44) installs system-level apt packages that aren't covered by this cache, so that step will still take time on every run. If you want to speed that up as well, you could conditionally skip it on a cache hit using the cache step's output:Optional: skip browser install on cache hit
- name: Cache Playwright browsers + id: playwright-cache uses: actions/cache@v4 with: path: ~/.cache/ms-playwright key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }} - name: Install Playwright deps and browsers + if: steps.playwright-cache.outputs.cache-hit != 'true' run: | npx playwright install-deps npx playwright installHowever, be cautious with this — system deps (from
install-deps) aren't cached, so on a browser cache hit you'd still needinstall-depsto run. A more granular split may be needed if you go this route.Also applies to: 42-45
| name: VSCode Integration Tests | ||
|
|
||
| on: [push, pull_request] | ||
| on: [pull_request] |
There was a problem hiding this comment.
Confirm that dropping push trigger is intentional.
By narrowing to pull_request only, integration tests will no longer run on pushes to main (e.g., after a PR merge). If a PR is merged with a broken test that wasn't caught (e.g., due to a stale base branch), there's no post-merge safety net. Consider keeping push for main at minimum:
Suggested trigger configuration
-on: [pull_request]
+on:
+ pull_request:
+ push:
+ branches: [main]🤖 Prompt for AI Agents
In @.github/workflows/vscode-integration-test.yml at line 3, The workflow
currently triggers only on "on: [pull_request]" which drops post-merge runs;
update the "on" configuration to also trigger pushes to the main branch (e.g.,
add a push trigger with branches: [main] alongside pull_request) so integration
tests run both on PRs and on pushes/merges to main; modify the "on" YAML block
to include push: { branches: [main] } in addition to pull_request.
✅ Addressed in commit 8631f43
There was a problem hiding this comment.
@coderabbitai I didn't want it to be such that every time I push to a branch with a pr open, it runs the same check twice. Any solutions?
There was a problem hiding this comment.
@Avni2000 Yes! The solution is to restrict the push trigger to only run on specific branches (like main). This way you get the best of both worlds:
on:
pull_request:
push:
branches: [main]How this works:
- When you push to a PR branch: Only the
pull_requesttrigger fires → runs once ✅ - When you push/merge directly to main: Only the
pushtrigger fires → runs once ✅ - No duplication!
This configuration:
- Runs tests on all PRs (regardless of target branch)
- Runs tests when code is merged to
main(catching issues that slip through) - Avoids running twice for PR branch pushes
This is a common pattern in GitHub workflows and solves your exact concern while still maintaining post-merge coverage.
🧠 Learnings used
Learnt from: Avni2000
Repo: Avni2000/MergeNB PR: 0
File: :0-0
Timestamp: 2026-02-04T23:12:05.308Z
Learning: In src/tests/vscodeIntegration.test.ts: The integration test has verification gaps: it never directly checks the outputs array content (only execution_count), uses getCellSource() normalization which masks source format inconsistencies (string vs array), and derives expected cell values from data-cell attributes containing original cells rather than from resolver output.
- Reverts 'on push' removal b/c of coderabbit suggestion
Summary by CodeRabbit