Skip to content
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

fix: TA finishing touches and just in case fixes #3487

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

ajay-sentry
Copy link
Contributor

Description

This PR does a lot of teeny updates and fixes in preparation for the TA launch:

  • Nullable on TA and Flake Aggregates objects from zod, in the event those objects don't exist on request
  • Adds "error" object to rejectNetworkError call when failing to parse on relevant TA hooks
  • Updates the links to say "test-analytics" from "test-result-ingestion-beta" for anyone that hovers them
  • Memoizes the branch selection list to prevent some extra overhead on failed tests table re-renders
  • Removes unnecessary ?? operator
  • Adds "." to the end of Avg on the failed tests table

Screenshots

Screen.Recording.2024-11-12.at.10.05.55.AM.mov

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.

}
}) ?? []
)
return testData.testResults.map((result) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

huge diff but it's just the removal of ??

@@ -76,15 +76,20 @@ const BranchSelector = () => {
)
}

const sortedBranchList = overview?.defaultBranch
? [
const sortedBranchList = useMemo(() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

adds a check for !branchList?.branches to clean things up a bit

And wraps the whole thing in a useMemo

flakeRate: z.number(),
flakeRatePercentChange: z.number().nullable(),
})
.nullable(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

nullable just in case

totalSkips: z.number(),
totalSkipsPercentChange: z.number().nullable(),
})
.nullable(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

nullable just in case

@codecov-staging
Copy link

codecov-staging bot commented Nov 12, 2024

Bundle Report

Changes will increase total bundle size by 418.86kB (2.42%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-staging-system-esm 5.83MB 211.59kB (3.77%) ⬆️
gazebo-staging-system 5.77MB 207.27kB (3.73%) ⬆️

Copy link

codecov bot commented Nov 12, 2024

Bundle Report

Changes will increase total bundle size by 418.86kB (2.42%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-system 5.77MB 207.27kB (3.73%) ⬆️
gazebo-production-system-esm 5.83MB 211.59kB (3.77%) ⬆️

Copy link

codecov bot commented Nov 12, 2024

Codecov Report

Attention: Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.

Project coverage is 99.01%. Comparing base (10a0dde) to head (5db8ecf).
Report is 1 commits behind head on tests-analytics-v2.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
.../SelectorSection/BranchSelector/BranchSelector.tsx 80.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@                  Coverage Diff                   @@
##           tests-analytics-v2    #3487      +/-   ##
======================================================
- Coverage               99.09%   99.01%   -0.08%     
======================================================
  Files                     810      812       +2     
  Lines                   14422    14457      +35     
  Branches                 4105     4109       +4     
======================================================
+ Hits                    14291    14315      +24     
- Misses                    124      133       +9     
- Partials                    7        9       +2     
Files with missing lines Coverage Δ
...ledTestsPage/FailedTestsTable/FailedTestsTable.tsx 96.93% <100.00%> (+0.93%) ⬆️
...ge/hooks/useFlakeAggregates/useFlakeAggregates.tsx 100.00% <ø> (ø)
.../useInfiniteTestResults/useInfiniteTestResults.tsx 100.00% <ø> (ø)
...TestResultsAggregates/useTestResultsAggregates.tsx 100.00% <ø> (ø)
.../hooks/useTestResultsFlags/useTestResultsFlags.tsx 100.00% <ø> (ø)
...TestResultsTestSuites/useTestResultsTestSuites.tsx 100.00% <ø> (ø)
...rvices/navigation/useNavLinks/useStaticNavLinks.ts 98.87% <100.00%> (ø)
.../SelectorSection/BranchSelector/BranchSelector.tsx 97.05% <80.00%> (-2.95%) ⬇️

... and 15 files with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.68% <91.66%> (-0.14%) ⬇️
Services 99.36% <100.00%> (-0.01%) ⬇️
Shared 99.74% <ø> (ø)
UI 99.15% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 10a0dde...5db8ecf. Read the comment docs.

@codecov-notifications
Copy link

codecov-notifications bot commented Nov 12, 2024

Codecov Report

Attention: Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
.../SelectorSection/BranchSelector/BranchSelector.tsx 80.00% 1 Missing ⚠️

Impacted file tree graph

@@                  Coverage Diff                   @@
##           tests-analytics-v2    #3487      +/-   ##
======================================================
- Coverage               99.09%   99.01%   -0.08%     
======================================================
  Files                     810      812       +2     
  Lines                   14422    14457      +35     
  Branches                 4112     4109       -3     
======================================================
+ Hits                    14291    14315      +24     
- Misses                    124      133       +9     
- Partials                    7        9       +2     
Files with missing lines Coverage Δ
...ledTestsPage/FailedTestsTable/FailedTestsTable.tsx 96.93% <100.00%> (+0.93%) ⬆️
...ge/hooks/useFlakeAggregates/useFlakeAggregates.tsx 100.00% <ø> (ø)
.../useInfiniteTestResults/useInfiniteTestResults.tsx 100.00% <ø> (ø)
...TestResultsAggregates/useTestResultsAggregates.tsx 100.00% <ø> (ø)
.../hooks/useTestResultsFlags/useTestResultsFlags.tsx 100.00% <ø> (ø)
...TestResultsTestSuites/useTestResultsTestSuites.tsx 100.00% <ø> (ø)
...rvices/navigation/useNavLinks/useStaticNavLinks.ts 98.87% <100.00%> (ø)
.../SelectorSection/BranchSelector/BranchSelector.tsx 97.05% <80.00%> (-2.95%) ⬇️

... and 15 files with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.68% <91.66%> (-0.14%) ⬇️
Services 99.36% <100.00%> (-0.01%) ⬇️
Shared 99.74% <ø> (ø)
UI 99.15% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 10a0dde...5db8ecf. Read the comment docs.

Copy link

codecov-public-qa bot commented Nov 12, 2024

Codecov Report

Attention: Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.

Project coverage is 99.01%. Comparing base (10a0dde) to head (5db8ecf).
Report is 1 commits behind head on tests-analytics-v2.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
.../SelectorSection/BranchSelector/BranchSelector.tsx 80.00% 1 Missing ⚠️

Impacted file tree graph

@@                  Coverage Diff                   @@
##           tests-analytics-v2    #3487      +/-   ##
======================================================
- Coverage               99.09%   99.01%   -0.08%     
======================================================
  Files                     810      812       +2     
  Lines                   14422    14457      +35     
  Branches                 4105     4109       +4     
======================================================
+ Hits                    14291    14315      +24     
- Misses                    124      133       +9     
- Partials                    7        9       +2     
Files with missing lines Coverage Δ
...ledTestsPage/FailedTestsTable/FailedTestsTable.tsx 96.93% <100.00%> (+0.93%) ⬆️
...ge/hooks/useFlakeAggregates/useFlakeAggregates.tsx 100.00% <ø> (ø)
.../useInfiniteTestResults/useInfiniteTestResults.tsx 100.00% <ø> (ø)
...TestResultsAggregates/useTestResultsAggregates.tsx 100.00% <ø> (ø)
.../hooks/useTestResultsFlags/useTestResultsFlags.tsx 100.00% <ø> (ø)
...TestResultsTestSuites/useTestResultsTestSuites.tsx 100.00% <ø> (ø)
...rvices/navigation/useNavLinks/useStaticNavLinks.ts 98.87% <100.00%> (ø)
.../SelectorSection/BranchSelector/BranchSelector.tsx 97.05% <80.00%> (-2.95%) ⬇️

... and 15 files with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.68% <91.66%> (-0.14%) ⬇️
Services 99.36% <100.00%> (-0.01%) ⬇️
Shared 99.74% <ø> (ø)
UI 99.15% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 10a0dde...5db8ecf. Read the comment docs.

@codecov-qa
Copy link

codecov-qa bot commented Nov 12, 2024

Codecov Report

Attention: Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.

Project coverage is 99.01%. Comparing base (10a0dde) to head (5db8ecf).
Report is 1 commits behind head on tests-analytics-v2.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
.../SelectorSection/BranchSelector/BranchSelector.tsx 80.00% 1 Missing ⚠️

Impacted file tree graph

@@                  Coverage Diff                   @@
##           tests-analytics-v2    #3487      +/-   ##
======================================================
- Coverage               99.09%   99.01%   -0.08%     
======================================================
  Files                     810      812       +2     
  Lines                   14422    14457      +35     
  Branches                 4112     4116       +4     
======================================================
+ Hits                    14291    14315      +24     
- Misses                    124      133       +9     
- Partials                    7        9       +2     
Files with missing lines Coverage Δ
...ledTestsPage/FailedTestsTable/FailedTestsTable.tsx 96.93% <100.00%> (+0.93%) ⬆️
...ge/hooks/useFlakeAggregates/useFlakeAggregates.tsx 100.00% <ø> (ø)
.../useInfiniteTestResults/useInfiniteTestResults.tsx 100.00% <ø> (ø)
...TestResultsAggregates/useTestResultsAggregates.tsx 100.00% <ø> (ø)
.../hooks/useTestResultsFlags/useTestResultsFlags.tsx 100.00% <ø> (ø)
...TestResultsTestSuites/useTestResultsTestSuites.tsx 100.00% <ø> (ø)
...rvices/navigation/useNavLinks/useStaticNavLinks.ts 98.87% <100.00%> (ø)
.../SelectorSection/BranchSelector/BranchSelector.tsx 97.05% <80.00%> (-2.95%) ⬇️

... and 15 files with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.68% <91.66%> (-0.14%) ⬇️
Services 99.36% <100.00%> (-0.01%) ⬇️
Shared 99.74% <ø> (ø)
UI 99.15% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 10a0dde...5db8ecf. Read the comment docs.

@codecov-releaser
Copy link
Contributor

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
5db8ecf Tue, 12 Nov 2024 18:12:55 GMT Cloud Enterprise

@ajay-sentry ajay-sentry merged commit 3982440 into tests-analytics-v2 Nov 12, 2024
47 of 59 checks passed
@ajay-sentry ajay-sentry deleted the Ajay/TA-just-in-case-fixes branch November 12, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants