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

feat: add status count in hardware tested #417

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

anajalvarenga
Copy link
Contributor

Add status count in hardware tested
image

Before just show the amount of occorencies
image

@anajalvarenga anajalvarenga force-pushed the feat/hardware-tested-counts branch from 75e10f3 to bbf2149 Compare October 23, 2024 12:15
@@ -242,7 +242,7 @@ def __processBootsTest(self, currentRowData):
self.bootFailReasons[testError] = self.bootFailReasons.get(testError, 0) + 1

if testEnvironmentCompatible is not None:
self.bootEnvironmentCompatible[testEnvironmentCompatible] += 1
self.bootEnvironmentCompatible[testEnvironmentCompatible][testStatus] += 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

Some test status are coming as null nowadays, I whink we should acknowledge for them and count them

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added this logic, calling null testStatus as none or NONE to avoid errors with null JavaScript

@anajalvarenga anajalvarenga force-pushed the feat/hardware-tested-counts branch from bbf2149 to 1c19cdd Compare October 23, 2024 19:40
@@ -242,7 +242,10 @@ def __processBootsTest(self, currentRowData):
self.bootFailReasons[testError] = self.bootFailReasons.get(testError, 0) + 1

if testEnvironmentCompatible is not None:
self.bootEnvironmentCompatible[testEnvironmentCompatible] += 1
if testStatus is None:
self.bootEnvironmentCompatible[testEnvironmentCompatible]["NONE"] += 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

very nit: but you can call it "NULL"

image

pass={PASS}
skip={SKIP}
none={NONE}
forceNumber={false}
Copy link
Collaborator

Choose a reason for hiding this comment

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

You're passing "forceNumber" here but the GroupedTestStatus component doesn't use it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

nice catch

Copy link
Collaborator

@WilsonNet WilsonNet left a comment

Choose a reason for hiding this comment

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

looks good, pre-approving it, please fix before merge

Copy link
Collaborator

@lfjnascimento lfjnascimento left a comment

Choose a reason for hiding this comment

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

LGTM, just fix the comments

@anajalvarenga anajalvarenga force-pushed the feat/hardware-tested-counts branch from 1c19cdd to eed5777 Compare October 24, 2024 13:11
@anajalvarenga anajalvarenga force-pushed the feat/hardware-tested-counts branch from eed5777 to 48badb9 Compare October 24, 2024 13:23
@anajalvarenga anajalvarenga merged commit 48badb9 into main Oct 24, 2024
5 checks passed
@WilsonNet WilsonNet deleted the feat/hardware-tested-counts branch November 13, 2024 12:40
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.

status counts per platform
4 participants