Skip to content

Exclude more tests from ASan test configuration. - #10281

Merged
ScottTodd merged 1 commit into
iree-org:mainfrom
ScottTodd:asan-exclude-tests
Sep 7, 2022
Merged

ScottTodd merged 1 commit into
iree-org:mainfrom
ScottTodd:asan-exclude-tests

Conversation

@ScottTodd

Copy link
Copy Markdown
Member

See #5716. I just excluded all lit tests from here:

iree_lit_test_suite(
NAME
lit
SRCS
"collatz.mlir"
"edge_detection.mlir"
"fragment_000.mlir"
"fullyconnected.mlir"
"mnist_fake_weights.mlir"
"resnet50_fake_weights.mlir"
"unidirectional_lstm.mlir"
TOOLS

As there are other tests in that file using runners other than lit that have not crashed (that I'm aware of), I did not exclude the entire directory.

Most recent failure: https://github.com/iree-org/iree/runs/8146877750?check_suite_focus=true

1030/1030 Test   #46: iree/tests/e2e/models/resnet50_fake_weights.mlir.test ....................................................................***Failed   63.16 sec
-- Testing: 1 tests, 1 workers --
FAIL: IREE :: e2e/models/resnet50_fake_weights.mlir (1 of 1)
******************** TEST 'IREE :: e2e/models/resnet50_fake_weights.mlir' FAILED ********************
Script:
--
: 'RUN: at line 4';   iree-run-mlir --iree-input-type=mhlo --iree-hal-target-backends=llvm-cpu /home/runner/actions-runner/_work/iree/iree/tests/e2e/models/resnet50_fake_weights.mlir --function_input=1x224x224x3xf32 | FileCheck /home/runner/actions-runner/_work/iree/iree/tests/e2e/models/resnet50_fake_weights.mlir
: 'RUN: at line 5';   [[ $IREE_VULKAN_DISABLE == 1 ]] || (iree-run-mlir --iree-input-type=mhlo --iree-hal-target-backends=vulkan-spirv /home/runner/actions-runner/_work/iree/iree/tests/e2e/models/resnet50_fake_weights.mlir --function_input=1x224x224x3xf32 | FileCheck /home/runner/actions-runner/_work/iree/iree/tests/e2e/models/resnet50_fake_weights.mlir)
--
Exit Code: 1

Command Output (stderr):
--
Tracer caught signal 11: addr=0x0 pc=0x61dbf9 sp=0x7f63edb65d30
==53069==LeakSanitizer has encountered a fatal error.
==53069==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1
==53069==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)

@ScottTodd ScottTodd added the infrastructure Relating to build systems, CI, or testing label Sep 2, 2022
@benvanik

benvanik commented Sep 2, 2022

Copy link
Copy Markdown
Collaborator

It's unfortunate that this also drops asan coverage for non-vulkan things here, but I guess that's an issue with using lit as the runner instead of cmake (which it's still useful to have at least some things running like this to ensure the tools work, so I think that's fine, but we may also want to have cmake runners for these models)

@ScottTodd

Copy link
Copy Markdown
Member Author

It's unfortunate that this also drops asan coverage for non-vulkan things here, but I guess that's an issue with using lit as the runner instead of cmake (which it's still useful to have at least some things running like this to ensure the tools work, so I think that's fine, but we may also want to have cmake runners for these models)

Agreed :/. I've seen enough flakes (and confusion about whether those are issues in infra / llvm integrates / PRs themselves) in the past few weeks that I want to at least patch which tests are ran in this way. When I last looked at the actual failure (LeakSanitizer has encountered a fatal error), I wasn't really hopeful about For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1, but that might help us narrow this down.

@ScottTodd

Copy link
Copy Markdown
Member Author

Ping? Still seeing a few of these tests flake.

@GMNGeoffrey GMNGeoffrey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sorry I missed this. I think I thought Ben had already approved

@ScottTodd
ScottTodd merged commit 08b5fbb into iree-org:main Sep 7, 2022
@ScottTodd
ScottTodd deleted the asan-exclude-tests branch September 7, 2022 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Relating to build systems, CI, or testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants