Skip to content

chore: pin linter dependencies and enable dependabot #192

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

Merged
merged 18 commits into from
Feb 18, 2022

Conversation

josecorella
Copy link
Contributor

@josecorella josecorella commented Feb 9, 2022

Description of changes:

  • PR pins linter dependencies
  • PR enables dependabot on master branch
  • any requirement files for tox were moved to the dev_requirements/ folder. This should not affect our docs.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Check any applicable:

  • Were any files moved? Moving files changes their URL, which breaks all hyperlinks to the files.

@josecorella josecorella marked this pull request as ready for review February 9, 2022 19:10
@josecorella josecorella requested a review from a team as a code owner February 9, 2022 19:10
Copy link
Contributor

@lavaleri lavaleri left a comment

Choose a reason for hiding this comment

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

You also need to update https://github.com/aws/aws-dynamodb-encryption-python/blob/master/.readthedocs.yaml

I would do a grep to ensure that there are not other test/requirements.txt or ci-requirements.txt or doc/requirements.txt referenced anywhere that needs updating

examples/tox.ini Outdated
@@ -24,7 +24,7 @@ passenv =
AWS_DEFAULT_REGION

sitepackages = False
deps = -rtest/requirements.txt
deps = -rdev_requirements/test-requirements.txt
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm wondering why this wasn't caught by CI. Does our Python CI not run the examples?

Copy link
Contributor Author

@josecorella josecorella Feb 10, 2022

Choose a reason for hiding this comment

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

yea ci does not run the examples, i'll go ahead and add them to the ci
hmm, ci does run the examples, I'm not 100% sure why it didn't get caught...

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like we test examples as part of release validation in https://github.com/aws/aws-dynamodb-encryption-python/blob/master/codebuild/release/validate.yml

However we don't run release validation in the PR CI, nor do we explicitly target pyx-examples in our CI.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

latest commit tests the examples and runs them in CI, also updates the release validation codebuild step so it uses the correct requirements file.

@@ -21,7 +21,7 @@ phases:
pre_build:
commands:
- cd examples
- sed -i "s/dynamodb-encryption-sdk/dynamodb-encryption-sdk==$VERSION/" test/requirements.txt
- sed -i "s/dynamodb-encryption-sdk/dynamodb-encryption-sdk==$VERSION/" ../../dev_requirements/test-requirements.txt
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this one too many ..s? Looks like we've only cd'd one level in.

Can we run a test release to make sure this is all good?

Copy link
Contributor Author

@josecorella josecorella Feb 16, 2022

Choose a reason for hiding this comment

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

great catch! turns out i also needed to navigate up a folder in the examples/tox.ini file. I'll send the successful run

@@ -21,7 +21,7 @@ phases:
pre_build:
commands:
- cd examples
- sed -i "s/dynamodb-encryption-sdk/dynamodb-encryption-sdk==$VERSION/" ../../dev_requirements/test-requirements.txt
- sed -i "s/dynamodb-encryption-sdk/dynamodb-encryption-sdk==$VERSION/" ../dev_requirements/examples-requirements.txt
Copy link
Contributor

Choose a reason for hiding this comment

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

This sed command seems like it probably breaks with the pinning of dependencies. When I try it locally I get:

dynamodb-encryption-sdk====3.1.0

@josecorella josecorella merged commit f694bcd into aws:master Feb 18, 2022
@josecorella josecorella deleted the pin-linter-deps branch February 18, 2022 22:38
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.

3 participants