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

tests: Add support for regex lookup in error msg #8187

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

arno-lunarg
Copy link
Contributor

Proposal for #8140

For now only tried it in NegativeGpuAVIndirectBuffer.DrawCount

@arno-lunarg arno-lunarg requested a review from a team as a code owner June 24, 2024 15:02
@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 205964.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 205978.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 16909 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 206007.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 16910 failed.

1 similar comment
@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 16910 failed.

Copy link
Contributor

@spencer-lunarg spencer-lunarg left a comment

Choose a reason for hiding this comment

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

It looks good, one nit about the include

nice part is this is forward looking and won't break anything we already have

m_errorMonitor->SetDesiredError("VUID-vkCmdDrawIndirectCount-countBuffer-03122");
m_errorMonitor->SetDesiredErrorRegex(
"VUID-vkCmdDrawIndirectCount-countBuffer-03122",
"Indirect draw count of 2 would exceed buffer size 16 of buffer VkBuffer 0x[a-f0-9]*\\[\\] stride = 16 offset = 0 "
Copy link
Contributor

Choose a reason for hiding this comment

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

will be fun copying 0x[a-f0-9]*\\[\\] all over 😆

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh I left that... honestly 0x[a-f0-9]*\\[\\] could just be .*

Copy link
Contributor

Choose a reason for hiding this comment

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

... that would feel nicer in my soul to copy in the future

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 206352.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 16917 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 16917 failed.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 206408.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 16919 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 16919 failed.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 206448.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 16921 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 16921 passed.

For now only tried it in NegativeGpuAVIndirectBuffer.DrawCount
@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 206584.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 16928 running.

1 similar comment
@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 16928 running.

@ci-tester-lunarg
Copy link
Collaborator

CI Vulkan-ValidationLayers build # 16928 passed.

@arno-lunarg arno-lunarg merged commit 53cf8e4 into KhronosGroup:main Jun 26, 2024
20 checks passed
@arno-lunarg arno-lunarg deleted the arno-tests-regex branch June 26, 2024 07:21
@@ -149,6 +165,12 @@ void ErrorMonitor::SetDesiredError(const char *msg, uint32_t count) {
}
}

void ErrorMonitor::SetDesiredErrorRegex(const char *vuid, std::string msg_regex, uint32_t count /*= 1*/) {
for (uint32_t i = 0; i < count; i++) {
SetDesiredFailureMsgRegex(kErrorBit, vuid, msg_regex);
Copy link
Contributor

Choose a reason for hiding this comment

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

if count is greater than one then you might end up "compiling" the regex string multiple times.

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, I agree, will take a look later, for the short term, most things use count of 1 and the few GPU-AV tests that use it is 3 so we shouldn't accidentally hit a crazy regex compiling bottleneck, but I always monitor how long tests take to run regardless, so good thing to note as a possible spot to look at

Copy link
Contributor

Choose a reason for hiding this comment

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

nvm, @arno-lunarg is a better man than me #8206

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.

None yet

4 participants