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

Automated gtest formatting checks #3370

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from
Open

Automated gtest formatting checks #3370

wants to merge 17 commits into from

Conversation

reidkwja
Copy link
Collaborator

@reidkwja reidkwja commented Nov 5, 2024

Checks for formatting rules in link upon push or changes in gtest directory.

@reidkwja reidkwja marked this pull request as ready for review November 7, 2024 20:00
Copy link
Contributor

@CAHEK7 CAHEK7 left a comment

Choose a reason for hiding this comment

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

I'm just double checking - does the script detects missed INSTANTIATE_TEST_SUITE_P for TEST_P?

@junliume
Copy link
Collaborator

@reidkwja

/home/jenkins/workspace/MLLIBS_MIOpen_rk_gtestchecker@tmp/durable-b196ff28/script.sh: 16: ./test/utils/check_gtests.sh: not found

script returned exit code 127

@reidkwja
Copy link
Collaborator Author

Will be adding some additional logic to the bash script to ensure better error messages

Comment on lines +16 to +20
VALID_HW_TYPES = {"CPU", "GPU"}
VALID_DATATYPES = {"FP8", "FP16", "FP32", "FP64", "BFP16", "BFP8", "I64", "I32", "I16", "I8", "NONE"}
TESTSUITE_REGEX = re.compile(
r"^(CPU|GPU)_[A-Za-z0-9]+(?:_[A-Za-z0-9]+)*_(" + "|".join(VALID_DATATYPES) + r")$"
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't it duplicate #3218 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This one extends on it + CI integration that runs upon adding new gtest

@reidkwja reidkwja requested a review from a team as a code owner November 18, 2024 22:01
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