Skip to content
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

Remove direct python 3.8 dependencies from dagster-cloud-action now that it is EOL #201

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

gibsondan
Copy link
Member

Summary:

  • Don't install python 3.8 in every serverless build unless that version is what is being used
  • Use python 3.11 instead of 3.8 in the manylinux builder

Test Plan:
Create a release and run the action on a serverless deploy ofpython 3.8 through 3.12
Run a docker build locally using the latest manylinux builder

@gibsondan gibsondan requested a review from shalabhc October 8, 2024 21:37
Copy link

github-actions bot commented Oct 8, 2024

Your pull request is automatically being deployed to Dagster Cloud.

Location Status Link Updated
from_gh_action View in Cloud Oct 11, 2024 at 05:45 PM (UTC)

@gibsondan gibsondan force-pushed the buildmorepex2 branch 2 times, most recently from f19ea3b to 0ed5f5a Compare October 9, 2024 16:23
@@ -1,6 +1,6 @@
# Builds ghcr.io/daster-io/dagster-manylinux-builder:*

# This docker image contains the PEX builder (builder.pex) and is capable of
# This docker image contains the PEX builder (builder.pex) and is capable of
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well fix the outdated comment:

This docker image contains the dagster-cloud package and is ...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're copying builder.pex below but dont really use it anymore. I think we should remove it, given new versions of dagster-cloud directly reference the a manylinux tag and not latest. So we will not need to move latest and (very) old versions of dagster-cloud that use builder.pex will continue to work.

@@ -12,8 +12,8 @@
#
# $ echo $GITHUB-PAT | docker login ghcr.io -u USERNAME --password-stdin
#
# $ docker build . -f src/Dockerfile.dagster-manylinux-builder -t ghcr.io/dagster-io/dagster-manylinux-builder:latest
# $ docker push ghcr.io/dagster-io/dagster-manylinux-builder:latest
# $ docker build . -f src/Dockerfile.dagster-manylinux-builder -t ghcr.io/dagster-io/dagster-manylinux-builder:YOUR_IMAGE_TAG_HERE
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're now publishing these with a tag that matches the base manylinux version used, eg.

Should we document that here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we change the tag whenever the underlying image changes, even if the base manylinux version hasn't changed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise there is no way to downgrade if there is an issue

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah we could push a tag-per-build but there is no versioning system set up for that.

@shalabhc
Copy link
Contributor

IIUC we dont need a replacement for the "setup 3.8" step because our new build process produces a multi-platform pex that can run with 3.8 or 3.10 or 3.12 and one of these is expected in any github runner.

Leaving a note in this PR for context.

@shalabhc
Copy link
Contributor

Will this be 0.2 or remain 0.1?

@shalabhc shalabhc self-requested a review October 10, 2024 20:30
@gibsondan
Copy link
Member Author

I don't see any breaking changes here, so I was going to leave it 0.1

@@ -24,7 +24,7 @@ env:
jobs:
dagster_cloud_default_deploy:
name: Dagster Serverless Deploy
runs-on: ubuntu-20.04
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

…hat it is EOL

Summary:
- Don't install python 3.8 in every serverless build unless that version is what is being used
- Use python 3.11 instead of 3.8 in the manylinux builder

Test Plan:
Create a release and run the action on a serverless deploy ofpython 3.8 through 3.12
Run a docker build locally using the latest manylinux builder
@gibsondan gibsondan merged commit 62eb083 into main Oct 28, 2024
8 checks passed
@gibsondan gibsondan deleted the buildmorepex2 branch October 28, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants