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

Fix moto env vars & pass AWS_SESSION_TOKEN to conda builds #12902

Merged
merged 4 commits into from
Mar 8, 2023

Conversation

ajschmidt8
Copy link
Member

@ajschmidt8 ajschmidt8 commented Mar 8, 2023

Description

This PR adds some additional AWS related environment variable mocks to the cudf pytests.

These environment variables are documented by moto here: https://docs.getmoto.org/en/latest/docs/getting_started.html#recommended-usage.

This is important because of some recent CI changes that we made which now populate the AWS_SESSION_TOKEN environment variable, which was not mocked prior to the changes in this PR.

Additionally, this PR adds the AWS_SESSION_TOKEN value to the script_env lists for our conda recipes so that it's value is passed through to builds. I also alphabetized the script_env lists.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

This PR adds some additional AWS related environment variable mocks to the `cudf` `pytest`s.

These environment variables are documented by `moto` here: https://docs.getmoto.org/en/latest/docs/getting_started.html#recommended-usage.

This is important because of some recent CI changes that we made which now populate the `AWS_SESSION_TOKEN` environment variable, which was not mocked prior to the changes in this PR.
@ajschmidt8 ajschmidt8 added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Mar 8, 2023
@ajschmidt8 ajschmidt8 requested review from a team as code owners March 8, 2023 15:11
@ajschmidt8 ajschmidt8 requested review from wence- and isVoid March 8, 2023 15:11
@github-actions github-actions bot added the Python Affects Python cuDF API. label Mar 8, 2023
@ajschmidt8 ajschmidt8 requested a review from a team as a code owner March 8, 2023 16:44
@github-actions github-actions bot added the conda label Mar 8, 2023
@ajschmidt8 ajschmidt8 changed the title Add additional mock env vars for moto Fix moto env vars & pass AWS_SESSION_TOKEN to conda builds Mar 8, 2023
@galipremsagar galipremsagar added the 5 - Ready to Merge Testing and reviews complete, ready to merge label Mar 8, 2023
@galipremsagar
Copy link
Contributor

/merge

@rapids-bot rapids-bot bot merged commit 5b62562 into rapidsai:branch-23.04 Mar 8, 2023
@ajschmidt8 ajschmidt8 deleted the mock-aws branch March 8, 2023 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to Merge Testing and reviews complete, ready to merge improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants