Closed wong-a closed 3 years ago
I'm still getting some permissions errors creating CloudWatch managed rules for some tests and have to sort that out.
Added instructions in the CONTRIBUTING guide to add missing CloudWatchEventsFullAccess policy to run tests successfully.
I have one suggestion: can we link this contribution file to the Readme file? We can have link this doc in Readme's Table of contents so user can have a better entry point for local testing and contributing. It could be as easy as one line in the table and link to this doc.
Table of Contents should reflect the contents of the document - so don't just add something if it's not on the same page. Adding a section that links to the contribution guide would be good to have though. Some examples:
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository
Issue #, if available: N/A
Description of changes:
Fixes tox not running locally due to package version conflicts and updates CONTRIBUTING.md with steps to run integ tests.
tox
was giving the following error before:This seems to be triggered by the
install_command
line in tox.ini: https://github.com/aws/aws-step-functions-data-science-sdk-python/blob/fa979a4544e3701bf203c7dc2ee72934a20482d4/tox.ini#L12I've modified it to use
deps
which seems like the normal way to specify dependencies for the virtual environment. https://tox.readthedocs.io/en/latest/config.html#conf-deps.Usage in other packages:
Across all public tox.ini files in GitHub,
deps
has 77,440 usages compared to 8,959 forinstall_command
The integ tests also require two IAM roles to give Step Functions and SageMaker permissions to execute actions on your behalf. I added instructions to create the roles in the CONTRIBUTING guide.
https://github.com/aws/aws-step-functions-data-science-sdk-python/blob/fa979a4544e3701bf203c7dc2ee72934a20482d4/tests/integ/conftest.py#L44-L50
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.