-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6,517 changed files
with
471,307 additions
and
152,272 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
48 changes: 48 additions & 0 deletions
48
.buildkite/dagster-buildkite/dagster_buildkite/pipelines/dagster_oss_nightly_pipeline.py
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,48 @@ | ||
from typing import List | ||
|
||
from dagster_buildkite.package_spec import PackageSpec | ||
from dagster_buildkite.python_version import AvailablePythonVersion | ||
from dagster_buildkite.steps.packages import ( | ||
build_steps_from_package_specs, | ||
gcp_creds_extra_cmds, | ||
k8s_extra_cmds, | ||
) | ||
from dagster_buildkite.utils import BuildkiteStep | ||
|
||
|
||
def build_dagster_oss_nightly_steps() -> List[BuildkiteStep]: | ||
steps: List[BuildkiteStep] = [] | ||
|
||
steps += build_steps_from_package_specs( | ||
[ | ||
PackageSpec( | ||
"python_modules/libraries/dagster-dbt", | ||
pytest_tox_factors=["dbt18-snowflake", "dbt18-bigquery"], | ||
env_vars=[ | ||
"SNOWFLAKE_ACCOUNT", | ||
"SNOWFLAKE_USER", | ||
"SNOWFLAKE_PASSWORD", | ||
"GCP_PROJECT_ID", | ||
], | ||
pytest_extra_cmds=gcp_creds_extra_cmds, | ||
unsupported_python_versions=[ | ||
AvailablePythonVersion.V3_12, | ||
], | ||
), | ||
PackageSpec( | ||
"python_modules/libraries/dagster-k8s", | ||
env_vars=[ | ||
"AWS_ACCOUNT_ID", | ||
"AWS_ACCESS_KEY_ID", | ||
"AWS_SECRET_ACCESS_KEY", | ||
"BUILDKITE_SECRETS_BUCKET", | ||
], | ||
pytest_tox_factors=[ | ||
"nightly", | ||
], | ||
pytest_extra_cmds=k8s_extra_cmds, | ||
), | ||
] | ||
) | ||
|
||
return steps |
70 changes: 70 additions & 0 deletions
70
.buildkite/dagster-buildkite/dagster_buildkite/pipelines/prerelease_package.py
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,70 @@ | ||
import re | ||
from pathlib import Path | ||
from typing import List | ||
|
||
from dagster_buildkite.python_version import AvailablePythonVersion | ||
from dagster_buildkite.step_builder import CommandStepBuilder | ||
from dagster_buildkite.steps.packages import _get_uncustomized_pkg_roots | ||
from dagster_buildkite.utils import BlockStep, BuildkiteStep | ||
|
||
|
||
def build_prerelease_package_steps() -> List[BuildkiteStep]: | ||
steps: List[BuildkiteStep] = [] | ||
|
||
packages = ( | ||
_get_uncustomized_pkg_roots("python_modules", []) | ||
+ _get_uncustomized_pkg_roots("python_modules/libraries", []) | ||
+ _get_uncustomized_pkg_roots("examples/experimental", []) | ||
) | ||
|
||
# Get only packages that have a fixed version in setup.py | ||
filtered_packages = [] | ||
for package in packages: | ||
setup_file = Path(package) / "setup.py" | ||
contents = setup_file.read_text() | ||
if re.findall(r"version=\"[\d\.]+\"", contents): | ||
filtered_packages.append(package) | ||
|
||
input_step: BlockStep = { | ||
"block": ":question: Choose package", | ||
"prompt": None, | ||
"fields": [ | ||
{ | ||
"select": "Select a package to publish", | ||
"key": "package-to-release-path", | ||
"options": [ | ||
{ | ||
"label": package[len("python_modules/") :] | ||
if package.startswith("python_modules/") | ||
else package, | ||
"value": package, | ||
} | ||
for package in filtered_packages | ||
], | ||
"hint": None, | ||
"default": None, | ||
"required": True, | ||
"multiple": None, | ||
}, | ||
{ | ||
"text": "Enter the version to publish", | ||
"required": False, | ||
"key": "version-to-release", | ||
"default": None, | ||
"hint": "Leave blank to auto-increment the minor version", | ||
}, | ||
], | ||
} | ||
steps.append(input_step) | ||
|
||
steps.append( | ||
CommandStepBuilder(":package: Build and publish package") | ||
.run( | ||
"pip install build", | ||
"sh ./scripts/build_and_publish.sh", | ||
) | ||
.on_test_image(AvailablePythonVersion.get_default(), env=["PYPI_TOKEN"]) | ||
.build() | ||
) | ||
|
||
return steps |
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.