-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
chore: disable codecov from v2-release
branch
#32125
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,8 @@ jobs: | |
name: collect | ||
if: github.repository == 'aws/aws-cdk' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -19,10 +21,10 @@ jobs: | |
uses: actions/setup-node@v4 | ||
|
||
- name: Install dependencies | ||
run: cd packages/aws-cdk && yarn install | ||
run: yarn install | ||
|
||
- name: Build CLI | ||
run: cd packages/aws-cdk && npx lerna run build --scope=aws-cdk | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because we don't need to |
||
run: npx lerna run build --scope=aws-cdk | ||
|
||
- name: Run tests | ||
run: cd packages/aws-cdk && yarn test | ||
|
@@ -33,4 +35,4 @@ jobs: | |
directory: packages/aws-cdk/coverage | ||
fail_ci_if_error: true | ||
flags: suite.unit | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
use_oidc: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Switch from token based authentication to OIDC. Verified to work here. This is really nice as it allows us to entirely remove the need for a long lived token.
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,8 @@ module.exports = { | |
lines: 81 | ||
}, | ||
}, | ||
"coveragePathIgnorePatterns": [ | ||
coveragePathIgnorePatterns: [ | ||
...baseConfig.coveragePathIgnorePatterns, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In #31702, we inadvertently overridden the base config, instead of adding to it. This caused our test utility files to be included in the coverage report.
|
||
// Mostly wrappers around the SDK, which get mocked in unit tests | ||
"<rootDir>/lib/api/aws-auth/sdk.ts", | ||
], | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,10 +124,10 @@ export class CloudWatchLogEventMonitor { | |
} | ||
|
||
private async tick(): Promise<void> { | ||
// excluding from codecoverage because this | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is bizarre but i'm seeing sporadic behavior with respect to coverage of the Our current report says its uncovered - but how can that be if the other lines of function ARE covered? Followup to #32107. |
||
// doesn't always run (depends on timing) | ||
/* istanbul ignore next */ | ||
if (!this.active) { | ||
// excluding from codecoverage because this | ||
// doesn't always run (depends on timing) | ||
/* istanbul ignore next */ | ||
return; | ||
} | ||
try { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because we don't need to
cd
here - it does the exact same thing without it.