-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow a full deployment not called 'prod' for pex deploys #155
Conversation
Your pull request is automatically being deployed to Dagster Cloud.
|
How suspicious is the test failure here? |
This is different from how you set it for hybrid deploys right? Could we make both use this env var? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's also different than how you set it for Docker deploys within serverless, agree that consistency would be ideal here:
We should also set this automatically when a new github action is created automatically from Dagster Cloud and the deployment isn't prod
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see inline
ah good points re consistency. I'll make this self consistent with how we do serverless docker deploys using the input field instead. eventually i want to replace the serverless workflow entirely with the new workflows we use for hybrid (https://github.com/dagster-io/dagster-cloud-hybrid-quickstart/) but haven't gotten around to testing, releasing and documenting that. |
@gibsondan - made this consistent with docker deploys using a new The test failures have been happening for a while and we haven't gotten around to identifying or fixing them yet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks - can you fill in the test plan? probably something like 'make a new serverless deployment that isn't prod, update the deploy.yml, it deploys to the correct place?'
deployment_name = None | ||
# INPUT_DEPLOYMENT is to the `deployment:` input value in action.yml | ||
deployment_name = os.getenv("INPUT_DEPLOYMENT", "prod") | ||
print(f"Deploying to a full deployment: {deployment_name}", flush=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Deploying to a deployment" reads a bit oddly
The default deployment name can be overridden using the
deployment:
input to the action. EgTest Plan
Rename a deployment to something other than
prod
Point the
build_deploy_python_executable
action indeploy.yml
to this branch and add thedeployment:
inputVerify that the workflow deployment works
Rename deployment back to
prod
Verify that workflow deployment fails
Remove
deployment:
inputVerify that the workflow deployment works again
Ran all above steps in a test org successfully.