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

Install the Codecov GitHub app on this repo? #2085

Closed
DilumAluthge opened this issue Oct 7, 2020 · 11 comments
Closed

Install the Codecov GitHub app on this repo? #2085

DilumAluthge opened this issue Oct 7, 2020 · 11 comments

Comments

@DilumAluthge
Copy link
Member

DilumAluthge commented Oct 7, 2020

Would it be a good idea to install the Codecov GitHub app on the Pkg.jl repo? This would result in Codecov posting a status on each pull request.

This might make it easier to detect e.g. if someone commented out all of the tests and forgot to un-comment them before committing and pushing. Such a scenario would result in an ❌ (failing) Codecov status on the pull request because the coverage would have significantly dropped.

We already submit coverage to Codecov:

Pkg.jl/.travis.yml

Lines 49 to 51 in f0cacf6

after_success:
- julia --project=test/coverage -e 'using Pkg; Pkg.instantiate();
using Coverage; Codecov.submit(Codecov.process_folder())'

So this would just be a matter of installing the Codecov GitHub app.

@DilumAluthge DilumAluthge changed the title Install the Codecov app on this repo? Install the Codecov GitHub app on this repo? Oct 7, 2020
@DilumAluthge
Copy link
Member Author

See also: #2086

@fredrikekre
Copy link
Member

I can install the app if we don't do #2086 :)

@fredrikekre
Copy link
Member

It looks like it is already enabled on this repo...

@DilumAluthge
Copy link
Member Author

That's strange... it should be posting statuses.

I wonder if Codecov is getting confused because we submit to coverage from Travis but not AppVeyor. So it detects the AppVeyor builds (by polling the GitHub API), but it never gets coverage from AppVeyor, so it keeps waiting.

For completeness we should submit coverage from all platforms anyway.

@DilumAluthge
Copy link
Member Author

Even when we submit coverage from AppVeyor, the CodeCov status doesn't show up: #2088

@DilumAluthge
Copy link
Member Author

It'll probably be easiest to just do #2086

@DilumAluthge
Copy link
Member Author

@fredrikekre Can you try uninstalling and reinstalling the Codecov app? Codecov should be posting statuses on both PRs and branches. I'm not sure why it's not doing that.

@fredrikekre
Copy link
Member

I nuked the install and re-authorized it.

@DilumAluthge
Copy link
Member Author

@fredrikekre I think you've cured it! See this PR, which has the Codecov statuses: #2089

@fredrikekre
Copy link
Member

Perhaps it was confused about the travis org -> com move?

@DilumAluthge
Copy link
Member Author

Perhaps it was confused about the travis org -> com move?

Probably. I've heard of other people having various parts of their workflow broken by the migration.

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

No branches or pull requests

2 participants