Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into use-openapi-gener…
Browse files Browse the repository at this point in the history
…ator
  • Loading branch information
Bobgy committed Jun 1, 2020
2 parents 4ca8d28 + 2864925 commit 440941e
Show file tree
Hide file tree
Showing 71 changed files with 1,241 additions and 293 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ matrix:
- cd $TRAVIS_BUILD_DIR/sdk/python
- python3 -m pip install -e .
- cd $TRAVIS_BUILD_DIR # Changing the current directory to the repo root for correct coverall paths
- coverage run --source=kfp --append sdk/python/tests/dsl/main.py
- coverage run --source=kfp --append sdk/python/tests/compiler/main.py
- coverage run --source=kfp --append -m unittest discover --verbose --start-dir sdk/python/tests --top-level-directory=sdk/python
- coverage run --source=kfp --append -m unittest discover --verbose --start-dir sdk/python --pattern '*test*.py'
#- coveralls

# Test against TFX
Expand Down
25 changes: 19 additions & 6 deletions backend/api/experiment.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,43 +59,46 @@ option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = {
};

service ExperimentService {
//Create a new experiment.
// Creates a new experiment.
rpc CreateExperiment(CreateExperimentRequest) returns (Experiment) {
option (google.api.http) = {
post: "/apis/v1beta1/experiments"
body: "experiment"
};
}

//Find a specific experiment by ID.
// Finds a specific experiment by ID.
rpc GetExperiment(GetExperimentRequest) returns (Experiment) {
option (google.api.http) = {
get: "/apis/v1beta1/experiments/{id}"
};
}

//Find all experiments.
// Finds all experiments. Supports pagination, and sorting on certain fields.
rpc ListExperiment(ListExperimentsRequest) returns (ListExperimentsResponse) {
option (google.api.http) = {
get: "/apis/v1beta1/experiments"
};
}

//Delete an experiment.
// Deletes an experiment without deleting the experiment's runs and jobs. To
// avoid unexpected behaviors, delete an experiment's runs and jobs before
// deleting the experiment.
rpc DeleteExperiment(DeleteExperimentRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/apis/v1beta1/experiments/{id}"
};
}

//Archive an experiment.
// Archives an experiment and the experiment's runs and jobs.
rpc ArchiveExperiment(ArchiveExperimentRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
post: "/apis/v1beta1/experiments/{id}:archive"
};
}

//Restore an archived experiment.
// Restores an archived experiment. The experiment's archived runs and jobs
// will stay archived.
rpc UnarchiveExperiment(UnarchiveExperimentRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
post: "/apis/v1beta1/experiments/{id}:unarchive"
Expand All @@ -114,7 +117,14 @@ message GetExperimentRequest {
}

message ListExperimentsRequest {
// A page token to request the next page of results. The token is acquried
// from the nextPageToken field of the response from the previous
// ListExperiment call or can be omitted when fetching the first page.
string page_token = 1;

// The number of experiments to be listed per page. If there are more
// experiments than this number, the response message will contain a
// nextPageToken field you can use to fetch the next page.
int32 page_size = 2;

// Can be format of "field_name", "field_name asc" or "field_name des"
Expand Down Expand Up @@ -171,13 +181,16 @@ message Experiment {
STORAGESTATE_ARCHIVED = 2;
}

// Output. Specifies whether this experiment is in archived or available state.
StorageState storage_state = 6;
}

message ArchiveExperimentRequest {
// The ID of the experiment to be archived.
string id = 1;
}

message UnarchiveExperimentRequest {
// The ID of the experiment to be restored.
string id = 1;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading

0 comments on commit 440941e

Please sign in to comment.