Skip to content

Commit eae810b

Browse files
authored
fix(ci): codecov throttled on GHA aws#5310
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.
1 parent 170cd88 commit eae810b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/node.js.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,24 @@ jobs:
3636
env:
3737
# Unset NODE_OPTIONS because of https://github.com/codecov/uploader/issues/475
3838
NODE_OPTIONS: ''
39-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4039
if: ${{ github.repository == 'aws/aws-toolkit-vscode' && ( github.ref == 'master' || github.event_name == 'pull_request' ) }}
41-
uses: codecov/codecov-action@v3
40+
uses: codecov/codecov-action@v4
4241
with:
42+
flags: macos-unittests
4343
verbose: true
4444
file: ./coverage/lcov.info
45-
flags: macos-unittests
45+
token: ${{ secrets.CODECOV_TOKEN }}
4646
- name: Code coverage (CodeWhisperer)
4747
env:
4848
# Unset NODE_OPTIONS because of https://github.com/codecov/uploader/issues/475
4949
NODE_OPTIONS: ''
50-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5150
if: ${{ github.repository == 'aws/aws-toolkit-vscode' && ( github.ref == 'master' || github.event_name == 'pull_request' ) }}
52-
uses: codecov/codecov-action@v3
51+
uses: codecov/codecov-action@v4
5352
with:
53+
flags: codewhisperer
5454
verbose: true
5555
file: ./coverage/lcov.info
56-
flags: codewhisperer
56+
token: ${{ secrets.CODECOV_TOKEN }}
5757

5858
web:
5959
name: test Web
@@ -102,13 +102,13 @@ jobs:
102102
env:
103103
# Unset NODE_OPTIONS because of https://github.com/codecov/uploader/issues/475
104104
NODE_OPTIONS: ''
105-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
106105
if: ${{ github.repository == 'aws/aws-toolkit-vscode' && ( github.ref == 'master' || github.event_name == 'pull_request' ) }}
107-
uses: codecov/codecov-action@v3
106+
uses: codecov/codecov-action@v4
108107
with:
108+
flags: windows-unittests
109109
verbose: true
110110
file: ./coverage/lcov.info
111-
flags: windows-unittests
111+
token: ${{ secrets.CODECOV_TOKEN }}
112112

113113
lint:
114114
name: Lint

0 commit comments

Comments
 (0)