dbt-common 1.24.0__tar.gz → 2.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dbt_common-1.24.0 → dbt_common-2.0.0}/CHANGELOG.md +8 -2
- {dbt_common-1.24.0 → dbt_common-2.0.0}/PKG-INFO +2 -1
- dbt_common-2.0.0/dbt_common/__about__.py +1 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/events/README.md +1 -8
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/events/base_types.py +6 -8
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/events/event_manager.py +4 -1
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/events/functions.py +4 -2
- dbt_common-2.0.0/dbt_common/events/types_pb2.py +2 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/helper_types.py +7 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/pyproject.toml +1 -3
- dbt_common-1.24.0/dbt_common/__about__.py +0 -1
- dbt_common-1.24.0/dbt_common/events/types.proto +0 -156
- dbt_common-1.24.0/dbt_common/events/types_pb2.py +0 -91
- {dbt_common-1.24.0 → dbt_common-2.0.0}/.gitignore +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/LICENSE +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/README.md +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/codecov.yml +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/__init__.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/behavior_flags.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/clients/__init__.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/clients/_jinja_blocks.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/clients/agate_helper.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/clients/jinja.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/clients/system.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/constants.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/context.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/contracts/__init__.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/contracts/config/__init__.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/contracts/config/base.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/contracts/config/materialization.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/contracts/config/metadata.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/contracts/config/properties.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/contracts/constraints.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/contracts/metadata.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/contracts/util.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/dataclass_schema.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/events/__init__.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/events/contextvars.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/events/event_handler.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/events/event_manager_client.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/events/format.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/events/helpers.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/events/interfaces.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/events/logger.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/events/types.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/exceptions/__init__.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/exceptions/base.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/exceptions/cache.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/exceptions/connection.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/exceptions/contracts.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/exceptions/events.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/exceptions/jinja.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/exceptions/macros.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/exceptions/system.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/invocation.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/py.typed +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/record.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/semver.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/tests.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/ui.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/utils/__init__.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/utils/casting.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/utils/connection.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/utils/dict.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/utils/encoding.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/utils/executor.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/utils/formatting.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/dbt_common/utils/jinja.py +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/docs/README.md +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/docs/arch/adr-0001-build-tooling.md +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/docs/guides/record_replay.md +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/agate/__init__.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/agate/data_types.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/colorama/__init__.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/isodate/__init__.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/__init__.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/config.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/core/__init__.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/core/const.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/core/helpers.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/core/meta/__init__.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/core/meta/code/__init__.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/core/meta/code/builder.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/core/meta/code/lines.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/core/meta/helpers.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/core/meta/mixin.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/core/meta/types/__init__.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/core/meta/types/common.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/core/meta/types/pack.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/core/meta/types/unpack.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/dialect.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/exceptions.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/helper.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/jsonschema/__init__.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/jsonschema/annotations.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/jsonschema/builder.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/jsonschema/dialects.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/jsonschema/models.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/jsonschema/schema.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/mixins/__init__.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/mixins/dict.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/mixins/json.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/mixins/msgpack.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/mixins/orjson.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/mixins/toml.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/mixins/yaml.pyi +0 -0
- {dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/types.pyi +0 -0
@@ -5,6 +5,14 @@
|
|
5
5
|
- "Breaking changes" listed under a version may require action from end users or external maintainers when upgrading to that version.
|
6
6
|
- Do not edit this file directly. This file is auto-generated using [changie](https://github.com/miniscruff/changie). For details on how to document a change, see [the contributing guide](https://github.com/dbt-labs/dbt-common/blob/main/CONTRIBUTING.md#adding-changelog-entry)
|
7
7
|
|
8
|
+
## dbt-common 2.0.0 - May 19, 2025
|
9
|
+
|
10
|
+
### Fixes
|
11
|
+
|
12
|
+
- Ensure event manager doesn't break if `WARN_ERROR_OPTIONS` global is overwritten with `WarnErrorOptionsV2` object ([#283](https://github.com/dbt-labs/dbt-common/issues/283))
|
13
|
+
|
14
|
+
|
15
|
+
|
8
16
|
## dbt-common 1.24.0 - May 09, 2025
|
9
17
|
|
10
18
|
### Features
|
@@ -15,8 +23,6 @@
|
|
15
23
|
|
16
24
|
- Split `WarnErrorOptions` from `IncludeExclude` ([#278](https://github.com/dbt-labs/dbt-common/issues/278))
|
17
25
|
|
18
|
-
|
19
|
-
|
20
26
|
## dbt-common 1.23.0 - April 21, 2025
|
21
27
|
|
22
28
|
### Fixes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: dbt-common
|
3
|
-
Version:
|
3
|
+
Version: 2.0.0
|
4
4
|
Summary: The shared common utilities that dbt-core and adapter implementations use
|
5
5
|
Project-URL: Homepage, https://github.com/dbt-labs/dbt-common
|
6
6
|
Project-URL: Repository, https://github.com/dbt-labs/dbt-common.git
|
@@ -26,6 +26,7 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
26
26
|
Requires-Python: >=3.9
|
27
27
|
Requires-Dist: agate<1.10,>=1.7.0
|
28
28
|
Requires-Dist: colorama<0.5,>=0.3.9
|
29
|
+
Requires-Dist: dbt-protos<2.0.0,>=1.0.291
|
29
30
|
Requires-Dist: deepdiff<8.0,>=7.0
|
30
31
|
Requires-Dist: isodate<0.7,>=0.6
|
31
32
|
Requires-Dist: jinja2<4,>=3.1.3
|
@@ -0,0 +1 @@
|
|
1
|
+
version = "2.0.0"
|
@@ -8,14 +8,7 @@ The event module provides types that represent what is happening in dbt in `even
|
|
8
8
|
When events are processed via `fire_event`, nearly everything is logged. Whether or not the user has enabled the debug flag, all debug messages are still logged to the file. However, some events are particularly time consuming to construct because they return a huge amount of data. Today, the only messages in this category are cache events and are only logged if the `--log-cache-events` flag is on. This is important because these messages should not be created unless they are going to be logged, because they cause a noticable performance degredation. These events use a "fire_event_if" functions.
|
9
9
|
|
10
10
|
# Adding a New Event
|
11
|
-
|
12
|
-
* run the protoc compiler to update types_pb2.py: make proto_types
|
13
|
-
* Add a wrapping class in dbt_common/event/types.py with a Level superclass plus code and message methods
|
14
|
-
* Add the class to tests/unit/test_events.py
|
15
|
-
|
16
|
-
We have switched from using betterproto to using google protobuf, because of a lack of support for Struct fields in betterproto.
|
17
|
-
|
18
|
-
The google protobuf interface is janky and very much non-Pythonic. The "generated" classes in types_pb2.py do not resemble regular Python classes. They do not have normal constructors; they can only be constructed empty. They can be "filled" by setting fields individually or using a json_format method like ParseDict. We have wrapped the logging events with a class (in types.py) which allows using a constructor -- keywords only, no positional parameters.
|
11
|
+
All protos have been moved into the central protos repository. To edit an event proto, edit https://github.com/dbt-labs/proto-python-public or open an issue on that repository.
|
19
12
|
|
20
13
|
## Required for Every Event
|
21
14
|
|
@@ -1,17 +1,15 @@
|
|
1
|
-
from enum import Enum
|
2
1
|
import os
|
3
2
|
import threading
|
3
|
+
from enum import Enum
|
4
|
+
from typing import Callable, Optional, Protocol
|
5
|
+
|
4
6
|
from dbt_common.events import types_pb2
|
5
|
-
from google.protobuf.json_format import
|
7
|
+
from google.protobuf.json_format import MessageToDict, MessageToJson, ParseDict
|
6
8
|
from google.protobuf.message import Message
|
7
|
-
from dbt_common.events.helpers import get_json_string_utcnow
|
8
|
-
from typing import Callable, Optional
|
9
9
|
|
10
|
+
from dbt_common.events.helpers import get_json_string_utcnow
|
10
11
|
from dbt_common.invocation import get_invocation_id
|
11
12
|
|
12
|
-
from typing import Protocol
|
13
|
-
|
14
|
-
|
15
13
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
16
14
|
# These base types define the _required structure_ for the concrete event #
|
17
15
|
# types defined in types.py #
|
@@ -66,8 +64,8 @@ class BaseEvent:
|
|
66
64
|
self.pb_msg = ParseDict(kwargs, msg_cls())
|
67
65
|
except Exception as exc:
|
68
66
|
# Imports need to be here to avoid circular imports
|
69
|
-
from dbt_common.events.types import Note
|
70
67
|
from dbt_common.events.functions import fire_event
|
68
|
+
from dbt_common.events.types import Note
|
71
69
|
|
72
70
|
error_msg = f"[{class_name}]: Unable to parse logging event dictionary. {exc}. Dictionary: {kwargs}"
|
73
71
|
# If we're testing throw an error so that we notice failures
|
@@ -30,12 +30,15 @@ class EventManager:
|
|
30
30
|
|
31
31
|
@property
|
32
32
|
def warn_error_options(self) -> Union[WarnErrorOptions, WarnErrorOptionsV2]:
|
33
|
+
# Technically this always returns a WarnErrorOptionsV2, but to remain backwards compatible
|
34
|
+
# with the protocol, we need to type the function as being able to return either.
|
35
|
+
|
33
36
|
if self._warn_error_options is None:
|
34
37
|
from dbt_common.events.functions import WARN_ERROR_OPTIONS
|
35
38
|
|
36
39
|
return WARN_ERROR_OPTIONS._warn_error_options_v2
|
37
40
|
|
38
|
-
return self._warn_error_options
|
41
|
+
return self._warn_error_options._warn_error_options_v2
|
39
42
|
|
40
43
|
@warn_error_options.setter
|
41
44
|
def warn_error_options(
|
@@ -1,7 +1,7 @@
|
|
1
1
|
from pathlib import Path
|
2
2
|
|
3
3
|
from dbt_common.events.event_manager_client import get_event_manager
|
4
|
-
from dbt_common.helper_types import WarnErrorOptions
|
4
|
+
from dbt_common.helper_types import WarnErrorOptions, WarnErrorOptionsV2
|
5
5
|
from dbt_common.invocation import get_invocation_id
|
6
6
|
from dbt_common.utils.encoding import ForgivingJSONEncoder
|
7
7
|
from dbt_common.events.base_types import BaseEvent, EventLevel, EventMsg
|
@@ -18,7 +18,9 @@ from google.protobuf.json_format import MessageToDict
|
|
18
18
|
LOG_VERSION = 3
|
19
19
|
metadata_vars: Optional[Dict[str, str]] = None
|
20
20
|
_METADATA_ENV_PREFIX = "DBT_ENV_CUSTOM_ENV_"
|
21
|
-
WARN_ERROR_OPTIONS = WarnErrorOptions(
|
21
|
+
WARN_ERROR_OPTIONS: Union[WarnErrorOptions, WarnErrorOptionsV2] = WarnErrorOptions(
|
22
|
+
include=[], exclude=[]
|
23
|
+
)
|
22
24
|
WARN_ERROR = False
|
23
25
|
|
24
26
|
# This global, and the following two functions for capturing stdout logs are
|
@@ -177,6 +177,13 @@ class WarnErrorOptionsV2(dbtClassMixin):
|
|
177
177
|
if item not in self._valid_error_names:
|
178
178
|
raise ValidationError(f"{item} is not a valid dbt error name.")
|
179
179
|
|
180
|
+
@property
|
181
|
+
def _warn_error_options_v2(self) -> WarnErrorOptionsV2:
|
182
|
+
# This is necessary because in core we directly set the WARN_ERROR_OPTIONS global variable
|
183
|
+
# without this we'd need to do isinstance checks in `EventManager.warn_error_options`, which
|
184
|
+
# would be costly as it gets called every time an event is fired.
|
185
|
+
return self
|
186
|
+
|
180
187
|
def _error_all(self) -> bool:
|
181
188
|
"""Is `*` or `all` set as error?"""
|
182
189
|
return self.error in self.ERROR_ALL
|
@@ -30,6 +30,7 @@ classifiers = [
|
|
30
30
|
dependencies = [
|
31
31
|
"agate>=1.7.0,<1.10",
|
32
32
|
"colorama>=0.3.9,<0.5",
|
33
|
+
"dbt-protos>=1.0.291,<2.0.0",
|
33
34
|
"deepdiff>=7.0,<8.0",
|
34
35
|
"isodate>=0.6,<0.7",
|
35
36
|
"jsonschema>=4.0,<5.0",
|
@@ -115,7 +116,6 @@ flake8 = "python -m flake8 ."
|
|
115
116
|
mypy = "python -m mypy ."
|
116
117
|
|
117
118
|
[tool.black]
|
118
|
-
extend-exclude = "dbt_common/events/types_pb2.py"
|
119
119
|
line-length = 99
|
120
120
|
target-version = ['py38']
|
121
121
|
|
@@ -124,7 +124,6 @@ max-line-length = 99
|
|
124
124
|
select = ["E", "W", "F"]
|
125
125
|
ignore = ["E203", "E501", "E741", "W503", "W504"]
|
126
126
|
exclude = [
|
127
|
-
"dbt_common/events/types_pb2.py",
|
128
127
|
"venv",
|
129
128
|
".venv",
|
130
129
|
"env*",
|
@@ -143,7 +142,6 @@ disallow_untyped_defs = false # TODO: add type annotations everywhere
|
|
143
142
|
warn_redundant_casts = true
|
144
143
|
ignore_missing_imports = true
|
145
144
|
exclude = [
|
146
|
-
"dbt_common/events/types_pb2.py",
|
147
145
|
"env*",
|
148
146
|
"third-party-stubs/*",
|
149
147
|
]
|
@@ -1 +0,0 @@
|
|
1
|
-
version = "1.24.0"
|
@@ -1,156 +0,0 @@
|
|
1
|
-
syntax = "proto3";
|
2
|
-
|
3
|
-
package proto_types;
|
4
|
-
|
5
|
-
import "google/protobuf/timestamp.proto";
|
6
|
-
|
7
|
-
// Common event info
|
8
|
-
message EventInfo {
|
9
|
-
string name = 1;
|
10
|
-
string code = 2;
|
11
|
-
string msg = 3;
|
12
|
-
string level = 4;
|
13
|
-
string invocation_id = 5;
|
14
|
-
int32 pid = 6;
|
15
|
-
string thread = 7;
|
16
|
-
google.protobuf.Timestamp ts = 8;
|
17
|
-
map<string, string> extra = 9;
|
18
|
-
string category = 10;
|
19
|
-
}
|
20
|
-
|
21
|
-
// GenericMessage, used for deserializing only
|
22
|
-
message GenericMessage {
|
23
|
-
EventInfo info = 1;
|
24
|
-
}
|
25
|
-
|
26
|
-
// D - Deprecations
|
27
|
-
|
28
|
-
// D018
|
29
|
-
message BehaviorChangeEvent {
|
30
|
-
string flag_name = 1;
|
31
|
-
string flag_source = 2;
|
32
|
-
string description = 3;
|
33
|
-
string docs_url = 4;
|
34
|
-
}
|
35
|
-
|
36
|
-
message BehaviorChangeEventMsg {
|
37
|
-
EventInfo info = 1;
|
38
|
-
BehaviorChangeEvent data = 2;
|
39
|
-
}
|
40
|
-
|
41
|
-
// M - Deps generation
|
42
|
-
|
43
|
-
// M020
|
44
|
-
message RetryExternalCall {
|
45
|
-
int32 attempt = 1;
|
46
|
-
int32 max = 2;
|
47
|
-
}
|
48
|
-
|
49
|
-
message RetryExternalCallMsg {
|
50
|
-
EventInfo info = 1;
|
51
|
-
RetryExternalCall data = 2;
|
52
|
-
}
|
53
|
-
|
54
|
-
// M021
|
55
|
-
message RecordRetryException {
|
56
|
-
string exc = 1;
|
57
|
-
}
|
58
|
-
|
59
|
-
message RecordRetryExceptionMsg {
|
60
|
-
EventInfo info = 1;
|
61
|
-
RecordRetryException data = 2;
|
62
|
-
}
|
63
|
-
|
64
|
-
// Z - Misc
|
65
|
-
|
66
|
-
// Z005
|
67
|
-
message SystemCouldNotWrite {
|
68
|
-
string path = 1;
|
69
|
-
string reason = 2;
|
70
|
-
string exc = 3;
|
71
|
-
}
|
72
|
-
|
73
|
-
message SystemCouldNotWriteMsg {
|
74
|
-
EventInfo info = 1;
|
75
|
-
SystemCouldNotWrite data = 2;
|
76
|
-
}
|
77
|
-
|
78
|
-
// Z006
|
79
|
-
message SystemExecutingCmd {
|
80
|
-
repeated string cmd = 1;
|
81
|
-
}
|
82
|
-
|
83
|
-
message SystemExecutingCmdMsg {
|
84
|
-
EventInfo info = 1;
|
85
|
-
SystemExecutingCmd data = 2;
|
86
|
-
}
|
87
|
-
|
88
|
-
// Z007
|
89
|
-
message SystemStdOut{
|
90
|
-
string bmsg = 1;
|
91
|
-
}
|
92
|
-
|
93
|
-
message SystemStdOutMsg {
|
94
|
-
EventInfo info = 1;
|
95
|
-
SystemStdOut data = 2;
|
96
|
-
}
|
97
|
-
|
98
|
-
// Z008
|
99
|
-
message SystemStdErr {
|
100
|
-
string bmsg = 1;
|
101
|
-
}
|
102
|
-
|
103
|
-
message SystemStdErrMsg {
|
104
|
-
EventInfo info = 1;
|
105
|
-
SystemStdErr data = 2;
|
106
|
-
}
|
107
|
-
|
108
|
-
// Z009
|
109
|
-
message SystemReportReturnCode {
|
110
|
-
int32 returncode = 1;
|
111
|
-
}
|
112
|
-
|
113
|
-
message SystemReportReturnCodeMsg {
|
114
|
-
EventInfo info = 1;
|
115
|
-
SystemReportReturnCode data = 2;
|
116
|
-
}
|
117
|
-
|
118
|
-
// Z017
|
119
|
-
message Formatting {
|
120
|
-
string msg = 1;
|
121
|
-
}
|
122
|
-
|
123
|
-
message FormattingMsg {
|
124
|
-
EventInfo info = 1;
|
125
|
-
Formatting data = 2;
|
126
|
-
}
|
127
|
-
|
128
|
-
// Z050
|
129
|
-
message Note {
|
130
|
-
string msg = 1;
|
131
|
-
}
|
132
|
-
|
133
|
-
message NoteMsg {
|
134
|
-
EventInfo info = 1;
|
135
|
-
Note data = 2;
|
136
|
-
}
|
137
|
-
|
138
|
-
// Z052
|
139
|
-
message PrintEvent {
|
140
|
-
string msg = 1;
|
141
|
-
}
|
142
|
-
|
143
|
-
message PrintEventMsg {
|
144
|
-
EventInfo info = 1;
|
145
|
-
PrintEvent data = 2;
|
146
|
-
}
|
147
|
-
|
148
|
-
// Z053
|
149
|
-
message RecordReplayIssue {
|
150
|
-
string msg = 1;
|
151
|
-
}
|
152
|
-
|
153
|
-
message RecordReplayIssueMsg {
|
154
|
-
EventInfo info = 1;
|
155
|
-
RecordReplayIssue data = 2;
|
156
|
-
}
|
@@ -1,91 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
4
|
-
# source: types.proto
|
5
|
-
# Protobuf Python Version: 5.28.3
|
6
|
-
"""Generated protocol buffer code."""
|
7
|
-
from google.protobuf import descriptor as _descriptor
|
8
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
10
|
-
from google.protobuf import symbol_database as _symbol_database
|
11
|
-
from google.protobuf.internal import builder as _builder
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
14
|
-
5,
|
15
|
-
28,
|
16
|
-
3,
|
17
|
-
'',
|
18
|
-
'types.proto'
|
19
|
-
)
|
20
|
-
# @@protoc_insertion_point(imports)
|
21
|
-
|
22
|
-
_sym_db = _symbol_database.Default()
|
23
|
-
|
24
|
-
|
25
|
-
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
26
|
-
|
27
|
-
|
28
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0btypes.proto\x12\x0bproto_types\x1a\x1fgoogle/protobuf/timestamp.proto\"\x91\x02\n\tEventInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04\x63ode\x18\x02 \x01(\t\x12\x0b\n\x03msg\x18\x03 \x01(\t\x12\r\n\x05level\x18\x04 \x01(\t\x12\x15\n\rinvocation_id\x18\x05 \x01(\t\x12\x0b\n\x03pid\x18\x06 \x01(\x05\x12\x0e\n\x06thread\x18\x07 \x01(\t\x12&\n\x02ts\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x05\x65xtra\x18\t \x03(\x0b\x32!.proto_types.EventInfo.ExtraEntry\x12\x10\n\x08\x63\x61tegory\x18\n \x01(\t\x1a,\n\nExtraEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"6\n\x0eGenericMessage\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\"d\n\x13\x42\x65haviorChangeEvent\x12\x11\n\tflag_name\x18\x01 \x01(\t\x12\x13\n\x0b\x66lag_source\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x10\n\x08\x64ocs_url\x18\x04 \x01(\t\"n\n\x16\x42\x65haviorChangeEventMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12.\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32 .proto_types.BehaviorChangeEvent\"1\n\x11RetryExternalCall\x12\x0f\n\x07\x61ttempt\x18\x01 \x01(\x05\x12\x0b\n\x03max\x18\x02 \x01(\x05\"j\n\x14RetryExternalCallMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12,\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1e.proto_types.RetryExternalCall\"#\n\x14RecordRetryException\x12\x0b\n\x03\x65xc\x18\x01 \x01(\t\"p\n\x17RecordRetryExceptionMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12/\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32!.proto_types.RecordRetryException\"@\n\x13SystemCouldNotWrite\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\x0b\n\x03\x65xc\x18\x03 \x01(\t\"n\n\x16SystemCouldNotWriteMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12.\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32 .proto_types.SystemCouldNotWrite\"!\n\x12SystemExecutingCmd\x12\x0b\n\x03\x63md\x18\x01 \x03(\t\"l\n\x15SystemExecutingCmdMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12-\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1f.proto_types.SystemExecutingCmd\"\x1c\n\x0cSystemStdOut\x12\x0c\n\x04\x62msg\x18\x01 \x01(\t\"`\n\x0fSystemStdOutMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12\'\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x19.proto_types.SystemStdOut\"\x1c\n\x0cSystemStdErr\x12\x0c\n\x04\x62msg\x18\x01 \x01(\t\"`\n\x0fSystemStdErrMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12\'\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x19.proto_types.SystemStdErr\",\n\x16SystemReportReturnCode\x12\x12\n\nreturncode\x18\x01 \x01(\x05\"t\n\x19SystemReportReturnCodeMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12\x31\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32#.proto_types.SystemReportReturnCode\"\x19\n\nFormatting\x12\x0b\n\x03msg\x18\x01 \x01(\t\"\\\n\rFormattingMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12%\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x17.proto_types.Formatting\"\x13\n\x04Note\x12\x0b\n\x03msg\x18\x01 \x01(\t\"P\n\x07NoteMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12\x1f\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x11.proto_types.Note\"\x19\n\nPrintEvent\x12\x0b\n\x03msg\x18\x01 \x01(\t\"\\\n\rPrintEventMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12%\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x17.proto_types.PrintEvent\" \n\x11RecordReplayIssue\x12\x0b\n\x03msg\x18\x01 \x01(\t\"j\n\x14RecordReplayIssueMsg\x12$\n\x04info\x18\x01 \x01(\x0b\x32\x16.proto_types.EventInfo\x12,\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1e.proto_types.RecordReplayIssueb\x06proto3')
|
29
|
-
|
30
|
-
_globals = globals()
|
31
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
32
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'types_pb2', _globals)
|
33
|
-
if not _descriptor._USE_C_DESCRIPTORS:
|
34
|
-
DESCRIPTOR._loaded_options = None
|
35
|
-
_globals['_EVENTINFO_EXTRAENTRY']._loaded_options = None
|
36
|
-
_globals['_EVENTINFO_EXTRAENTRY']._serialized_options = b'8\001'
|
37
|
-
_globals['_EVENTINFO']._serialized_start=62
|
38
|
-
_globals['_EVENTINFO']._serialized_end=335
|
39
|
-
_globals['_EVENTINFO_EXTRAENTRY']._serialized_start=291
|
40
|
-
_globals['_EVENTINFO_EXTRAENTRY']._serialized_end=335
|
41
|
-
_globals['_GENERICMESSAGE']._serialized_start=337
|
42
|
-
_globals['_GENERICMESSAGE']._serialized_end=391
|
43
|
-
_globals['_BEHAVIORCHANGEEVENT']._serialized_start=393
|
44
|
-
_globals['_BEHAVIORCHANGEEVENT']._serialized_end=493
|
45
|
-
_globals['_BEHAVIORCHANGEEVENTMSG']._serialized_start=495
|
46
|
-
_globals['_BEHAVIORCHANGEEVENTMSG']._serialized_end=605
|
47
|
-
_globals['_RETRYEXTERNALCALL']._serialized_start=607
|
48
|
-
_globals['_RETRYEXTERNALCALL']._serialized_end=656
|
49
|
-
_globals['_RETRYEXTERNALCALLMSG']._serialized_start=658
|
50
|
-
_globals['_RETRYEXTERNALCALLMSG']._serialized_end=764
|
51
|
-
_globals['_RECORDRETRYEXCEPTION']._serialized_start=766
|
52
|
-
_globals['_RECORDRETRYEXCEPTION']._serialized_end=801
|
53
|
-
_globals['_RECORDRETRYEXCEPTIONMSG']._serialized_start=803
|
54
|
-
_globals['_RECORDRETRYEXCEPTIONMSG']._serialized_end=915
|
55
|
-
_globals['_SYSTEMCOULDNOTWRITE']._serialized_start=917
|
56
|
-
_globals['_SYSTEMCOULDNOTWRITE']._serialized_end=981
|
57
|
-
_globals['_SYSTEMCOULDNOTWRITEMSG']._serialized_start=983
|
58
|
-
_globals['_SYSTEMCOULDNOTWRITEMSG']._serialized_end=1093
|
59
|
-
_globals['_SYSTEMEXECUTINGCMD']._serialized_start=1095
|
60
|
-
_globals['_SYSTEMEXECUTINGCMD']._serialized_end=1128
|
61
|
-
_globals['_SYSTEMEXECUTINGCMDMSG']._serialized_start=1130
|
62
|
-
_globals['_SYSTEMEXECUTINGCMDMSG']._serialized_end=1238
|
63
|
-
_globals['_SYSTEMSTDOUT']._serialized_start=1240
|
64
|
-
_globals['_SYSTEMSTDOUT']._serialized_end=1268
|
65
|
-
_globals['_SYSTEMSTDOUTMSG']._serialized_start=1270
|
66
|
-
_globals['_SYSTEMSTDOUTMSG']._serialized_end=1366
|
67
|
-
_globals['_SYSTEMSTDERR']._serialized_start=1368
|
68
|
-
_globals['_SYSTEMSTDERR']._serialized_end=1396
|
69
|
-
_globals['_SYSTEMSTDERRMSG']._serialized_start=1398
|
70
|
-
_globals['_SYSTEMSTDERRMSG']._serialized_end=1494
|
71
|
-
_globals['_SYSTEMREPORTRETURNCODE']._serialized_start=1496
|
72
|
-
_globals['_SYSTEMREPORTRETURNCODE']._serialized_end=1540
|
73
|
-
_globals['_SYSTEMREPORTRETURNCODEMSG']._serialized_start=1542
|
74
|
-
_globals['_SYSTEMREPORTRETURNCODEMSG']._serialized_end=1658
|
75
|
-
_globals['_FORMATTING']._serialized_start=1660
|
76
|
-
_globals['_FORMATTING']._serialized_end=1685
|
77
|
-
_globals['_FORMATTINGMSG']._serialized_start=1687
|
78
|
-
_globals['_FORMATTINGMSG']._serialized_end=1779
|
79
|
-
_globals['_NOTE']._serialized_start=1781
|
80
|
-
_globals['_NOTE']._serialized_end=1800
|
81
|
-
_globals['_NOTEMSG']._serialized_start=1802
|
82
|
-
_globals['_NOTEMSG']._serialized_end=1882
|
83
|
-
_globals['_PRINTEVENT']._serialized_start=1884
|
84
|
-
_globals['_PRINTEVENT']._serialized_end=1909
|
85
|
-
_globals['_PRINTEVENTMSG']._serialized_start=1911
|
86
|
-
_globals['_PRINTEVENTMSG']._serialized_end=2003
|
87
|
-
_globals['_RECORDREPLAYISSUE']._serialized_start=2005
|
88
|
-
_globals['_RECORDREPLAYISSUE']._serialized_end=2037
|
89
|
-
_globals['_RECORDREPLAYISSUEMSG']._serialized_start=2039
|
90
|
-
_globals['_RECORDREPLAYISSUEMSG']._serialized_end=2145
|
91
|
-
# @@protoc_insertion_point(module_scope)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/core/meta/code/__init__.pyi
RENAMED
File without changes
|
{dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/core/meta/code/builder.pyi
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/core/meta/types/__init__.pyi
RENAMED
File without changes
|
{dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/core/meta/types/common.pyi
RENAMED
File without changes
|
File without changes
|
{dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/core/meta/types/unpack.pyi
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{dbt_common-1.24.0 → dbt_common-2.0.0}/third-party-stubs/mashumaro/jsonschema/annotations.pyi
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|