Coder Social home page Coder Social logo

Codecov is failing about pydoctor HOT 7 CLOSED

tristanlatr avatar tristanlatr commented on July 4, 2024
Codecov is failing

from pydoctor.

Comments (7)

adiroiban avatar adiroiban commented on July 4, 2024

Hi

I will take a look. Codecov S3 server was failing a bit more often recently...not sure if this is the reason.

We can also implement coverage reporting via GitHub Actions only... similar to what we have for twisted/towncrier

from pydoctor.

adiroiban avatar adiroiban commented on July 4, 2024

I just re-run a job from the main branch and codecov publish was succesful

https://github.com/twisted/pydoctor/actions/runs/8756510054/job/24062635255#step:8:45

codecov coverate is still pushed using the old python upload tools, that is now deprecated....

but it still works

https://github.com/twisted/pydoctor/blob/master/tox.ini#L41-L48

One thing that we can do on error, is to automatically wait 30 seconds and retry the upload

from pydoctor.

adiroiban avatar adiroiban commented on July 4, 2024

From what I can see, codecov was setup here , oct 2020 , by Maarten
82ad7d6

from pydoctor.

adiroiban avatar adiroiban commented on July 4, 2024

One thing that we can do for cleanup for GitHub Actions, is update to nodejs 20

We have all these warnings

image

and at some point, things will break.

For now, there are still many people using the old nodejs16 actions, and GitHub has decided to keep support for now... but support can be removed anytime

from pydoctor.

tristanlatr avatar tristanlatr commented on July 4, 2024

Codecov constantly fails for PR #781

I'll try to update the codecov config, but I'm not familiar with it yet.

from pydoctor.

adiroiban avatar adiroiban commented on July 4, 2024

OK. I see the problem. It's always best to also send a link to the build.

https://github.com/twisted/pydoctor/actions/runs/8768226898/job/24063009027#step:8:58

The important part is that the codecov was failing, but tox was ending the job with a success.

This needs to be fixed

I will give it a try to update to use the new codecov action

.query commit=932c13df34b50e48ffddee9587d6ac09382c1a19&branch=780-transform-deprecated-typing-annotations&pr=781&build_url=http%3A%2F%2Fgithub.com%2Ftwisted%2Fpydoctor%2Factions%2Fruns%2F8768226898&service=github-actions&build=8768226898&slug=twisted%2Fpydoctor&yaml=.codecov.yml&package=py2.1.13
    Gzipping contents..
    Compressed contents to 27135 bytes
    Pinging Codecov...
    Retrying 1/5 in 2s..
    Retrying 2/5 in 2s..
    Retrying 3/5 in 2s..
    Retrying 4/5 in 2s..
    Retrying 5/5 in 2s..
    Direct to s3 failed. Using backup v2 endpoint.
    Uploading to Codecov...
    Retrying 1/5 in 2s..
    Retrying 2/5 in 2s..
    Retrying 3/5 in 2s..
    Retrying 4/5 in 2s..
    Retrying 5/5 in 2s..
    {'detail': ErrorDetail(string='Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')}
Error: 404 Client Error: Not Found for url: https://codecov.io/upload/v2?commit=932c13df34b50e48ffddee9587d6ac09382c1a19&branch=780-transform-deprecated-typing-annotations&pr=781&build_url=http%3A%2F%2Fgithub.com%2Ftwisted%2Fpydoctor%2Factions%2Fruns%2F8768226898&service=github-actions&build=8768226898&slug=twisted%2Fpydoctor&yaml=.codecov.yml&package=py2.1.13
Tip: See all example repositories: https://github.com/codecov?query=example
  codecov: OK (34.43=setup[9.94]+cmd[1.[42](https://github.com/twisted/pydoctor/actions/runs/8768226898/job/24063009027#step:8:43),23.06] seconds)
  congratulations :) (34.50 seconds)

from pydoctor.

tristanlatr avatar tristanlatr commented on July 4, 2024

Thanks @adiroiban

from pydoctor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.