Skip to content

Commit

Permalink
chore: Added go test build, fixed openapi specs
Browse files Browse the repository at this point in the history
  • Loading branch information
St4NNi committed Nov 7, 2023
1 parent 984b37e commit 2750bad
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dry-run-rust-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
uses: bufbuild/buf-setup-action@v1
- name: Lint protofiles with buf
uses: bufbuild/buf-lint-action@v1
- name: Generate buf files
run: buf generate
build: # This does not build the whole proto files for production, it tests if rust / tonic
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
target
target
dry_run
9 changes: 3 additions & 6 deletions aruna/api/storage/services/v2/data_replication_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,8 @@ message ReplicateProjectDataResponse {
}

message PartialReplicateDataRequest {
oneof response {
string collection_id = 1;
string dataset_id = 2;
string object_id = 3;
}
string endpoint_id = 4;
string resource_id = 1;
string endpoint_id = 2;
}

message PartialReplicateDataResponse {
Expand All @@ -117,6 +113,7 @@ message UpdateReplicationStatusResponse {}

message GetReplicationStatusRequest {
string resource_id = 1;
string endpoint_id = 2;
}

message GetReplicationStatusResponse {
Expand Down
2 changes: 1 addition & 1 deletion aruna/api/storage/services/v2/user_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ service UserService {
rpc DeleteAPITokens(DeleteAPITokensRequest)
returns (DeleteAPITokensResponse) {
option (google.api.http) = {
delete : "/v2/user/tokens/{token_id}"
delete : "/v2/user/tokens"
};
}

Expand Down
25 changes: 25 additions & 0 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: v1
managed:
enabled: true
optimize_for: SPEED
plugins:
- plugin: buf.build/protocolbuffers/go:v1.31.0
out: dry_run
opt: paths=source_relative
- plugin: buf.build/grpc/go:v1.3.0
out: dry_run
opt:
- paths=source_relative
- require_unimplemented_servers=false
- plugin: buf.build/grpc-ecosystem/gateway:v2.18.0
out: dry_run
opt:
- paths=source_relative
- allow_repeated_fields_in_body=true
- allow_delete_body=true
- plugin: buf.build/grpc-ecosystem/openapiv2:v2.18.0
out: dry_run
opt:
- allow_merge=true
- allow_delete_body=true
- visibility_restriction_selectors=SERVER

0 comments on commit 2750bad

Please sign in to comment.