daml/compiler/repl-service/protos/repl_service.proto
Moritz Kiefer 6af5b97273
Split up repl tests to make them faster (#5450)
* Split up repl tests to make them faster

This PR splits up the tests into the tests for TLS and Auth and the
tests for the actual functionality.

The func tests use the repl as a library which allows them to be
significantly faster:

1. We only need to start the service process once.
2. We only need to initialize the package db once.

There is at least one other point that I did not address for now and
that is only loading the packages into the repl service once. While
loading them multiple times is a noop, it still has a performance
implication.

Sadly, this has turned out much more messy than I thought it would be
due to various issues with haskeline/repline/tasty/computers. The
details are in a comment in DA.Test.Repl.FuncTests.

changelog_begin
changelog_end

* Try to nuke cache on window selectively

* Enable cache again
2020-04-07 10:22:15 +02:00

38 lines
797 B
Protocol Buffer

// Copyright (c) 2020 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
syntax = "proto3";
option java_multiple_files = true;
option java_package = "com.daml.lf.repl";
option java_outer_classname = "ReplServiceProto";
package replservice;
service ReplService {
rpc LoadPackage (LoadPackageRequest) returns (LoadPackageResponse);
rpc RunScript (RunScriptRequest) returns (RunScriptResponse);
rpc ClearResults (ClearResultsRequest) returns (ClearResultsResponse);
}
message LoadPackageRequest {
bytes package = 1;
}
message LoadPackageResponse {
}
message RunScriptRequest {
bytes daml_lf_1 = 1;
string minor = 2;
}
message RunScriptResponse {
}
message ClearResultsRequest {
}
message ClearResultsResponse {
}