8000 他のパッケージをImportしている場合、エラーになる by devin-ai-integration[bot] · Pull Request #155 · rerost/giro · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

他のパッケージをImportしている場合、エラーになる #155

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

Merged
merged 21 commits into from
Mar 29, 2025

Conversation

devin-ai-integration[bot]
Copy link
Contributor
@devin-ai-integration devin-ai-integration bot commented Mar 29, 2025

Add test using google/protobuf/empty.proto

This PR adds tests using google/protobuf/empty.proto as requested:

  1. Added EmptyCall method to TestService in e2etest/dummyserver/echo.proto
  2. Updated server implementation in runner.go to handle this method
  3. Added test cases for EmptyCall in test.ct
  4. Added GiroEmptyTest method to example service
  5. Updated GitHub workflow to test empty call

Link to Devin run: https://app.devin.ai/sessions/4dde8dc0263a48099bedc7344d8a5053
Requested by: Hazumi Ichijo

エラーの再現

rpc GiroEmptyTest(google.protobuf.Empty) returns (google.protobuf.Empty) {}

を追加すると

$ go run cmd/giro/main.go ls --reflection-server=localhost:5001 example.multiple_package.protos.one.GiroService
Error: proto: could not resolve import "google/protobuf/empty.proto": not found
Usage:
  giro ls [service|method] [flags]

Flags:
  -h, --help   help for ls

Global Flags:
      --debug
  -r, --reflection-server string    (default "localhost:5000")
      --rpc-server string
      --verbose

proto: could not resolve import "google/protobuf/empty.proto": not found
exit status 1

が発生

Co-Authored-By: Hazumi Ichijo <hahihu314+github@gmail.com>
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

devin-ai-integration bot and others added 3 commits March 29, 2025 05:25
Co-Authored-By: Hazumi Ichijo <hahihu314+github@gmail.com>
Co-Authored-By: Hazumi Ichijo <hahihu314+github@gmail.com>
Co-Authored-By: Hazumi Ichijo <hahihu314+github@gmail.com>
@codecov-commenter
Copy link
codecov-commenter commented Mar 29, 2025

Codecov Report

Attention: Patch coverage is 0% with 173 lines in your changes missing coverage. Please review.

Project coverage is 3.87%. Comparing base (04aec8d) to head (005594b).

Files with missing lines Patch % Lines
domain/grpcreflectiface/client.go 0.00% 73 Missing ⚠️
e2etest/dummyserver/echo.pb.go 0.00% 30 Missing ⚠️
e2etest/dummyserver/echo_grpc.pb.go 0.00% 26 Missing ⚠️
example/multiple_package/protos/one/one_grpc.pb.go 0.00% 26 Missing ⚠️
e2etest/dummyserver/runner.go 0.00% 18 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           master    #155      +/-   ##
=========================================
- Coverage    4.27%   3.87%   -0.40%     
=========================================
  Files          21      21              
  Lines        1662    1830     +168     
=========================================
  Hits           71      71              
- Misses       1585    1753     +168     
  Partials        6       6              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

devin-ai-integration bot and others added 7 commits March 29, 2025 05:32
Co-Authored-By: Hazumi Ichijo <hahihu314+github@gmail.com>
Co-Authored-By: Hazumi Ichijo <hahihu314+github@gmail.com>
Co-Authored-By: Hazumi Ichijo <hahihu314+github@gmail.com>
Co-Authored-By: Hazumi Ichijo <hahihu314+github@gmail.com>
Co-Authored-By: Hazumi Ichijo <hahihu314+github@gmail.com>
Co-Authored-By: Hazumi Ichijo <hahihu314+github@gmail.com>
Co-Authored-By: Hazumi Ichijo <hahihu314+github@gmail.com>
@@ -1,15 +1,15 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc v5.29.4
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

バージョンを変えないで

@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc v5.29.4
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これもバージョン変えないで

devin-ai-integration bot and others added 10 commits March 29, 2025 05:51
Co-Authored-By: Hazumi Ichijo <hahihu314+github@gmail.com>
Co-Authored-By: Hazumi Ichijo <hahihu314+github@gmail.com>
Co-Authored-By: Hazumi Ichijo <hahihu314+github@gmail.com>
Co-Authored-By: Hazumi Ichijo <hahihu314+github@gmail.com>
Co-Authored-By: Hazumi Ichijo <hahihu314+github@gmail.com>
Co-authored-by: bot <5201588+rerost@users.noreply.github.com>
@rerost rerost changed the title Add test using google/protobuf/empty.proto 他のパッケージをImportしている場合、エラーになる Mar 29, 2025
@rerost rerost merged commit e33b96d into master Mar 29, 2025
7 checks passed
@rerost rerost deleted the devin/1743225701-add-empty-proto-test branch March 29, 2025 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0