Skip to content

[Sanitizers][Darwin][Test] Remove community incompliant internal link from sources #133187

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

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

wrotki
Copy link
Contributor

@wrotki wrotki commented Mar 27, 2025

The malloc_zone.cpp test currently fails on Darwin hosts, in SanitizerCommon
tests with lsan enabled.

Need to XFAIL this test to buy time to investigate this failure. Also
we're trying to bring the number of test failing on Darwin bots to 0, to
get clearer signal of any new failures.

rdar://145873843

@llvmbot
Copy link
Member

llvmbot commented Mar 27, 2025

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Mariusz Borsa (wrotki)

Changes

The malloc_zone.cpp test currently fails on Darwin hosts, in SanitizerCommon
tests with lsan enabled.

Need to XFAIL this test to buy time to investigate this failure. Also
we're trying to bring the number of test failing on Darwin bots to 0, to
get clearer signal of any new failures.

rdar://145873843


Full diff: https://github.com/llvm/llvm-project/pull/133187.diff

1 Files Affected:

  • (modified) compiler-rt/test/sanitizer_common/TestCases/Darwin/malloc_zone.cpp (+2-2)
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Darwin/malloc_zone.cpp b/compiler-rt/test/sanitizer_common/TestCases/Darwin/malloc_zone.cpp
index e68e93129be2f..158f788056f01 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Darwin/malloc_zone.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Darwin/malloc_zone.cpp
@@ -17,8 +17,8 @@
 // UBSan does not install a malloc zone.
 // XFAIL: ubsan
 //
-// Curently fails on darwin/lsan rdar://145873843
-// XFAIL: darwin && lsan
+// Curently fails on darwin/lsan
+// XFAIL: (darwin && lsan) || rdar145873843
 
 #include <malloc/malloc.h>
 #include <stdlib.h>

@wrotki wrotki requested a review from thetruestblue March 27, 2025 00:58
@fmayer
Copy link
Contributor

fmayer commented Mar 27, 2025

I don't understand this CL. Isn't it already skipped with darwin && lsan? What does the || rdar145873843 even do?

@wrotki
Copy link
Contributor Author

wrotki commented Mar 27, 2025

|| rdar145873843 is a no-op (rdar145873843 should evaluate to 0/false). But:

  1. It refers to the bug tracking system item - found examples of others doing it this way
  2. It's not conflicting with the LLVM "no internal links in sources" policy: https://discourse.llvm.org/t/rfc-specify-a-community-policy-for-use-of-private-links/72208

Should I do it differently? Somebody spotting the XFAIL in sources might want to lookup more information on why

@fmayer
Copy link
Contributor

fmayer commented Mar 27, 2025

I don't see how you are doing anything in this PR other than moving the rdar:// link into the condition?

EDIT: In other words, the XFAIL you are talking about in the commit message is already there?

@wrotki
Copy link
Contributor Author

wrotki commented Mar 27, 2025

I need to cherry-pick this XFAIL into LLVM 20 release branch, where one of our bots is failing on the test. I wanted to remove this link and also add some 'why' to the PR, so whoever merges the cherry-pick (I can't no rights) has some better context.

So I decided to update the XFAIL with a separate PR - does it make sense? I know I should've done this from beginning - sorry for the confusion.

@fmayer
Copy link
Contributor

fmayer commented Mar 27, 2025

I still think the PR title should represent what is actually being changed.

@wrotki wrotki force-pushed the eng/m_borsa/xfail_145873843 branch from 6b11d90 to f715d66 Compare March 27, 2025 21:20
@wrotki wrotki changed the title XFAIL malloc_zone.cpp for darwin/lsan [Sanitizers][Darwin][Test] XFAIL malloc_zone.cpp for darwin/lsan Mar 27, 2025
@wrotki
Copy link
Contributor Author

wrotki commented Mar 27, 2025

That's a good point. Edited.

@fmayer
Copy link
Contributor

fmayer commented Mar 27, 2025

I still don't understand. What this PR does is something like "remove rdar://145873843 link and use rdar145873843 tag instead."

(FWIW, I don't necessarily agree that "|| rdar145873843" is more readable or better in really any way than just having the link there, but I don't really care about that)

… from sources

LLVM community prohibits having internal systems URL in source code. This is a correction to a previous PR XFAILing a test.

The malloc_zone.cpp test currently fails on Darwin hosts, in SanitizerCommon
tests with lsan enabled.

Need to XFAIL this test to buy time to investigate this failure. Also
we're trying to bring the number of test failing on Darwin bots to 0, to
get clearer signal of any new failures.

rdar://145873843
@wrotki wrotki force-pushed the eng/m_borsa/xfail_145873843 branch from f715d66 to 4d91050 Compare March 29, 2025 01:11
@wrotki wrotki changed the title [Sanitizers][Darwin][Test] XFAIL malloc_zone.cpp for darwin/lsan [Sanitizers][Darwin][Test] Remove community incompliant internal link from sources Mar 29, 2025
@wrotki
Copy link
Contributor Author

wrotki commented Mar 29, 2025

Okay, now I see what you meant, sorry for being slow. Removed this rdar145873843 part too as I see how it can be confusing.

@wrotki
Copy link
Contributor Author

wrotki commented Mar 31, 2025

@fmayer is it OK to merge it as it is now? I'd like to back port it to release/20.x too...

@wrotki wrotki requested a review from usama54321 March 31, 2025 23:55
@fmayer
Copy link
Contributor

fmayer commented Mar 31, 2025

Thanks

@wrotki wrotki merged commit 02837ac into llvm:main Apr 1, 2025
10 checks passed
@wrotki wrotki deleted the eng/m_borsa/xfail_145873843 branch April 1, 2025 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants