这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@luluz66
Copy link
Contributor

@luluz66 luluz66 commented Feb 14, 2022

Migrate finish_time_millis and start_time_millis from event_parser, and
build_logs_test

https://github.com/buildbuddy-io/buildbuddy-internal/issues/1162

Migrate finish_time_millis and start_time_millis from event_parser,
accumulator, and build_logs_test

buildbuddy-io/buildbuddy-internal#1162
@luluz66 luluz66 marked this pull request as ready for review February 14, 2022 21:56
"github.com/buildbuddy-io/buildbuddy/server/util/status"
"github.com/google/uuid"
"github.com/stretchr/testify/require"
"google.golang.org/protobuf/types/known/timestamppb"
Copy link
Member

Choose a reason for hiding this comment

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

We usually use "github.com/golang/protobuf/ptypes" (from "@com_github_golang_protobuf//ptypes:go_default_library_gen") and then ptypes.TimestampProto to get an instance of timestamp from a time.Time.

There's an open issue to migrate to google.golang.org/protobuf, I think, but for now we probably want to use the old package everywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I already introduced timestamppb and durationpb in earlier PRs. I think we can at least start to migrate to timestamppb and durationpb from ptypes.

@luluz66 luluz66 merged commit 7ba665f into master Feb 15, 2022
@luluz66 luluz66 deleted the event-parser branch February 15, 2022 19:44
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