Kevin Martin
09/07/2022, 12:21 PMPete Hunt
09/07/2022, 12:24 PMKevin Martin
09/07/2022, 12:28 PMPete Hunt
09/07/2022, 12:30 PMKevin Martin
09/07/2022, 12:31 PMPete Hunt
09/07/2022, 12:36 PMKevin Martin
09/07/2022, 12:38 PMPete Hunt
09/07/2022, 12:39 PMdagster project from-example
https://docs.dagster.io/dagster-cloud/deployment/serverless#without-github-gitlab-bitbucket-or-local-developmentKevin Martin
09/07/2022, 12:41 PMPete Hunt
09/07/2022, 1:07 PMKevin Martin
09/07/2022, 2:50 PMben
09/07/2022, 2:56 PMKevin Martin
09/07/2022, 2:56 PMben
09/07/2022, 2:57 PMKevin Martin
09/08/2022, 12:43 PMben
09/08/2022, 8:01 PMKevin Martin
09/09/2022, 11:49 AMben
09/12/2022, 3:14 PMKevin Martin
09/12/2022, 3:16 PMben
09/12/2022, 3:16 PMKevin Martin
09/12/2022, 3:18 PMben
09/12/2022, 3:18 PMKevin Martin
09/12/2022, 3:18 PMben
09/12/2022, 3:23 PMKevin Martin
09/12/2022, 3:25 PMben
09/12/2022, 3:26 PMKevin Martin
09/12/2022, 3:48 PMben
09/12/2022, 3:55 PMgithub3.exceptions.ForbiddenError: 403 You need admin access to the organization before adding a repository to it
for the dagster-tg
account trying to create a repo in the TheGuarantors
organizationKevin Martin
09/12/2022, 3:56 PMben
09/12/2022, 3:58 PMKevin Martin
09/12/2022, 4:13 PMben
09/12/2022, 4:32 PMKevin Martin
09/12/2022, 4:33 PMben
09/12/2022, 4:49 PMKevin Martin
09/12/2022, 4:50 PMYou cannot fork this repository to the selected destination due to a policy.
Could this be what’s interfering with your code, too?ben
09/12/2022, 5:00 PMKevin Martin
09/12/2022, 5:00 PMben
09/12/2022, 5:03 PMKevin Martin
09/12/2022, 5:04 PMben
09/13/2022, 2:48 PMKevin Martin
09/13/2022, 2:51 PMben
09/13/2022, 3:04 PMKevin Martin
09/13/2022, 3:04 PMben
09/13/2022, 3:09 PMKevin Martin
09/13/2022, 3:10 PMben
09/13/2022, 3:11 PMKevin Martin
09/13/2022, 3:13 PMben
09/13/2022, 3:16 PMKevin Martin
09/13/2022, 3:33 PMben
09/13/2022, 4:04 PMKevin Martin
09/13/2022, 5:10 PMops:
nabisco_cereals:
config:
super_secret:
env: SUPER_SECRET
dagster._core.errors.DagsterInvalidConfigError: Error in config for job
Error 1: Post processing at path root:ops:nabisco_cereals:config:super_secret of original value {'env': 'SUPER_SECRET'} failed:
dagster._config.errors.PostProcessingError: You have attempted to fetch the environment variable "SUPER_SECRET" which is not set. In order for this execution to succeed it must be set in this environment.
Stack Trace:
File "/usr/local/lib/python3.8/site-packages/dagster/_config/post_process.py", line 79, in _post_process
new_value = context.config_type.post_process(config_value)
File "/usr/local/lib/python3.8/site-packages/dagster/_config/source.py", line 42, in post_process
return str(_ensure_env_variable(cfg))
File "/usr/local/lib/python3.8/site-packages/dagster/_config/source.py", line 16, in _ensure_env_variable
raise PostProcessingError(
ben
09/20/2022, 6:59 PMKevin Martin
09/20/2022, 7:04 PMname: Serverless Branch Deployments
on:
pull_request:
types: [opened, synchronize, reopened, closed]
concurrency:
# Cancel in-progress runs on same branch
group: ${{ github.ref }}
cancel-in-progress: true
env:
DAGSTER_CLOUD_URL: "<http://dagster.cloud/theguarantors>"
#SUPER_SECRET: ${{ secrets.SUPER_SECRET }}
jobs:
parse_workspace:
runs-on: ubuntu-latest
outputs:
build_info: ${{ steps.parse-workspace.outputs.build_info }}
steps:
- uses: actions/checkout@v3
- name: Parse cloud workspace
id: parse-workspace
uses: dagster-io/dagster-cloud-action/actions/utils/parse_workspace@v0.1
with:
dagster_cloud_file: dagster_cloud.yaml
dagster_cloud_build_push:
runs-on: ubuntu-latest
needs: parse_workspace
name: Dagster Serverless Deploy
strategy:
fail-fast: false
matrix:
location: ${{ fromJSON(needs.parse_workspace.outputs.build_info) }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Build and deploy to Dagster Cloud serverless
uses: dagster-io/dagster-cloud-action/actions/serverless_branch_deploy@v0.1
with:
dagster_cloud_api_token: ${{ secrets.DAGSTER_CLOUD_API_TOKEN }}
location: ${{ toJson(matrix.location) }}
# Uncomment to pass through Github Action secrets as a JSON string of key-value pairs
# env_vars: ${{ toJson(secrets) }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SUPER_SECRET: ${{ secrets.SUPER_SECRET }}
name: Serverless Prod Deployment
on:
push:
branches:
- "main"
- "master"
concurrency:
# Cancel in-progress deploys to main branch
group: ${{ github.ref }}
cancel-in-progress: true
env:
DAGSTER_CLOUD_URL: "<http://dagster.cloud/theguarantors>"
DAGSTER_CLOUD_API_TOKEN: ${{ secrets.DAGSTER_CLOUD_API_TOKEN }}
# SUPER_SECRET: ${{ secrets.SUPER_SECRET }}
jobs:
parse_workspace:
runs-on: ubuntu-latest
outputs:
build_info: ${{ steps.parse-workspace.outputs.build_info }}
steps:
- uses: actions/checkout@v3
- name: Parse cloud workspace
id: parse-workspace
uses: dagster-io/dagster-cloud-action/actions/utils/parse_workspace@v0.1
with:
dagster_cloud_file: dagster_cloud.yaml
dagster_cloud_build_push:
runs-on: ubuntu-latest
needs: parse_workspace
name: Dagster Serverless Deploy
strategy:
fail-fast: false
matrix:
location: ${{ fromJSON(needs.parse_workspace.outputs.build_info) }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Build and deploy to Dagster Cloud serverless
uses: dagster-io/dagster-cloud-action/actions/serverless_prod_deploy@v0.1
with:
dagster_cloud_api_token: ${{ secrets.DAGSTER_CLOUD_API_TOKEN }}
location: ${{ toJson(matrix.location) }}
# Uncomment to pass through Github Action secrets as a JSON string of key-value pairs
# env_vars: ${{ toJson(secrets) }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SUPER_SECRET: ${{ secrets.SUPER_SECRET }}
ben
09/20/2022, 7:04 PM# Uncomment to pass through Github Action secrets as a JSON string of key-value pairs
# env_vars: ${{ toJson(secrets) }}
(you can also manually specify k/v pairs there instead of all secrets)Kevin Martin
09/20/2022, 7:15 PMben
09/20/2022, 8:13 PM