-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add capability for writing to bigquery (#993)
- Loading branch information
1 parent
9fdd3e4
commit 78ce991
Showing
14 changed files
with
1,139 additions
and
9 deletions.
There are no files selected for viewing
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,83 @@ | ||
from typing import ClassVar as _ClassVar | ||
from typing import Iterable as _Iterable | ||
from typing import Optional as _Optional | ||
from typing import Union as _Union | ||
|
||
from google.protobuf import descriptor as _descriptor | ||
from google.protobuf import message as _message | ||
from google.protobuf.internal import containers as _containers | ||
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper | ||
|
||
DESCRIPTOR: _descriptor.FileDescriptor | ||
|
||
class TestRun(_message.Message): | ||
__slots__ = ( | ||
"timestamp", | ||
"name", | ||
"classname", | ||
"testsuite", | ||
"computed_name", | ||
"outcome", | ||
"failure_message", | ||
"duration_seconds", | ||
"repoid", | ||
"commit_sha", | ||
"branch_name", | ||
"flags", | ||
"filename", | ||
"framework", | ||
) | ||
class Outcome(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): | ||
__slots__ = () | ||
PASSED: _ClassVar[TestRun.Outcome] | ||
FAILED: _ClassVar[TestRun.Outcome] | ||
SKIPPED: _ClassVar[TestRun.Outcome] | ||
|
||
PASSED: TestRun.Outcome | ||
FAILED: TestRun.Outcome | ||
SKIPPED: TestRun.Outcome | ||
TIMESTAMP_FIELD_NUMBER: _ClassVar[int] | ||
NAME_FIELD_NUMBER: _ClassVar[int] | ||
CLASSNAME_FIELD_NUMBER: _ClassVar[int] | ||
TESTSUITE_FIELD_NUMBER: _ClassVar[int] | ||
COMPUTED_NAME_FIELD_NUMBER: _ClassVar[int] | ||
OUTCOME_FIELD_NUMBER: _ClassVar[int] | ||
FAILURE_MESSAGE_FIELD_NUMBER: _ClassVar[int] | ||
DURATION_SECONDS_FIELD_NUMBER: _ClassVar[int] | ||
REPOID_FIELD_NUMBER: _ClassVar[int] | ||
COMMIT_SHA_FIELD_NUMBER: _ClassVar[int] | ||
BRANCH_NAME_FIELD_NUMBER: _ClassVar[int] | ||
FLAGS_FIELD_NUMBER: _ClassVar[int] | ||
FILENAME_FIELD_NUMBER: _ClassVar[int] | ||
FRAMEWORK_FIELD_NUMBER: _ClassVar[int] | ||
timestamp: int | ||
name: str | ||
classname: str | ||
testsuite: str | ||
computed_name: str | ||
outcome: TestRun.Outcome | ||
failure_message: str | ||
duration_seconds: float | ||
repoid: int | ||
commit_sha: str | ||
branch_name: str | ||
flags: _containers.RepeatedScalarFieldContainer[str] | ||
filename: str | ||
framework: str | ||
def __init__( | ||
self, | ||
timestamp: _Optional[int] = ..., | ||
name: _Optional[str] = ..., | ||
classname: _Optional[str] = ..., | ||
testsuite: _Optional[str] = ..., | ||
computed_name: _Optional[str] = ..., | ||
outcome: _Optional[_Union[TestRun.Outcome, str]] = ..., | ||
failure_message: _Optional[str] = ..., | ||
duration_seconds: _Optional[float] = ..., | ||
repoid: _Optional[int] = ..., | ||
commit_sha: _Optional[str] = ..., | ||
branch_name: _Optional[str] = ..., | ||
flags: _Optional[_Iterable[str]] = ..., | ||
filename: _Optional[str] = ..., | ||
framework: _Optional[str] = ..., | ||
) -> None: ... |
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,30 @@ | ||
syntax = "proto2"; | ||
|
||
message TestRun { | ||
optional int64 timestamp = 1; | ||
optional string name = 2; | ||
optional string classname = 3; | ||
optional string testsuite = 4; | ||
optional string computed_name = 5; | ||
|
||
enum Outcome { | ||
PASSED = 0; | ||
FAILED = 1; | ||
SKIPPED = 2; | ||
} | ||
|
||
optional Outcome outcome = 6; | ||
|
||
optional string failure_message = 7; | ||
optional float duration_seconds = 8; | ||
|
||
optional int64 repoid = 10; | ||
optional string commit_sha = 11; | ||
|
||
optional string branch_name = 12; | ||
|
||
repeated string flags = 13; | ||
|
||
optional string filename = 14; | ||
optional string framework = 15; | ||
} |
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.