-
Notifications
You must be signed in to change notification settings - Fork 342
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
Test fix ups #45
Test fix ups #45
Conversation
Units did not trigger on #38 (see 00:26 WARNING: No tests found for detected changes in build_ci) so it was not evident that the unit tests for cloudformation needed to be updated as part of that PR, and are now broken. |
flags="${flags//=/,}" | ||
flags="${flags//[^a-zA-Z0-9_,]/_}" | ||
|
||
bash <(curl -s https://codecov.io/bash) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This really makes my skin crawl. Especially since we have a virtualenv we should be able to use the codecov package. pip install --user codecov && codecov -t <the-repository-upload-token>
Looking at the code I think it supports the same flags.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They're not exactly the same. Digging into the source it looks like the python module does not support coveragepy
, but I believe pycov
should do the same thing.
ci_coverage
Use vars for results paths
-f "${file}" \ | ||
-F "${flags}" \ | ||
-n "${test}" \ | ||
-t bc371da7-e5d2-4743-93b5-309f81d457a4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've checked this codecov key is correct
ci_coverage
ci_coverage
The coverage failures look to be related to smoketests that should no longer have been enabled. |
ci_coverage ci_complete
https://app.shippable.com/github/ansible-collections/amazon.aws/runs/222/13/console @tremble While it would be vastly preferable to not curl|bash, the codecov-python package does not Just Work. I'm switching back to the bash uploader so we can make progress on getting tests stable. |
ci_coverage
ci_coverage
Codecov Report
@@ Coverage Diff @@
## master #45 +/- ##
=========================================
Coverage ? 45.70%
=========================================
Files ? 77
Lines ? 8796
Branches ? 1852
=========================================
Hits ? 4020
Misses ? 4264
Partials ? 512
Continue to review full report at Codecov.
|
ci_complete ci_coverage
SUMMARY
Enable coverage and fix nightly builds
ISSUE TYPE
COMPONENT NAME
tests/utils/shippable/shippable.sh