-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into previous-state-manifest
- Loading branch information
Showing
38 changed files
with
1,349 additions
and
905 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: "Dependencies" | ||
body: "Bump freezegun from 0.3.12 to 1.3.0" | ||
time: 2023-12-04T00:09:45.00000Z | ||
custom: | ||
Author: dependabot[bot] | ||
PR: 9197 |
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,6 @@ | ||
kind: "Dependencies" | ||
body: "Bump peter-evans/create-pull-request from 5 to 6" | ||
time: 2024-02-12T01:13:24.00000Z | ||
custom: | ||
Author: dependabot[bot] | ||
PR: 9552 |
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,6 @@ | ||
kind: Dependencies | ||
body: Cap dbt-semantic-interfaces version range to <0.6 | ||
time: 2024-02-26T12:35:02.643779-08:00 | ||
custom: | ||
Author: tlento | ||
PR: "9671" |
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,6 @@ | ||
kind: Fixes | ||
body: Add target-path to retry | ||
time: 2024-02-23T16:21:07.83639Z | ||
custom: | ||
Author: aranke | ||
Issue: "8948" |
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,6 @@ | ||
kind: Security | ||
body: Update Jinja2 to >= 3.1.3 to address CVE-2024-22195 | ||
time: 2024-02-22T15:24:45.158305-08:00 | ||
custom: | ||
Author: QMalcolm | ||
PR: CVE-2024-22195 |
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,6 @@ | ||
kind: Under the Hood | ||
body: Restrict protobuf to major version 4. | ||
time: 2024-02-21T10:45:18.315195-05:00 | ||
custom: | ||
Author: peterallenwebb | ||
Issue: "9566" |
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,6 @@ | ||
kind: Under the Hood | ||
body: Make dbt-core compatible with Python 3.12 | ||
time: 2024-02-21T14:50:58.983559Z | ||
custom: | ||
Author: l1xnan aranke | ||
Issue: "9007" |
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,6 @@ | ||
kind: Under the Hood | ||
body: Implement primary key inference for model nodes | ||
time: 2024-02-23T11:50:21.257494-08:00 | ||
custom: | ||
Author: aliceliu | ||
Issue: "9652" |
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,6 @@ | ||
kind: Under the Hood | ||
body: Define UnitTestDefinition resource in dbt/artifacts/resources | ||
time: 2024-02-26T14:10:38.807154-05:00 | ||
custom: | ||
Author: michelleark | ||
Issue: "9667" |
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 |
---|---|---|
|
@@ -35,6 +35,6 @@ jobs: | |
github.event.pull_request.merged | ||
&& contains(github.event.label.name, 'backport') | ||
steps: | ||
- uses: tibdex/[email protected].3 | ||
- uses: tibdex/[email protected].4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -253,7 +253,7 @@ jobs: | |
push: 'origin origin/${{ matrix.target-branch }}' | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
author: 'Github Build Bot <[email protected]>' | ||
base: ${{ matrix.base-branch }} | ||
|
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,3 +1,3 @@ | ||
recursive-include dbt/adapters/include *.py *.sql *.yml *.html *.md .gitkeep .gitignore | ||
recursive-include dbt/include *.py *.sql *.yml *.html *.md .gitkeep .gitignore | ||
include dbt/py.typed | ||
recursive-include dbt/task/docs *.html |
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 |
---|---|---|
@@ -0,0 +1,80 @@ | ||
from dataclasses import dataclass, field | ||
import time | ||
from typing import Optional, Sequence, Dict, Any, List, Union | ||
|
||
from dbt_common.contracts.config.base import ( | ||
BaseConfig, | ||
CompareBehavior, | ||
MergeBehavior, | ||
) | ||
from dbt_common.contracts.config.metadata import ShowBehavior | ||
from dbt_common.dataclass_schema import dbtClassMixin, StrEnum | ||
|
||
from dbt.artifacts.resources.v1.config import metas, list_str | ||
from dbt.artifacts.resources.base import GraphResource | ||
from dbt.artifacts.resources import NodeVersion, DependsOn | ||
|
||
|
||
@dataclass | ||
class UnitTestConfig(BaseConfig): | ||
tags: Union[str, List[str]] = field( | ||
default_factory=list_str, | ||
metadata=metas(ShowBehavior.Hide, MergeBehavior.Append, CompareBehavior.Exclude), | ||
) | ||
meta: Dict[str, Any] = field( | ||
default_factory=dict, | ||
metadata=MergeBehavior.Update.meta(), | ||
) | ||
|
||
|
||
class UnitTestFormat(StrEnum): | ||
CSV = "csv" | ||
Dict = "dict" | ||
|
||
|
||
@dataclass | ||
class UnitTestInputFixture(dbtClassMixin): | ||
input: str | ||
rows: Optional[Union[str, List[Dict[str, Any]]]] = None | ||
format: UnitTestFormat = UnitTestFormat.Dict | ||
fixture: Optional[str] = None | ||
|
||
|
||
@dataclass | ||
class UnitTestOverrides(dbtClassMixin): | ||
macros: Dict[str, Any] = field(default_factory=dict) | ||
vars: Dict[str, Any] = field(default_factory=dict) | ||
env_vars: Dict[str, Any] = field(default_factory=dict) | ||
|
||
|
||
@dataclass | ||
class UnitTestNodeVersions(dbtClassMixin): | ||
include: Optional[List[NodeVersion]] = None | ||
exclude: Optional[List[NodeVersion]] = None | ||
|
||
|
||
@dataclass | ||
class UnitTestOutputFixture(dbtClassMixin): | ||
rows: Optional[Union[str, List[Dict[str, Any]]]] = None | ||
format: UnitTestFormat = UnitTestFormat.Dict | ||
fixture: Optional[str] = None | ||
|
||
|
||
@dataclass | ||
class UnitTestDefinitionMandatory: | ||
model: str | ||
given: Sequence[UnitTestInputFixture] | ||
expect: UnitTestOutputFixture | ||
|
||
|
||
@dataclass | ||
class UnitTestDefinition(GraphResource, UnitTestDefinitionMandatory): | ||
description: str = "" | ||
overrides: Optional[UnitTestOverrides] = None | ||
depends_on: DependsOn = field(default_factory=DependsOn) | ||
config: UnitTestConfig = field(default_factory=UnitTestConfig) | ||
checksum: Optional[str] = None | ||
schema: Optional[str] = None | ||
created_at: float = field(default_factory=lambda: time.time()) | ||
versions: Optional[UnitTestNodeVersions] = None | ||
version: Optional[NodeVersion] = 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
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.