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

Skip codecov uploads on forks #8794

Closed

Conversation

jacobtylerwalls
Copy link
Member

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

Prevents failures on forks like

[2023-06-22T21:57:58.791Z] ['verbose'] The error stack is: Error: Error uploading to [https://codecov.io:](https://codecov.io/) Error: There was an error fetching the storage URL during POST: 404 - {'detail': ErrorDetail(string='Could not find a repository, try using repo upload token', code='not_found')}

I don't think it should be required to set up a repo with CodeCov to fork pylint. WDYT?

@jacobtylerwalls jacobtylerwalls added Maintenance Discussion or action around maintaining pylint or the dev workflow Skip news πŸ”‡ This change does not require a changelog entry labels Jun 22, 2023
@codecov
Copy link

codecov bot commented Jun 22, 2023

Codecov Report

Merging #8794 (e1190a8) into main (e33920f) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8794   +/-   ##
=======================================
  Coverage   95.83%   95.83%           
=======================================
  Files         173      173           
  Lines       18526    18526           
=======================================
  Hits        17755    17755           
  Misses        771      771           

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

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

On the other hand it's nice to be able to ?

@DanielNoord
Copy link
Collaborator

Is there an easy way to re-enable this on forks that do want to upload?

@jacobtylerwalls
Copy link
Member Author

Is there an easy way to re-enable this on forks that do want to upload?

Removing this line, I suppose.

So it's just about who should have to take the burden of being uneven with upstream on their forks: people who want to configure codecov, or people who don't.

If we don't go this route, we should add some links to the contributor docs about how to get started. I don't know how much time I'd be sinking into this to get codecov running on my own fork, for instance.

@Pierre-Sassoulas
Copy link
Member

This would create hard to debug issues if the main repo name change and it's making a fail implicit on forks. Even if a contributor don't want to set up codecov on a fork the error would remind them that coverage needs to be checked locally. Also the main use case if you're lazy is to open a MR (directly or not) on main so I think most would do that and it's more likely we're going to bother perfectionnists that only want to open perfectly mergeable MR on the first try.

@jacobtylerwalls
Copy link
Member Author

Makes sense. I'll close :-)

@jacobtylerwalls jacobtylerwalls deleted the skip-codecov-fork branch June 27, 2023 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Discussion or action around maintaining pylint or the dev workflow Skip news πŸ”‡ This change does not require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants