Skip to content

Commit

Permalink
Merge branch 'master' into sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
hongye-sun committed Feb 1, 2019
2 parents 3631ae7 + e29b181 commit bfc2e37
Show file tree
Hide file tree
Showing 88 changed files with 3,022 additions and 1,490 deletions.
9 changes: 7 additions & 2 deletions backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Pipelines backend.

## Building & Testing
All components can be built using [Bazel](https://bazel.build/). To build
everything under bazel, run:
everything under backend, run:
```
bazel build //backend/...
```
Expand All @@ -13,6 +13,11 @@ To run all tests:
bazel test //backend/...
```

## Building Go client library and swagger files
After making changes to proto files, the Go client libraries and swagger
files need to be regenerated and checked-in. The backend/api/generate_api.sh
script takes care of this.

## Updating BUILD files
As the backend is written in Go, the BUILD files can be updated automatically
using [Gazelle](https://github.com/bazelbuild/bazel-gazelle). Whenever a Go
Expand All @@ -27,4 +32,4 @@ bumped in the `go.mod` file, ensure the BUILD files pick this up by updating
the WORKSPACE go_repository rules using the following command:
```
bazel run //:gazelle -- update-repos --from_file=go.mod
```
```
1 change: 1 addition & 0 deletions backend/api/experiment.proto
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ message ListExperimentsRequest {

message ListExperimentsResponse {
repeated Experiment experiments = 1;
int32 total_size = 3;
string next_page_token = 2;
}

Expand Down
107 changes: 58 additions & 49 deletions backend/api/go_client/experiment.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bfc2e37

Please sign in to comment.