-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Happy] Enable happy test in pre-submit checks #2688
Conversation
Why is this required? From happy source:
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, just a few more fixes..
fec167f
to
89d61dd
Compare
89d61dd
to
4e17027
Compare
In happy: def getRunAsUserPrefixList(self, username=None):
if username is None:
username = getpass.getuser()
if "SUDO" in list(os.environ.keys()):
return [os.environ["SUDO"], "-u", username]
else:
return ["sudo", "-u", username] sudo is required here. |
Can you file a bug against happy and put a TODO linking to it in CHIP ? |
Actually, I still don't think this is required. Looks like that function will not be run if we're already root. |
This doesn't quite work, can you add some documentation before we add these to presubmit?
(These GitHub action scripts don't work well locally) |
Added one more step for |
The flow works reasonably well now and without extraordinary privileges, thank you. I think we should followup with some further workflow fixes, e.g. it should work in parallel with the rest of the test suite and it should not print output to the console if it passes. |
|
Problem
Summary of Changes
happy_test
templateRun all unit tests in gn_testunit_test
).fixes #2591