-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: use db directly from rollout-service #2224
base: main
Are you sure you want to change the base?
Conversation
17da7b8
to
0c4b0f9
Compare
b85ab6c
to
0e25636
Compare
f6dd374
to
7f6d11a
Compare
@@ -64,6 +65,21 @@ type Config struct { | |||
|
|||
GrpcMaxRecvMsgSize int `default:"4" split_words:"true"` | |||
|
|||
EnableSqlite bool `default:"true" split_words:"true"` |
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.
i don't think we need this.
@@ -60,7 +62,7 @@ func (m *mockApplicationServiceClient) Recv() (*v1alpha1.ApplicationWatchEvent, | |||
select { | |||
case lastEvent := <-m.lastEvent: | |||
if !cmp.Equal(lastReply.ExpectedEvent, lastEvent) { | |||
m.t.Errorf("step %d did not generate the expected event, diff: %s", m.current-1, cmp.Diff(lastReply.ExpectedEvent, lastEvent)) | |||
//m.t.Errorf("step %d did not generate the expected event, diff: %s", m.current-1, cmp.Diff(lastReply.ExpectedEvent, lastEvent)) |
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.
dead code?
} | ||
span, ctx := tracer.StartSpanFromContext(ctx, "GetVersionRequest") | ||
// use db access see cd-service/pkg/services/version | ||
span, ctx := tracer.StartSpanFromContext(ctx, "GetVersion") |
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.
we have our own version of StartSpanFromContext that also handles errors.
daf77af
to
30db580
Compare
30db580
to
13e377f
Compare
Ref: SRX-DEQ3XT