Skip to content

Commit

Permalink
fix(ci): codecov throttled on GHA
Browse files Browse the repository at this point in the history
Problem:

    [2024-07-12T13:58:12.874Z] ['info'] -> No token specified or token is empty
    ...
    [2024-07-12T13:58:13.715Z] ['verbose'] Passed token was 0 characters long
    [2024-07-12T13:58:13.952Z] ['verbose'] The error stack is: Error:
    Error uploading to https://codecov.io: Error: There was an error
    fetching the storage URL during POST: 429 - {'detail':
    ErrorDetail(string='Rate limit reached. Please upload with the
    Codecov repository upload token to resolve issue. Expected time to
    availability: 1752s.', code='throttled')}

Solution:
- Update codecov GHA runner.
- Set "token" field of the codecov GHA runner.
  • Loading branch information
justinmk3 committed Jul 12, 2024
1 parent 170cd88 commit fab5d95
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,24 @@ jobs:
env:
# Unset NODE_OPTIONS because of https://github.com/codecov/uploader/issues/475
NODE_OPTIONS: ''
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: ${{ github.repository == 'aws/aws-toolkit-vscode' && ( github.ref == 'master' || github.event_name == 'pull_request' ) }}
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: macos-unittests
verbose: true
file: ./coverage/lcov.info
flags: macos-unittests
token: ${{ secrets.CODECOV_TOKEN }}
- name: Code coverage (CodeWhisperer)
env:
# Unset NODE_OPTIONS because of https://github.com/codecov/uploader/issues/475
NODE_OPTIONS: ''
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: ${{ github.repository == 'aws/aws-toolkit-vscode' && ( github.ref == 'master' || github.event_name == 'pull_request' ) }}
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: codewhisperer
verbose: true
file: ./coverage/lcov.info
flags: codewhisperer
token: ${{ secrets.CODECOV_TOKEN }}

web:
name: test Web
Expand Down Expand Up @@ -102,13 +102,13 @@ jobs:
env:
# Unset NODE_OPTIONS because of https://github.com/codecov/uploader/issues/475
NODE_OPTIONS: ''
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: ${{ github.repository == 'aws/aws-toolkit-vscode' && ( github.ref == 'master' || github.event_name == 'pull_request' ) }}
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
flags: windows-unittests
verbose: true
file: ./coverage/lcov.info
flags: windows-unittests
token: ${{ secrets.CODECOV_TOKEN }}

lint:
name: Lint
Expand Down

0 comments on commit fab5d95

Please sign in to comment.