Skip to content
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

Switch to codecov.io #1876

Merged
merged 4 commits into from
Jul 14, 2016
Merged

Conversation

daspecster
Copy link
Contributor

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 20, 2016
@@ -15,7 +15,7 @@ script:
- scripts/update_docs.sh

after_success:
- tox -e coveralls
- bash <(curl -s https://codecov.io/bash)

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@daspecster
Copy link
Contributor Author

Possibly an example when it finishes generating...
https://codecov.io/github/daspecster/gcloud-python/commit/8f90abc07f33c0b84522ae58377cdcbaca569f65

@daspecster daspecster force-pushed the switch-to-codecovio branch 2 times, most recently from 5915215 to 60c0364 Compare June 20, 2016 21:14
@codecov-io
Copy link

codecov-io commented Jun 20, 2016

Current coverage is 100%

No coverage report found for master at bd6435a.

Powered by Codecov. Last updated by bd6435a...6d08b77

@daspecster
Copy link
Contributor Author

Yeah still playing with it.
I need to get the coverage xml generated before codecov runs.

On Monday, June 20, 2016, Codecov notifications@github.com wrote:

Current coverage
https://codecov.io/gh/GoogleCloudPlatform/gcloud-python/pull/1876?src=pr
is 100%

No coverage report found for master at 986302f
986302f
.

Powered by Codecov https://codecov.io?src=pr. Last updated by
986302f...60c0364
https://codecov.io/gh/GoogleCloudPlatform/gcloud-python/compare/986302f3db5ab71e0951fa4fab796333d7d7cece...60c03644ff146537e351822b77bd4a27732c06aa


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#1876 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AALvyGawrhgLR23ki28X9RDdsOmdeqt7ks5qNwP7gaJpZM4I6FhG
.

Tom Schultz

basepython =
python2.7
passenv =
CI TRAVIS_BUILD_ID TRAVIS TRAVIS_BRANCH TRAVIS_JOB_NUMBER TRAVIS_PULL_REQUEST TRAVIS_JOB_ID TRAVIS_REPO_SLUG TRAVIS_COMMIT

This comment was marked as spam.

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Jun 20, 2016

LGTM, please squash. Also we should make sure codecov.io adds a check to this PR before merging

@dhermes
Copy link
Contributor

dhermes commented Jun 20, 2016

Also the coveralls badge should be replaced

@daspecster daspecster force-pushed the switch-to-codecovio branch from b2ff4f2 to 1d5973e Compare June 20, 2016 22:12
@daspecster
Copy link
Contributor Author

@dhermes, I don't have admin rights to the repo to add a github check.

@daspecster
Copy link
Contributor Author

Looks like we're not alone!
https://codecov.io/gh/googlecloudplatform

@dhermes
Copy link
Contributor

dhermes commented Jun 20, 2016

@daspecster Which page do you need admin rights for? I'm on https://github.com/GoogleCloudPlatform/gcloud-python/settings/hooks trying to add the service but can't find it

@dhermes
Copy link
Contributor

dhermes commented Jun 20, 2016

OK figured it out on https://codecov.io/gh/GoogleCloudPlatform/gcloud-python/settings

Here is the badge FYI


.. image:: https://codecov.io/gh/GoogleCloudPlatform/gcloud-python/branch/master/graph/badge.svg
  :target: https://codecov.io/gh/GoogleCloudPlatform/gcloud-python

@dhermes
Copy link
Contributor

dhermes commented Jun 20, 2016

@daspecster Now that the hook has been added, can you add a commit with the badge so we can test it?

@daspecster
Copy link
Contributor Author

Awesome! I was looking.

I put http://codecov.io/github/googlecloudplatform/gcloud-python/coverage.svg?branch=master for the badge target in the readme but I'll change it to yours.

@dhermes
Copy link
Contributor

dhermes commented Jun 20, 2016

I just copied that RST snippet from https://codecov.io/gh/GoogleCloudPlatform/gcloud-python/settings/badge Where'd you get the other one?

@daspecster
Copy link
Contributor Author

I think I saw it in their docs somewhere.

@dhermes
Copy link
Contributor

dhermes commented Jun 20, 2016

codecov runtests: commands[1] | codecov
      _____          _
     / ____|        | |
    | |     ___   __| | ___  ___ _____   __
    | |    / _ \ / _  |/ _ \/ __/ _ \ \ / /
    | |___| (_) | (_| |  __/ (_| (_) \ V /
     \_____\___/ \____|\___|\___\___/ \_/
                                    v2.0.5
==> Detecting CI provider
  -> Got branch from git/hg
  -> Got sha from git/hg
==> Preparing upload
Error: Missing repository upload token
Tip: See all example repositories: https://github.com/codecov?query=example
Support channels:
  Email:   hello@codecov.io
  IRC:     #codecov
  Gitter:  https://gitter.im/codecov/support
  Twitter: @codecov

@dhermes
Copy link
Contributor

dhermes commented Jun 20, 2016

Still no check, though it worked

codecov runtests: commands[1] | codecov
      _____          _
     / ____|        | |
    | |     ___   __| | ___  ___ _____   __
    | |    / _ \ / _  |/ _ \/ __/ _ \ \ / /
    | |___| (_) | (_| |  __/ (_| (_) \ V /
     \_____\___/ \____|\___|\___\___/ \_/
                                    v2.0.5
==> Detecting CI provider
    Travis Detected
==> Preparing upload
==> Processing gcov (disable by -X gcov)
    Executing gcov (find /home/travis/build/GoogleCloudPlatform/gcloud-python -type f -name '*.gcno'  -exec gcov -pb  {} +)
==> Collecting reports
    Generating coverage xml reports for Python
    + /home/travis/build/GoogleCloudPlatform/gcloud-python/coverage.xml bytes=1274444
==> Appending environment variables
    + TRAVIS_OS_NAME
==> Uploading
    .url https://codecov.io
    .query commit=51af5e55de35c61123d61d8cc1eb76eca06b3333&service=travis&pr=1876&package=py2.0.5&job=139057017&branch=master&slug=GoogleCloudPlatform%2Fgcloud-python&build=3845.1
    Pinging Codecov...
    Uploading to S3...

@daspecster
Copy link
Contributor Author

Hmmm

@daspecster
Copy link
Contributor Author

@dhermes after some digging, I think we need that codecov.yml file there to get it to trigger status checks. Let me know if one shows up now?

@daspecster
Copy link
Contributor Author

Ok, I'll see what else I can find. Thanks for checking.

@daspecster
Copy link
Contributor Author

It looks like it's getting a 404 for something but I can't tell if this is a codecov.io URL or a github url that's throwing the error.

https://codecov.io/gh/googlecloudplatform/gcloud-python/commit/db465386c9819fc384c2c6f62cb2ccdd79566be7/builds

@daspecster
Copy link
Contributor Author

Update: I have a support request out to codecov.io. I think it might be a permissions issue but I want to confirm with them so I know how it works.

@daspecster
Copy link
Contributor Author

daspecster commented Jun 21, 2016

@dhermes, can you add the integration here https://github.com/integrations/codecov to the GoogleCloudApplication org if possible.
There might be something to do with the third-party restrictions as well.

I think https://github.com/organizations/GoogleCloudPlatform/settings/oauth_application_policy
and/or
https://github.com/organizations/GoogleCloudPlatform/settings/applications/

CodeCov uses all github permissions so I think we have to get it setup on the org side.

@dhermes
Copy link
Contributor

dhermes commented Jun 21, 2016

I don't know if I have admin rights / don't see any "Add" button on the integrations page (I visited it multiple times yesterday trying to figure out what to click).

@daspecster
Copy link
Contributor Author

Would this be something @jgeewax might have to do?

@dhermes
Copy link
Contributor

dhermes commented Jun 21, 2016

Maybe

@dhermes
Copy link
Contributor

dhermes commented Jun 21, 2016

@daspecster Where did the previous post from the codecov bot come from?

@daspecster
Copy link
Contributor Author

daspecster commented Jun 21, 2016

If you change this value it will post a comment.
https://github.com/GoogleCloudPlatform/gcloud-python/pull/1876/files#diff-8bc9db6adba7208e25c96be322351063R1

That link anchors weirdly...it's line 1 of codecov.yml.

@daspecster
Copy link
Contributor Author

@jgeewax, if you're game, can we enable codecov in the organization apps/oauth?

@jgeewax
Copy link
Contributor

jgeewax commented Jul 5, 2016

👍

@daspecster
Copy link
Contributor Author

Awesome thanks!

@daspecster
Copy link
Contributor Author

Hmmm, still not showing up in here. Could someone check and see if codecov is in the projected branch settings now?

@daspecster
Copy link
Contributor Author

daspecster commented Jul 13, 2016

I tried to reset the webhook.
Looks like there is still an issue on the github permissions side.
screen shot 2016-07-13 at 2 44 31 pm

@tseaver
Copy link
Contributor

tseaver commented Jul 14, 2016

FWIW, the webhook is already in place.

screenshot from 2016-07-14 10 54 57

@daspecster
Copy link
Contributor Author

@tseaver, if you go here can you click on the "reset webhook" button with any success?

If that doesn't start working then we could also just turn the integration back on to get codecov to post a comment about the coverage.

I'm thinking that this might have to get into master to fully work. We could change this so it does both coveralls and codecov to test it.

@tseaver
Copy link
Contributor

tseaver commented Jul 14, 2016

Can you click on the "reset webhook" button with any success?

Nope, I get the same error you posted.

If that doesn't start working then we could also just turn the integration back on to get codecov to post a comment about the coverage.

I don't like those comments: I would rather have it be a "check".

I'm thinking that this might have to get into master to fully work. We could change this so it does both coveralls and codecov to test it.

Let's try that. We can drop coveralls in a follow-up PR.

@daspecster daspecster force-pushed the switch-to-codecovio branch from d9999f4 to 6d08b77 Compare July 14, 2016 15:54
@tseaver
Copy link
Contributor

tseaver commented Jul 14, 2016

LGTM

@daspecster daspecster force-pushed the switch-to-codecovio branch from 6d08b77 to 58cdf26 Compare July 14, 2016 18:02
@daspecster
Copy link
Contributor Author

I squashed some of the commits and when travis passes I'll merge.

@daspecster daspecster merged commit 1942f2d into googleapis:master Jul 14, 2016
This was referenced Aug 3, 2016
@daspecster daspecster deleted the switch-to-codecovio branch January 24, 2017 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants