-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Minor fixes #28
Minor fixes #28
Conversation
error: TS2322 [ERROR]: Type 'undefined' is not assignable to type '(this: Worker, e: MessageEvent<any> ) => any'. worker.onmessage = undefined; ~~~~~~~~~~~~~~~~ at file:///Users/alisue/ogh/lambdalisue/deno-workerio/readable_stream.ts:30:11
Warning Rate Limit Exceeded@lambdalisue has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 15 minutes and 31 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. WalkthroughThe updates encompass refining GitHub Actions workflows, enhancing type compatibility in TypeScript files, and ensuring consistent type casting. Changes include restructuring workflow triggers, adding new testing and benchmarking jobs, and aligning Changes
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
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: 2
Out of diff range and nitpick comments (1)
test_util.ts (1)
10-10
: The type casting inpostMessage
is a bit unusual. Consider adding a comment explaining why this is necessary, as it might not be immediately clear to other developers.
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (14)
- .github/workflows/test.yml (1 hunks)
- .github/workflows/update.yml (1 hunks)
- .gitignore (1 hunks)
- deno.jsonc (1 hunks)
- readable_stream.ts (2 hunks)
- readable_stream_bench.ts (2 hunks)
- readable_stream_test.ts (2 hunks)
- reader_bench.ts (3 hunks)
- reader_test.ts (5 hunks)
- test_util.ts (1 hunks)
- writable_stream_bench.ts (2 hunks)
- writable_stream_test.ts (1 hunks)
- writer_bench.ts (3 hunks)
- writer_test.ts (2 hunks)
Files skipped from review due to trivial changes (6)
- .github/workflows/update.yml
- .gitignore
- readable_stream_bench.ts
- reader_test.ts
- writable_stream_bench.ts
- writer_test.ts
Additional Context Used
GitHub Check Runs (1)
codecov/patch success (1)
readable_stream.ts: [warning] 39-39: readable_stream.ts#L39
Added line #L39 was not covered by tests
Additional comments not posted (13)
deno.jsonc (1)
3-9
: The updates to the task configurations enhance the project's automation capabilities and are well-aligned with best practices.writable_stream_test.ts (1)
12-12
: The type casting fromMockWorker
toWorker
is consistent with similar changes in other test files and ensures type compatibility.readable_stream_test.ts (2)
9-9
: The type casting fromMockWorker
toWorker
is consistent with similar changes in other test files and ensures type compatibility.
26-26
: The type casting fromMockWorker
toWorker
is consistent with similar changes in other test files and ensures type compatibility..github/workflows/test.yml (3)
3-16
: The updates to the GitHub Actions workflow enhance automation capabilities and are well-aligned with best practices for CI/CD.
19-52
: The restructuring of jobs and the introduction of specific tasks for formatting, linting, type checking, testing with coverage, and benchmarking are well thought out and improve the CI/CD process.
53-60
: The addition of a dedicated benchmarking job is a good practice, ensuring that performance tests are run in isolation and can be triggered as needed.writer_bench.ts (3)
27-27
: The type casting fromMockWorker
toWorker
is consistent with similar changes in other test and benchmark files and ensures type compatibility.
48-48
: The type casting fromMockWorker
toWorker
is consistent with similar changes in other test and benchmark files and ensures type compatibility.
69-69
: The type casting fromMockWorker
toWorker
is consistent with similar changes in other test and benchmark files and ensures type compatibility.reader_bench.ts (3)
21-21
: The type casting fromMockWorker
toWorker
is consistent with similar changes in other test and benchmark files and ensures type compatibility.
44-44
: The type casting fromMockWorker
toWorker
is consistent with similar changes in other test and benchmark files and ensures type compatibility.
68-68
: The type casting fromMockWorker
toWorker
is consistent with similar changes in other test and benchmark files and ensures type compatibility.
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
Out of diff range and nitpick comments (2)
README.md (2)
Line range hint
7-7
: Fix the syntax error with the unpaired '[' symbol.- [ [Deno][deno] module to translate Worker's system of messages into + [] [Deno][deno] module to translate Worker's system of messages into
Line range hint
135-135
: Consider changing the preposition for better readability.- ...ed to agree that any modifications sent in this repository follow the license. + ...ed to agree that any modifications sent to this repository follow the license.
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- README.md (4 hunks)
- deno.jsonc (1 hunks)
- mod.ts (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- deno.jsonc
Additional Context Used
LanguageTool (2)
README.md (2)
Near line 7: Unpaired symbol: ‘[’ seems to be missing
Context: ...kerio/actions/workflows/test.yml) [Deno][deno] module to translate Worker's syst...
Near line 135: The preposition “to” seems more likely in this position.
Context: ...ed to agree that any modifications sent in this repository follow the license.
Additional comments not posted (4)
README.md (1)
28-28
: Ensure that$MODULE_VERSION
is correctly replaced with actual version numbers during deployment or documentation generation.mod.ts (3)
1-11
: The module description is clear and well-documented with relevant resource links.
19-23
: Ensure that$MODULE_VERSION
is correctly replaced with actual version numbers during deployment or documentation generation.
127-128
: The export statements are correctly set up to link to other parts of the module.
Summary by CodeRabbit
New Features
Enhancements
Bug Fixes
readableStreamFromWorker
to ensure proper function assignment, enhancing compatibility and stability.Documentation
.gitignore
to include.coverage
, allowing better handling of coverage reports.