Skip to content

Commit

Permalink
chore: update buf (#260)
Browse files Browse the repository at this point in the history
* chore: update buf

* ci: remove temp ci job
  • Loading branch information
aaron-steinfeld authored Dec 6, 2024
1 parent 681e7e5 commit 2279700
Show file tree
Hide file tree
Showing 28 changed files with 72 additions and 181 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,7 @@ jobs:
repository: ${{github.event.pull_request.head.repo.full_name}}
fetch-depth: 0

- name: Setup buf
uses: bufbuild/buf-setup-action@v1
- name: Run buf
uses: bufbuild/buf-action@v1
with:
github_token: ${{ github.token }}

- name: Lint protos
uses: bufbuild/buf-lint-action@v1

- name: Check for breaking changes
uses: bufbuild/buf-breaking-action@v1
with:
against: '.git#branch=origin/main'
github_token: ${{ github.token }}
8 changes: 0 additions & 8 deletions alerting-config-service-api/src/main/proto/buf.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
syntax = "proto3";

option java_multiple_files = true;

package org.hypertrace.alerting.config.service.v1;

import "org/hypertrace/alerting/config/service/v1/metric_anomaly_event_condition.proto";

option java_multiple_files = true;

message NewEventCondition {
EventConditionMutableData event_condition_data = 1;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
syntax = "proto3";

option java_multiple_files = true;

package org.hypertrace.alerting.config.service.v1;

import "org/hypertrace/alerting/config/service/v1/event_condition.proto";

option java_multiple_files = true;

service EventConditionConfigService {
rpc CreateEventCondition(CreateEventConditionRequest) returns (CreateEventConditionResponse) {}
rpc UpdateEventCondition(UpdateEventConditionRequest) returns (UpdateEventConditionResponse) {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
syntax = "proto3";

option java_multiple_files = true;

package org.hypertrace.alerting.config.service.v1;

option java_multiple_files = true;

message MetricAnomalyEventCondition {
MetricSelection metric_selection = 1;
repeated ViolationCondition violation_condition = 2;
Expand Down Expand Up @@ -61,7 +61,6 @@ message CompositeFilter {
repeated Filter child_filters = 2;
}


message LhsExpression {
oneof value {
Attribute attribute = 1;
Expand Down Expand Up @@ -94,11 +93,11 @@ message StaticThresholdCondition {
}

message BaselineThresholdCondition {
string baseline_duration = 1; // iso duration string
string baseline_duration = 1; // iso duration string
}

enum StaticThresholdOperator {
STATIC_THRESHOLD_OPERATOR_UNSPECIFIED = 0;
STATIC_THRESHOLD_OPERATOR_UNSPECIFIED = 0;
STATIC_THRESHOLD_OPERATOR_GT = 1;
STATIC_THRESHOLD_OPERATOR_LT = 2;
STATIC_THRESHOLD_OPERATOR_GTE = 3;
Expand Down
12 changes: 0 additions & 12 deletions buf.work.yaml

This file was deleted.

20 changes: 20 additions & 0 deletions buf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: v2
modules:
- path: alerting-config-service-api/src/main/proto
- path: config-service-api/src/main/proto
- path: label-application-rule-config-service-api/src/main/proto
- path: label-application-rule-config-service-impl/src/main/proto
- path: labels-config-service-api/src/main/proto
- path: notification-channel-config-service-api/src/main/proto
- path: notification-rule-config-service-api/src/main/proto
- path: partitioner-config-service-api/src/main/proto
- path: spaces-config-service-api/src/main/proto
- path: span-processing-config-service-api/src/main/proto
lint:
use:
- STANDARD
disallow_comment_ignores: true
breaking:
use:
- PACKAGE
- WIRE_JSON
8 changes: 0 additions & 8 deletions config-service-api/src/main/proto/buf.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
syntax = "proto3";

option java_multiple_files = true;

package org.hypertrace.config.service.v1;

import "google/protobuf/struct.proto";

option java_multiple_files = true;

service ConfigService {
// Overrides the specified config with the config provided and upserts the
// provided config into the store. Also returns the config which is upserted.
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ syntax = "proto3";

package org.hypertrace.label.application.rule.config.service.v1;

option java_multiple_files = true;

import "org/hypertrace/label/application/rule/config/service/v1/label_application_rule.proto";

service LabelApplicationRuleConfigService {
option java_multiple_files = true;

service LabelApplicationRuleConfigService {
// create label application rule
rpc CreateLabelApplicationRule(CreateLabelApplicationRuleRequest) returns (CreateLabelApplicationRuleResponse) {}

Expand All @@ -19,7 +18,6 @@ service LabelApplicationRuleConfigService {

// delete label application rule by id
rpc DeleteLabelApplicationRule(DeleteLabelApplicationRuleRequest) returns (DeleteLabelApplicationRuleResponse) {}

}

message CreateLabelApplicationRuleRequest {
Expand All @@ -38,8 +36,7 @@ message GetLabelApplicationRuleResponse {
LabelApplicationRule label_application_rule = 1;
}

message GetLabelApplicationRulesRequest {
}
message GetLabelApplicationRulesRequest {}

message GetLabelApplicationRulesResponse {
repeated LabelApplicationRule label_application_rules = 1;
Expand All @@ -58,5 +55,4 @@ message DeleteLabelApplicationRuleRequest {
string id = 1;
}

message DeleteLabelApplicationRuleResponse {
}
message DeleteLabelApplicationRuleResponse {}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
syntax="proto3";
syntax = "proto3";

package org.hypertrace.label.application.rule.config.service.impl.v1;

Expand Down
8 changes: 0 additions & 8 deletions labels-config-service-api/src/main/proto/buf.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ syntax = "proto3";

package org.hypertrace.label.config.service.v1;

option java_multiple_files = true;

import "org/hypertrace/label/config/service/v1/label.proto";

service LabelsConfigService {
option java_multiple_files = true;

service LabelsConfigService {
// create label
rpc CreateLabel(CreateLabelRequest) returns (CreateLabelResponse) {}

Expand All @@ -25,7 +24,6 @@ service LabelsConfigService {

// delete label by id
rpc DeleteLabel(DeleteLabelRequest) returns (DeleteLabelResponse) {}

}

message CreateLabelRequest {
Expand Down Expand Up @@ -58,8 +56,7 @@ message GetLabelResponse {
Label label = 1;
}

message GetLabelsRequest {
}
message GetLabelsRequest {}

message GetLabelsResponse {
repeated Label labels = 1;
Expand All @@ -78,5 +75,4 @@ message DeleteLabelRequest {
string id = 1;
}

message DeleteLabelResponse {
}
message DeleteLabelResponse {}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
syntax = "proto3";

option java_multiple_files = true;

package org.hypertrace.notification.config.service.v1;

option java_multiple_files = true;

message NotificationChannel {
string id = 1;
NotificationChannelMutableData notification_channel_mutable_data = 2;
Expand All @@ -30,7 +30,6 @@ message AwsS3BucketChannelConfig {
}
}


enum WebhookFormat {
WEBHOOK_FORMAT_UNSPECIFIED = 0;
WEBHOOK_FORMAT_SLACK = 1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
syntax = "proto3";

option java_multiple_files = true;

package org.hypertrace.notification.config.service.v1;

import "org/hypertrace/notification/config/service/v1/notification_channel.proto";

option java_multiple_files = true;

service NotificationChannelConfigService {
rpc CreateNotificationChannel(CreateNotificationChannelRequest) returns (CreateNotificationChannelResponse) {}
rpc UpdateNotificationChannel(UpdateNotificationChannelRequest) returns (UpdateNotificationChannelResponse) {}
Expand Down
8 changes: 0 additions & 8 deletions notification-rule-config-service-api/src/main/proto/buf.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
syntax = "proto3";

option java_multiple_files = true;

package org.hypertrace.notification.config.service.v1;

option java_multiple_files = true;

message NotificationRule {
string id = 1;
NotificationRuleMutableData notification_rule_mutable_data = 2;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
syntax = "proto3";

option java_multiple_files = true;

package org.hypertrace.notification.config.service.v1;

import "org/hypertrace/notification/config/service/v1/notification_rule.proto";

option java_multiple_files = true;

service NotificationRuleConfigService {
rpc CreateNotificationRule(CreateNotificationRuleRequest) returns (CreateNotificationRuleResponse) {}
rpc UpdateNotificationRule(UpdateNotificationRuleRequest) returns (UpdateNotificationRuleResponse) {}
Expand Down
8 changes: 0 additions & 8 deletions partitioner-config-service-api/src/main/proto/buf.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@ package org.hypertrace.partitioner.config.service.v1;

option java_multiple_files = true;


service PartitionerConfigService {

rpc GetPartitionerProfile(GetPartitionerProfileRequest) returns (GetPartitionerProfileResponse) {}

rpc GetPartitionerProfiles(GetPartitionerProfilesRequest) returns (GetPartitionerProfilesResponse) {}

rpc PutPartitionerProfiles(PutPartitionerProfilesRequest) returns (PutPartitionerProfilesResponse) {}

rpc DeletePartitionerProfiles(DeletePartitionerProfilesRequest) returns (DeletePartitionerProfilesResponse) {}

}

message GetPartitionerProfileRequest {
Expand All @@ -29,11 +26,9 @@ message PutPartitionerProfilesRequest {
repeated PartitionerProfile profiles = 1;
}

message PutPartitionerProfilesResponse {
}
message PutPartitionerProfilesResponse {}

message GetPartitionerProfilesRequest {
}
message GetPartitionerProfilesRequest {}

message GetPartitionerProfilesResponse {
repeated PartitionerProfile profiles = 1;
Expand All @@ -43,8 +38,7 @@ message DeletePartitionerProfilesRequest {
repeated string profile_names = 1;
}

message DeletePartitionerProfilesResponse {
}
message DeletePartitionerProfilesResponse {}

message PartitionerProfile {
string name = 1;
Expand Down
8 changes: 0 additions & 8 deletions spaces-config-service-api/src/main/proto/buf.yaml

This file was deleted.

Loading

0 comments on commit 2279700

Please sign in to comment.