-
Notifications
You must be signed in to change notification settings - Fork 1
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 optimize-triggers
- Loading branch information
Showing
218 changed files
with
287,334 additions
and
2,027 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,8 @@ jest.config.js | |
package.json | ||
package-lock.json | ||
scalingo.json | ||
yarn.lock | ||
cron.json | ||
|
||
*.css | ||
*.hbs |
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,49 @@ | ||
name: End-to-end tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
e2e: | ||
runs-on: ubuntu-latest | ||
environment: Staging | ||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Enable Corepack | ||
run: corepack enable | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: yarn | ||
|
||
- run: yarn --version | ||
|
||
- name: Install | ||
run: yarn --immutable | ||
|
||
- name: Run cypress tests | ||
run: yarn workspace @zerologementvacant/e2e start | ||
env: | ||
CYPRESS_API: ${{ vars.API_HOST }} | ||
CYPRESS_BASE_URL: ${{ vars.HOST }} | ||
CYPRESS_EMAIL: ${{ secrets.CYPRESS_EMAIL }} | ||
CYPRESS_PASSWORD: ${{ secrets.CYPRESS_PASSWORD }} | ||
|
||
- name: Upload screenshots | ||
uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: cypress-screenshots | ||
path: e2e/cypress/screenshots | ||
retention-days: 7 |
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 |
---|---|---|
|
@@ -38,3 +38,5 @@ yarn-error.log* | |
.pyc | ||
__pycache__ | ||
analytics/dagster/storage/ | ||
.duckdb | ||
.jsonl |
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,3 +1,6 @@ | ||
dagster-dbt | ||
dbt-duckdb | ||
|
||
matplotlib | ||
pandas | ||
requests | ||
requests |
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 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.dagster] | ||
module_name = "zlv_dbt.definitions" | ||
code_location_name = "zlv_dbt" |
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,18 @@ | ||
from setuptools import find_packages, setup | ||
|
||
setup( | ||
name="zlv_dbt", | ||
version="0.0.1", | ||
packages=find_packages(), | ||
install_requires=[ | ||
"dagster", | ||
"dagster-cloud", | ||
"dagster-dbt", | ||
"dbt-snowflake<1.9", | ||
], | ||
extras_require={ | ||
"dev": [ | ||
"dagster-webserver", | ||
] | ||
}, | ||
) |
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 @@ | ||
from .definitions import defs as defs |
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,10 @@ | ||
from dagster import AssetExecutionContext | ||
from dagster_dbt import DbtCliResource, dbt_assets | ||
|
||
from .constants import dbt_manifest_path | ||
|
||
|
||
@dbt_assets(manifest=dbt_manifest_path) | ||
def zlv_dbt_project_dbt_assets(context: AssetExecutionContext, dbt: DbtCliResource): | ||
yield from dbt.cli(["build"], context=context).stream() | ||
|
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,21 @@ | ||
import os | ||
from pathlib import Path | ||
|
||
from dagster_dbt import DbtCliResource | ||
|
||
dbt_project_dir = Path(__file__).joinpath("..", "..", "..", "..", "..", "dbt").resolve() | ||
dbt = DbtCliResource(project_dir=os.fspath(dbt_project_dir)) | ||
|
||
# If DAGSTER_DBT_PARSE_PROJECT_ON_LOAD is set, a manifest will be created at run time. | ||
# Otherwise, we expect a manifest to be present in the project's target directory. | ||
if os.getenv("DAGSTER_DBT_PARSE_PROJECT_ON_LOAD"): | ||
dbt_manifest_path = ( | ||
dbt.cli( | ||
["--quiet", "parse"], | ||
target_path=Path("target"), | ||
) | ||
.wait() | ||
.target_path.joinpath("manifest.json") | ||
) | ||
else: | ||
dbt_manifest_path = dbt_project_dir.joinpath("target", "manifest.json") |
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,16 @@ | ||
import os | ||
|
||
from dagster import Definitions | ||
from dagster_dbt import DbtCliResource | ||
|
||
from .assets import zlv_dbt_project_dbt_assets | ||
from .constants import dbt_project_dir | ||
from .schedules import schedules | ||
|
||
defs = Definitions( | ||
assets=[zlv_dbt_project_dbt_assets], | ||
schedules=schedules, | ||
resources={ | ||
"dbt": DbtCliResource(project_dir=os.fspath(dbt_project_dir)), | ||
}, | ||
) |
Oops, something went wrong.