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

DYN-8586: Update script to use boto3 #16008

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

zeusongit
Copy link
Contributor

Purpose

Python version (3.8) that we are using in build machine has officially EOL, in order to update the build machine to latest version of python the PR updates the script to use boto3 python library, that supports latest(3.13) version of python.

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated
  • This PR contains no files larger than 50 MB

Release Notes

  • Update s3 script to use boto3

Reviewers

@DynamoDS/eidos

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-8586

s3.upload_file(
Filename=fn,
Bucket=bucket_name,
Key=os.path.basename(key),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @QilongTang, I had a question here, a few lines above we are prefixing the file name with other things, but here we are passing just the file name. Should we remove the line above?

Copy link
Contributor

Choose a reason for hiding this comment

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

The key seems to be the date string 20250327T0518 from e.g. DynamoCoreRuntime_3.5.0.8161_20250327T0518.zip. Maybe not change this for now

Copy link
Contributor

Choose a reason for hiding this comment

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

Per our conversation at standup, feel free to make the change!

@zeusongit zeusongit added this to the 3.5 milestone Mar 27, 2025
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