-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Redefine model/ and api_v2/ types as aliases to jaeger-idl/ types #6602
Redefine model/ and api_v2/ types as aliases to jaeger-idl/ types #6602
Conversation
Signed-off-by: nabil salah <[email protected]>
Signed-off-by: nabil salah <[email protected]>
@yurishkuro |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6602 +/- ##
==========================================
- Coverage 96.21% 96.08% -0.14%
==========================================
Files 377 366 -11
Lines 21421 20949 -472
==========================================
- Hits 20611 20128 -483
- Misses 616 624 +8
- Partials 194 197 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Looks very promising! The link check is expected to fail, and unit test needs a bit of investigation, but doesn't look too serious. And the best part the e2e CI tests are green. Feels like a much better approach than the copying we tried before :-)
yes and it will ease the transition if at any moment you wanted to remove model files |
Signed-off-by: nabil salah <[email protected]>
when running unit tests locally I am seeing many logs like this
a bit strange. |
Signed-off-by: nabil salah <[email protected]>
Signed-off-by: nabil salah <[email protected]>
i think this happened after I changed should I remove them or removing their proto registers init functions? |
I tracked one issue, in
|
Signed-off-by: nabil salah <[email protected]>
|
grpc tests failing with
Not sure why, you may need to make changes to plugin/storage/grpc/proto/storage.proto and regenerate - (gogoproto.customtype) = "github.com/jaegertracing/jaeger/model.TraceID",
+ (gogoproto.customtype) = "github.com/jaegertracing/jaeger-idl/model/v1.TraceID", |
Signed-off-by: nabil salah <[email protected]>
Run git submodule init, git submodule update --recursive |
Signed-off-by: nabil salah <[email protected]>
it runs with no problem but still giving e2e grpc fails |
Signed-off-by: nabil salah <[email protected]>
ok, we will need to troubleshoot, I don't have an obvious next step |
Signed-off-by: nabil salah <[email protected]>
try this patch. I don't know why gogo still encounters the old model, but I was able to reproduce the error in a unit test and this change below fixed it. --- a/pkg/gogocodec/codec.go
+++ b/pkg/gogocodec/codec.go
@@ -17,6 +17,9 @@ import (
const (
jaegerProtoGenPkgPath = "github.com/jaegertracing/jaeger-idl/proto-gen"
jaegerModelPkgPath = "github.com/jaegertracing/jaeger-idl/model/v1"
+
+ jaegerProtoGenPkgPathOld = "github.com/jaegertracing/jaeger/proto-gen"
+ jaegerModelPkgPathOld = "github.com/jaegertracing/jaeger/model"
)
var defaultCodec encoding.CodecV2
@@ -89,5 +92,11 @@ func useGogo(t reflect.Type) bool {
if strings.HasPrefix(pkg, jaegerModelPkgPath) {
return true
}
+ if strings.HasPrefix(pkg, jaegerProtoGenPkgPathOld) {
+ return true
+ }
+ if strings.HasPrefix(pkg, jaegerModelPkgPathOld) {
+ return true
+ }
return false
} |
Signed-off-by: nabil salah <[email protected]>
this is weird because we changed proto files that use model.proto already don't know why it happened |
Looks like we made it. This is awesome! I'm going to ignore codecov gap, we will soon be able to clean up that code anyway. |
Which problem is this PR solving?
Description of the changes
models
andapi_v2
modelsHow was this change tested?
make lint
,make test
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test