-
Notifications
You must be signed in to change notification settings - Fork 34
feat: Surface latest upload error for latest commit in a branch for tests tab #3722
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
Conversation
Bundle ReportChanges will increase total bundle size by 75.08kB (0.6%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: gazebo-staging-systemAssets Changed:
Files in
Files in
Files in
view changes for bundle: gazebo-staging-esmAssets Changed:
Files in
Files in
Files in
|
Bundle ReportChanges will increase total bundle size by 75.08kB (0.6%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: gazebo-production-systemAssets Changed:
Files in
Files in
Files in
view changes for bundle: gazebo-production-esmAssets Changed:
Files in
Files in
Files in
|
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## main #3722 +/- ##
==========================================
- Coverage 98.84% 98.83% -0.02%
==========================================
Files 826 827 +1
Lines 14865 14896 +31
Branches 4231 4238 +7
==========================================
+ Hits 14694 14723 +29
- Misses 165 167 +2
Partials 6 6
... and 22 files with indirect coverage changes
Continue to review full report in Codecov by Sentry.
|
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
@@ Coverage Diff @@
## main #3722 +/- ##
==========================================
- Coverage 98.84% 98.83% -0.02%
==========================================
Files 826 827 +1
Lines 14865 14896 +31
Branches 4223 4230 +7
==========================================
+ Hits 14694 14723 +29
- Misses 165 167 +2
Partials 6 6
... and 22 files with indirect coverage changes
Continue to review full report in Codecov by Sentry.
|
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
@@ Coverage Diff @@
## main #3722 +/- ##
==========================================
- Coverage 98.84% 98.83% -0.02%
==========================================
Files 826 827 +1
Lines 14865 14896 +31
Branches 4231 4238 +7
==========================================
+ Hits 14694 14723 +29
- Misses 165 167 +2
Partials 6 6
... and 22 files with indirect coverage changes
Continue to review full report in Codecov by Sentry.
|
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
@@ Coverage Diff @@
## main #3722 +/- ##
==========================================
- Coverage 98.84% 98.83% -0.02%
==========================================
Files 826 827 +1
Lines 14865 14896 +31
Branches 4223 4238 +15
==========================================
+ Hits 14694 14723 +29
- Misses 165 167 +2
Partials 6 6
... and 22 files with indirect coverage changes
Continue to review full report in Codecov by Sentry.
|
| @@ -0,0 +1,203 @@ | |||
| import { QueryClient, QueryClientProvider } from '@tanstack/react-query' | |||
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.
I think we wanna use v5 of the library right?
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.
Oh JK I guess we'd also have to update the hook as well
| import { MetricsSection } from './MetricsSection' | ||
| import { SelectorSection } from './SelectorSection' | ||
|
|
||
| const FailedTestsErrorBanner = lazy(() => import('./FailedTestsErrorBanner')) |
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.
I think we wanted to move away from lazy imports but I can't remember, but is this why we had to update the other test to async?
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.
I'll update so it matches the rest of the imported components! and yes sir^
| ${links.tokenlessDocs} | ${'https://docs.codecov.com/docs/codecov-tokens#uploading-without-a-token'} | ||
| ${links.requireCIPassDocs} | ${'https://docs.codecov.com/docs/codecovyml-reference#codecovrequire_ci_to_pass'} | ||
| ${links.circleCIEnvVars} | ${'https://circleci.com/docs/set-environment-variable/#set-an-environment-variable-in-a-project'} | ||
| ${links.testAnalyticsTroubleshooting} | ${'https://docs.codecov.com/docs/test-analytics-beta#troubleshooting'} |
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.
nit: the doc link shouldn't say beta anymore right?
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.
oh nice it redirects to https://docs.codecov.com/docs/test-analytics#troubleshooting I'll update it
| .object({ | ||
| latestUploadError: z | ||
| .object({ | ||
| errorCode: z.nativeEnum(ErrorCodeEnum), |
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.
At least with how it's defined in GQL, these two keys are nullable on the type: https://github.com/codecov/codecov-api/blob/659b4ecf8d4d36de52af4fa729f7f8972945dd48/graphql_api/types/commit/commit.graphql#L31-L35
Can we have parity between the two?
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.
I'll update API, it cannot be null in the DB 😅
ajay-sentry
left a comment
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.
lgtm!
Description
We want to reflect the latest upload error if head commit of a branch has a report upload / processing error.
Notable Changes
latestUploadErrorScreenshots
Moved it down as seen above but that's how all should look like:




closes: #2846
Link to Sample Entry
Legal Boilerplate
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.