-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for Deno v2 #426
Fix for Deno v2 #426
Conversation
Warning Rate limit exceeded@lambdalisue has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 17 minutes and 50 seconds before requesting another review. ⌛ 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. WalkthroughThe pull request introduces updates to the GitHub Actions workflow configuration, enhancing testing capabilities by adding support for a new Deno version and adjusting input descriptions. The Changes
Possibly related PRs
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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 (
|
7169cf4
to
5b23d4d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
.github/workflows/test.yml (1)
Line range hint
31-73
: Consider workflow optimization opportunitiesThe current workflow structure is robust, testing across multiple dimensions:
- Multiple Deno versions (1.45.0, 1.x, 2.x)
- Multiple OS environments
- Both Vim and Neovim
To potentially optimize CI time and resources:
- Consider using matrix includes/excludes to run certain combinations only when necessary
- Consider running Deno v2.x tests first, as they're most relevant to this PR
Would you like me to provide an example of how to optimize the matrix configuration?
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (5)
.github/workflows/test.yml
(3 hunks)README.md
(1 hunks)denops/@denops-private/service.ts
(1 hunks)tests/denops/testutil/mock.ts
(0 hunks)tests/denops/testutil/mock_test.ts
(0 hunks)
💤 Files with no reviewable changes (2)
- tests/denops/testutil/mock.ts
- tests/denops/testutil/mock_test.ts
✅ Files skipped from review due to trivial changes (1)
- README.md
🔇 Additional comments (4)
.github/workflows/test.yml (3)
19-19
: LGTM: Description format improvement
The change from single to double quotes in the description is a minor improvement for consistency.
37-37
: LGTM: Addition of Deno v2.x support in check job
The addition of Deno v2.x to the version matrix is essential for ensuring compatibility with the new version, which aligns perfectly with the PR's objective of fixing Deno v2 compatibility issues.
72-72
: Verify test coverage across Deno versions
The addition of Deno v2.x to the test matrix is crucial. However, let's ensure we're testing the specific scenarios mentioned in the PR objectives.
Let's verify the test coverage for the specific Deno v2 changes:
Consider adding specific test cases in the test suite that verify:
- Functionality without the
rid
variable - Proper handling of
unknown
type errors
✅ Verification successful
Test coverage for Deno v2.x is comprehensive and well-structured
The test matrix is properly configured with extensive coverage:
- Tests run across multiple Deno versions (1.45.0, 1.x, 2.x)
- Comprehensive error handling tests are present (30+ test files with error handling patterns)
- Tests are executed across different OS environments (Windows, macOS, Ubuntu)
- Both type checking and runtime tests are included in the workflow
- Code coverage reporting is enabled to track test effectiveness
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check if tests cover the specific Deno v2 changes mentioned in PR
# 1. Check for tests related to 'rid' removal
# 2. Check for tests related to 'err' type changes
# Search for test cases involving 'rid'
echo "Checking for 'rid' related tests:"
rg -l 'rid' tests/
# Search for test cases involving error handling
echo "Checking for error handling tests:"
rg -l 'err.*unknown' tests/
Length of output: 210
Script:
#!/bin/bash
# Let's try a broader search to understand test coverage and Deno version handling
# Check test files for Deno version specific tests
echo "Checking for Deno version specific tests:"
rg -l "Deno" tests/
# Look for error handling patterns in tests
echo "Checking for error handling patterns:"
rg -l "throw|catch|Error" tests/
# Check the test configuration and setup
echo "Checking test configuration:"
fd -e test.ts -e test.js -e spec.ts -e spec.js
# Look at the CI workflow file to understand test matrix
echo "Examining test workflow:"
cat .github/workflows/test.yml
Length of output: 6337
denops/@denops-private/service.ts (1)
Line range hint 278-282
: LGTM: Proper error handling for Deno v2 compatibility
The changes correctly address the Deno v2 compatibility issue where err
is now typed as unknown
. The type checking using instanceof Error
ensures safe access to the error message property while providing a fallback for non-Error objects.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #426 +/- ##
=======================================
Coverage 95.55% 95.55%
=======================================
Files 25 25
Lines 1416 1418 +2
Branches 180 180
=======================================
+ Hits 1353 1355 +2
Misses 60 60
Partials 3 3 ☔ View full report in Codecov by Sentry. |
rid
is no longer exist in Deno v2err
isunknown
in Deno v2Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Documentation
Tests
rid
property from fake TCP listener and connection objects.