Skip to content

Commit

Permalink
Downgrade codecov-action to v3
Browse files Browse the repository at this point in the history
codecov-action v5 fails to upload coverage report even if the token is provided as v3 does.
  • Loading branch information
daniellansun authored Nov 25, 2024
1 parent ae53852 commit 6dd5d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/groovy-build-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
run: ./gradlew -Pcoverage=true jacocoAllReport
timeout-minutes: 60
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@v3 # Use v3 for now because v5 fails to upload coverage report
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
Expand Down

2 comments on commit 6dd5d45

@daniellansun
Copy link
Contributor Author

Choose a reason for hiding this comment

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

v3 can not find the token either... but it can upload coverage report sometimes even if without token.

[2024-11-25T00:18:38.696Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-3.1.6-uploader-0.8.0&token=*******&branch=master&build=12000716944&build_url=https%3A%2F%2Fgithub.com%2Fapache%2Fgroovy%2Factions%2Fruns%2F12000716944&commit=6dd5d4542c93ead8a62c5e63c3c6a8d74dc3abd1&job=Build+and+test+for+coverage&pr=&service=github-actions&slug=apache%2Fgroovy&name=&tag=&flags=&parent=
[2024-11-25T00:18:38.696Z] ['verbose'] Passed token was 0 characters long
[2024-11-25T00:18:38.696Z] ['verbose'] https://codecov.io/upload/v4?package=github-action-3.1.6-uploader-0.8.0&branch=master&build=12000716944&build_url=https%3A%2F%2Fgithub.com%2Fapache%2Fgroovy%2Factions%2Fruns%2F12000716944&commit=6dd5d4542c93ead8a62c5e63c3c6a8d74dc3abd1&job=Build+and+test+for+coverage&pr=&service=github-actions&slug=apache%2Fgroovy&name=&tag=&flags=&parent=
        Content-Type: 'text/plain'
        Content-Encoding: 'gzip'
        X-Reduced-Redundancy: 'false'
[2024-11-25T00:18:38.973Z] ['error'] There was an error running the uploader: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 429 - {"message":"Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 560s."}

@daniellansun
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I submitted a ticket to Apache Infra:
https://issues.apache.org/jira/browse/INFRA-26301

Please sign in to comment.