Skip to content
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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

bjoern-michaelsen-freiheit
Copy link
Contributor

Ref: SRX-DEQ3XT

@@ -64,6 +65,21 @@ type Config struct {

GrpcMaxRecvMsgSize int `default:"4" split_words:"true"`

EnableSqlite bool `default:"true" split_words:"true"`

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))

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")

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.

@bjoern-michaelsen-freiheit bjoern-michaelsen-freiheit force-pushed the bm/rolloutdb branch 3 times, most recently from daf77af to 30db580 Compare January 29, 2025 18:31
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.

3 participants