-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial pkg/starlarkprocess * Replace skycfg with deterministic fork * Try fix flaky tests * More test fix for flakiness * revert use fork * Revert use of fork; try fixing up prototext output directly * Yes more flaky reduce efforts * Add
- Loading branch information
Showing
25 changed files
with
329 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
{"name":"point (1,2)"} | ||
{ | ||
"name": "point (1,2)" | ||
} | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
def main(ctx): | ||
print(process) | ||
|
||
print("run:", process.run) | ||
result = process.run( | ||
command = "pwd", | ||
) | ||
print("stdout (runfiles dir):", str(result.stdout).partition("grpcstar_test.runfiles")[2]) | ||
print("stderr:", result.stderr) | ||
print("error:", result.error) | ||
print("exit_code:", result.exit_code) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[testdata/process.grpc.star:2:10] <module "process"> | ||
[testdata/process.grpc.star:4:10] run: <built-in function process.run> | ||
[testdata/process.grpc.star:8:10] stdout (runfiles dir): /build_stack_grpc_starlark/cmd/grpcstar | ||
|
||
[testdata/process.grpc.star:9:10] stderr: | ||
[testdata/process.grpc.star:10:10] error: | ||
[testdata/process.grpc.star:11:10] exit_code: 0 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[testdata/routeguide.grpc.star:92:10] GetFeature: <example.routeguide.Feature name:"point (1,2)"> | ||
[testdata/routeguide.grpc.star:104:14] ListFeatures: <example.routeguide.Feature name:"lo (1,2)"> | ||
[testdata/routeguide.grpc.star:104:14] ListFeatures: <example.routeguide.Feature name:"hi (1,4)"> | ||
[testdata/routeguide.grpc.star:113:10] RecordRoute: <example.routeguide.RouteSummary point_count:2 distance:2 elapsed_time:10> | ||
[testdata/routeguide.grpc.star:113:10] RecordRoute: <example.routeguide.RouteSummary point_count:2 distance:2 elapsed_time:10> | ||
[testdata/routeguide.grpc.star:124:14] RouteChat: <example.routeguide.RouteNote message:"A"> | ||
[testdata/routeguide.grpc.star:124:14] RouteChat: <example.routeguide.RouteNote message:"B"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
{"name":"point (1,2)"} | ||
{"name":"lo (1,2)"} | ||
{"name":"hi (1,4)"} | ||
{"point_count":2, "distance":2, "elapsed_time":10} | ||
{"message":"A"} | ||
{"message":"B"} | ||
{ | ||
"name": "point (1,2)" | ||
} | ||
{ | ||
"name": "lo (1,2)" | ||
} | ||
{ | ||
"name": "hi (1,4)" | ||
} | ||
{ | ||
"point_count": 2, | ||
"distance": 2, | ||
"elapsed_time": 10 | ||
} | ||
{ | ||
"message": "A" | ||
} | ||
{ | ||
"message": "B" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
def main(ctx): | ||
print("=== Example Time Usage ===") | ||
now = time.now() | ||
then = now + 5 * time.second | ||
|
||
print("current time:", now) | ||
print("time add:", now + 5 * time.second) | ||
print("time hours:", now.hour) | ||
print("time then:", then) | ||
print("time hours:", then.hour) | ||
print("time minute:", then.minute) | ||
print("time second:", then.second) | ||
print("additional details: https://github.com/google/starlark-go/blob/a134d8f9ddca7469c736775b67544671f0a135ad/starlark/testdata/time.star") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[testdata/time.grpc.star:2:10] === Example Time Usage === | ||
[testdata/time.grpc.star:5:10] current time: 2019-01-01 00:00:00.7 +0000 UTC | ||
[testdata/time.grpc.star:6:10] time add: 2019-01-01 00:00:05.7 +0000 UTC | ||
[testdata/time.grpc.star:6:10] time then: 2019-01-01 00:00:05.6 +0000 UTC | ||
[testdata/time.grpc.star:7:10] time hours: 0 | ||
[testdata/time.grpc.star:8:10] additional details: https://github.com/google/starlark-go/blob/a134d8f9ddca7469c736775b67544671f0a135ad/starlark/testdata/time.star | ||
[testdata/time.grpc.star:8:10] time minute: 0 | ||
[testdata/time.grpc.star:9:10] time second: 5 | ||
[testdata/time.grpc.star:10:10] additional details: https://github.com/google/starlark-go/blob/a134d8f9ddca7469c736775b67544671f0a135ad/starlark/testdata/time.star |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.