Discussion:
[Twisted-Python] Script which uploads coverage results to codecov failed, but reported success?
Craig Rodrigues
2016-07-01 18:34:32 UTC
Permalink
Hi,

For this pull request:

https://github.com/twisted/twisted/pull/284

This Windows build ran and tried to upload coverage results to codecov:

https://buildbot.twistedmatrix.com/builders/windows7-64-py2.7-coverage/builds/623/steps/shell_5/logs/stdio

but failed with this:

Error: 403 Client Error: Forbidden for url:
https://codecov.s3.amazonaws.com/v4/raw/2016-07-01/BB05435E28F8047E9B3D49B4B7BFA4B3/4a5903d2f0fcab3db7c6ca68ff563e2c859dd5c2/031e0d8f-aadc-47ae-9b69-29ca9d962287.txt?AWSAccessKeyId=AKIAIHLZSCQCS4WIHD4A&Expires=1467374016&Signature=i1IQndDSPC0vtJysR8vnPxDpPw0%3D

The upload failed, but the buildbot job reported success.

The result was that patch shows 57% coverage, when it should be 100%.
Is there a way to make that buildbot step fail if the upload to codecov
fails?

I don't know where the script for that is.

--
Craig
Craig Rodrigues
2016-07-01 20:11:21 UTC
Permalink
Error: 403 Client Error: Forbidden for url: https://codecov.s3.amazonaws.com/v4/raw/2016-07-01/BB05435E28F8047E9B3D49B4B7BFA4B3/4a5903d2f0fcab3db7c6ca68ff563e2c859dd5c2/031e0d8f-aadc-47ae-9b69-29ca9d962287.txt?AWSAccessKeyId=AKIAIHLZSCQCS4WIHD4A&Expires=1467374016&Signature=i1IQndDSPC0vtJysR8vnPxDpPw0%3D
The upload failed, but the buildbot job reported success.
It looks like every build from the windows7-64-py2.6-coverage buildbot is
failing to upload to codecov. I have filed a ticket:

https://twistedmatrix.com/trac/ticket/8549#ticket

--
Craig
Adi Roiban
2016-07-03 07:27:15 UTC
Permalink
Post by Craig Rodrigues
Hi,
https://github.com/twisted/twisted/pull/284
https://buildbot.twistedmatrix.com/builders/windows7-64-py2.7-coverage/builds/623/steps/shell_5/logs/stdio
I can see that the Windows coverage builder is not using virtualenv + tox
to run the coverage report.

I suggest that we should first convert all builders to virtualenv + tox.
There is a ticket pending review for that
https://twistedmatrix.com/trac/ticket/8544

Then I suggest to push the coverage from tox. There is a ticket pending
review for that https://twistedmatrix.com/trac/ticket/8532

--------

With builders using virtual env + tox it should be much easier to work and
debug issues as the exact commands executed by buildbot are no longer
hardcoded in the buildbot configuration.


--------

I have setup a buildslave for Windows 2012R2 on Rackspace and I can see
that the coverage was uploaded ...at least for trunk

https://buildbot.twistedmatrix.com/builders/win-64-py2.7-coverage/builds/1/steps/shell_5/logs/stdio

The PR for adding the Windows 2012 slave is waiting a review here
https://github.com/twisted-infra/braid/pull/215

---------

Craig, if you have access to the Windows 7 slave check the system clock.
I no longer have access to the Win7 VNC as it looks like the password was
changed.
--
Adi Roiban
Clayton Daley
2016-07-03 14:53:53 UTC
Permalink
A bit of an aside... but both personally and in several businesses I work
with, I've use Lastpass to manage passwords. Because the passwords are
shared at the server, updated passwords are propagated to all users. It
also has a really nice 2-factor option where your phone just offers you an
"approve" button (no 6-digit codes to transcribe).

Clayton Daley
Post by Adi Roiban
Post by Craig Rodrigues
Hi,
https://github.com/twisted/twisted/pull/284
https://buildbot.twistedmatrix.com/builders/windows7-64-py2.7-coverage/builds/623/steps/shell_5/logs/stdio
I can see that the Windows coverage builder is not using virtualenv + tox
to run the coverage report.
I suggest that we should first convert all builders to virtualenv + tox.
There is a ticket pending review for that
https://twistedmatrix.com/trac/ticket/8544
Then I suggest to push the coverage from tox. There is a ticket pending
review for that https://twistedmatrix.com/trac/ticket/8532
--------
With builders using virtual env + tox it should be much easier to work and
debug issues as the exact commands executed by buildbot are no longer
hardcoded in the buildbot configuration.
--------
I have setup a buildslave for Windows 2012R2 on Rackspace and I can see
that the coverage was uploaded ...at least for trunk
https://buildbot.twistedmatrix.com/builders/win-64-py2.7-coverage/builds/1/steps/shell_5/logs/stdio
The PR for adding the Windows 2012 slave is waiting a review here
https://github.com/twisted-infra/braid/pull/215
---------
Craig, if you have access to the Windows 7 slave check the system clock.
I no longer have access to the Win7 VNC as it looks like the password was
changed.
--
Adi Roiban
_______________________________________________
Twisted-Python mailing list
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Glyph Lefkowitz
2016-07-03 23:18:14 UTC
Permalink
I no longer have access to the Win7 VNC as it looks like the password was changed.
The password hasn't been changed, so I'm not sure why you're having trouble accessing it.

-glyph

Loading...