New test vector transcript format#1315
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1315 +/- ##
=========================================
- Coverage 30.45% 30.06% -0.4%
=========================================
Files 45 46 +1
Lines 3769 3815 +46
=========================================
- Hits 1148 1147 -1
- Misses 2445 2492 +47
Partials 176 176
Continue to review full report at Codecov.
|
| @@ -0,0 +1,53 @@ | |||
| // Copyright 2019 Google Inc. All Rights Reserved. | |||
There was a problem hiding this comment.
Is transcript_go_proto a canonical name for this folder? Technically, transcript.proto can be compiled into other languages (although it's not the case here).
There was a problem hiding this comment.
This is a tricky one...
- It's Google policy to have go proto packages end in
*_go_proto - When importing into Bazel, the *.pb.go files get dropped, and only the proto file remains
- The import script also modifies every
import/path/A->package/import/path/A/A
By putting the file in this directory, I think everything should be consistent (for go) automatically.
Alternatively, I can put the transcript.proto file on directory up, and then special case it in the import script.
| @@ -0,0 +1,31 @@ | |||
| { | |||
| "description": "TestMonitor", | |||
| "directory": { | |||
There was a problem hiding this comment.
This test, as well as TestListHistory and a couple of others, has no RPCs. Is this expected, and they are still different?
There was a problem hiding this comment.
This is expected.
At the moment they are not generating RPCs because the individual tests are not generating them.
What I mean to say is that, at the moment, the RPCs are not being collected in a consistent way.
They are being synthetically synthesized rather than properly recorded with an interceptor.
This is because we are still injecting client state into the Action. When I remove that, I can properly capture all the RPCs and these files won't be empty.
|
Updated, PTAL |
pav-kv
left a comment
There was a problem hiding this comment.
Please take another look at err := WriteTranscript comment before submitting.
|
Sharp eye. Thanks for that |
* master: New test vector transcript format (google#1315)
* master: (106 commits) Remove unused logVerifier (google#1324) Verify Revisions in StreamRevisions (google#1323) Pair verifier functions (google#1322) Split VerifyRevision into Verify{LogRoot,MapRevision (google#1318) Make Previous hash check optional (google#1307) Remove VerifySignedMapRoot from VerifierInterface (google#1320) Remove trailing whitespace (google#1321) Encapsulate Client Verifier State in test vectors (google#1316) Pass along err message (google#1314) Remove unnessesary func() (google#1319) New test vector transcript format (google#1315) Track map revision inside mutation (google#1310) Move verifier to its own package (google#1312) go generate ./... (google#1306) Fix proto copying in revisions and paginator tests. (google#1309) Fix proto copying in server_test. (google#1308) go mod tidy (google#1305) Use new TrillianMapWrite API (google#1304) Configurable maximum queue depth for metric reporting. (google#1303) Proposal to refine docker deployment (google#1302) ...
* master: (95 commits) Remove unused logVerifier (google#1324) Verify Revisions in StreamRevisions (google#1323) Pair verifier functions (google#1322) Split VerifyRevision into Verify{LogRoot,MapRevision (google#1318) Make Previous hash check optional (google#1307) Remove VerifySignedMapRoot from VerifierInterface (google#1320) Remove trailing whitespace (google#1321) Encapsulate Client Verifier State in test vectors (google#1316) Pass along err message (google#1314) Remove unnessesary func() (google#1319) New test vector transcript format (google#1315) Track map revision inside mutation (google#1310) Move verifier to its own package (google#1312) go generate ./... (google#1306) Fix proto copying in revisions and paginator tests. (google#1309) Fix proto copying in server_test. (google#1308) go mod tidy (google#1305) Use new TrillianMapWrite API (google#1304) Configurable maximum queue depth for metric reporting. (google#1303) Proposal to refine docker deployment (google#1302) ...
This PR makes the test vector file format self contained.
Previously public verification keys and the contents they were verifying were contained in separate files.