-
Notifications
You must be signed in to change notification settings - Fork 10
build,test: make test-grpc-packages pass again #352
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
Conversation
No need to install `@grpc/proto-loader` in Makefile's `test-agents-prereqs` target.
WalkthroughThe Makefile was updated to modify the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. ✨ Finishing Touches🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
Makefile(1 hunks)
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: santigimeno
PR: nodesource/nsolid#339
File: test/addons/nsolid-elf-utils/nsolid-elf-utils.js:13-14
Timestamp: 2025-07-08T14:46:47.806Z
Learning: In the nsolid test suite, native addon bindings are expected to be built beforehand; tests do not add fs.existsSync guards to skip when bindings are missing.
📚 Learning: in the nsolid test suite, native addon bindings are expected to be built beforehand; tests do not ad...
Learnt from: santigimeno
PR: nodesource/nsolid#339
File: test/addons/nsolid-elf-utils/nsolid-elf-utils.js:13-14
Timestamp: 2025-07-08T14:46:47.806Z
Learning: In the nsolid test suite, native addon bindings are expected to be built beforehand; tests do not add fs.existsSync guards to skip when bindings are missing.
Applied to files:
Makefile
📚 Learning: in nsolid test native addons (e.g., `test/addons/*/binding.cc`), additional javascript-facing argume...
Learnt from: santigimeno
PR: nodesource/nsolid#339
File: test/addons/nsolid-elf-utils/binding.cc:13-28
Timestamp: 2025-07-08T14:48:04.827Z
Learning: In nsolid test native addons (e.g., `test/addons/*/binding.cc`), additional JavaScript-facing argument validation is typically omitted because the tests supply well-formed inputs.
Applied to files:
Makefile
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
- GitHub Check: test-macOS
- GitHub Check: build-tarball
- GitHub Check: test-linux (ubuntu-24.04-arm)
- GitHub Check: test-linux (ubuntu-24.04)
- GitHub Check: lint-js-and-md
- GitHub Check: build-docs
| env npm_config_nodedir=$(PWD) $(NODE) ./deps/npm install @opentelemetry/otlp-proto-exporter-base @grpc/grpc-js @grpc/proto-loader --prefix test/common/nsolid-otlp-agent --no-save --no-package-lock | ||
| env npm_config_nodedir=$(PWD) $(NODE) ./deps/npm install @grpc/grpc-js @grpc/proto-loader --prefix test/common/nsolid-grpc-agent --no-save --no-package-lock | ||
| env npm_config_nodedir=$(PWD) $(NODE) ./deps/npm install @grpc/grpc-js --prefix test/common/nsolid-grpc-agent --no-save --no-package-lock | ||
|
|
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.
💡 Verification agent
🧩 Analysis chain
Verify nsolid-grpc-agent no longer imports @grpc/proto-loader
@grpc/proto-loader has been removed from the install list, so any residual require('@grpc/proto-loader') in test/common/nsolid-grpc-agent/** will crash the tests at runtime.
Please confirm the agent code was cleaned up accordingly.
🏁 Script executed:
#!/bin/bash
# Detect stray proto-loader imports after its removal
rg -n "@grpc/proto-loader" test/common/nsolid-grpc-agent || trueLength of output: 145
Remove stray @grpc/proto-loader import from nsolid-grpc-agent
@grpc/proto-loader was removed from the install step, but it’s still imported in the agent code, which will lead to runtime failures:
• test/common/nsolid-grpc-agent/server.mjs:4
- import protoLoader from '@grpc/proto-loader';Please remove this import (and any related usage) to align the code with the updated dependencies.
Committable suggestion skipped: line range outside the PR's diff.
🤖 Prompt for AI Agents
In the Makefile around lines 1698 to 1700, the dependency @grpc/proto-loader was
removed from the install step for nsolid-grpc-agent, but the import statement
for it still exists in test/common/nsolid-grpc-agent/server.mjs at line 4. To
fix this, remove the import of @grpc/proto-loader from server.mjs and eliminate
any code that uses it to ensure the code matches the updated dependencies and
prevent runtime errors.
No need to install `@grpc/proto-loader` in Makefile's `test-agents-prereqs` target. PR-URL: #352 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
|
Landed in 766a071 |
No need to install `@grpc/proto-loader` in Makefile's `test-agents-prereqs` target. PR-URL: #352 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
No need to install
@grpc/proto-loaderin Makefile'stest-agents-prereqstarget.Summary by CodeRabbit