Skip to content

Fix #492: Resolve CI coverage bug#494

Closed
davidlatwe wants to merge 4 commits intogetavalon:masterfrom
davidlatwe:fix-492
Closed

Fix #492: Resolve CI coverage bug#494
davidlatwe wants to merge 4 commits intogetavalon:masterfrom
davidlatwe:fix-492

Conversation

@davidlatwe
Copy link
Collaborator

What's changed ?

This PR resolve #492 and unpinned sphinx==1.7.9 (Since #338)

@davidlatwe
Copy link
Collaborator Author

davidlatwe commented Dec 17, 2019

For unknown reason, coverage report was able to submit from my fork build, but always failed in PR build.

At first I thought there were something broken due to the change in this PR, but turns out it looks like all previous PRs were actually did not submit coverage report successfully, (see here and compare the error code from this PR build here), they just got ignored.

And maybe that's why the coveralls badge in README is showing unknown.

📞 @mottosso , could it be possible that you need to some how update or turning on-off repo in coveralls.io ?

@BigRoy
Copy link
Collaborator

BigRoy commented Dec 17, 2019

Is this related to the coverage badge linking to a 404 page altogether?

@davidlatwe
Copy link
Collaborator Author

Yeah, could be related 🕵️‍♂️


ENTRYPOINT \
PYTHONPATH=$(pwd):$PYTHONPATH mayapy -u run_maya_tests.py && \
mayapy -c "import sys, os, coveralls;coveralls.wear() if os.getenv('TRAVIS_JOB_ID') else sys.stdout.write('Skipping coveralls')"
Copy link
Contributor

Choose a reason for hiding this comment

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

You're removing some critical information here. Travis needs that ID from the environment, which I've put into the Travis backend environment for passing into it like this.

Could we not keep the command as-is?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Could we not keep the command as-is?

Sadly we couldn't. :(
The interface of python-coveralls was different from coveralls package, coveralls does not have wear function exposed.

And since I have added TRAVIS=1 into environment, so the job id should be able to pick up from here and then here. Which it did work on my fork build, see here :

Submitting coverage to coveralls.io...
Coverage submitted!
Job #158.1
https://coveralls.io/jobs/56927382

I have also tested with another branch that only pin python-coveralls version, and it also able to send report, see here :

INFO:coveralls:200
INFO:coveralls:{"message":"Job #160.1","url":"https://coveralls.io/jobs/57015951"}

Tricky CI 🤕

@davidlatwe
Copy link
Collaborator Author

Okay ! Since #495 has been merged as another fix, closing this one for now :)
Thanks @mottosso !

@davidlatwe davidlatwe closed this Dec 20, 2019
@davidlatwe davidlatwe deleted the fix-492 branch December 23, 2019 07:39
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.

Travis CI check failed on reporting coverage

3 participants