Skip to content

[BOLT] Require non root user for unreadable-profile.test #119816

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

Conversation

boomanaiden154
Copy link
Contributor

This patch adds a requirement for a non root user in unreadable-profile.test. This test fails if run as a root user (like in a container without explicitly changing the user), which can lead to some CI test failures.

This patch adds a requirement for a non root user in
unreadable-profile.test. This test fails if run as a root user (like in
a container without explicitly changing the user), which can lead to
some CI test failures.
@llvmbot
Copy link
Member

llvmbot commented Dec 13, 2024

@llvm/pr-subscribers-bolt

Author: Aiden Grossman (boomanaiden154)

Changes

This patch adds a requirement for a non root user in unreadable-profile.test. This test fails if run as a root user (like in a container without explicitly changing the user), which can lead to some CI test failures.


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

1 Files Affected:

  • (modified) bolt/test/unreadable-profile.test (+1-1)
diff --git a/bolt/test/unreadable-profile.test b/bolt/test/unreadable-profile.test
index fe1ca93f3221e8..4c1cd8af0a62c1 100644
--- a/bolt/test/unreadable-profile.test
+++ b/bolt/test/unreadable-profile.test
@@ -1,4 +1,4 @@
-REQUIRES: system-linux
+REQUIRES: system-linux, non-root-user
 
 RUN: touch %t.profile && chmod 000 %t.profile
 RUN: %clang %S/Inputs/hello.c -o %t

Copy link
Contributor

@aaupov aaupov left a comment

Choose a reason for hiding this comment

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

Thanks, good catch

@boomanaiden154 boomanaiden154 merged commit 2bf3ef1 into llvm:main Dec 13, 2024
9 checks passed
@boomanaiden154 boomanaiden154 deleted the bolt-non-root-user-unreadable-profile-test branch December 13, 2024 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants