-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add support for sudo in setup scripts #8943
Conversation
✅ Deploy Preview for meta-velox canceled.
|
6c15013
to
f3ce37a
Compare
640ae8e
to
f780053
Compare
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.
Looks good, curious why we are having the problem though.
scripts/setup-ubuntu.sh
Outdated
@@ -29,6 +29,7 @@ BOOST_VERSION=boost-1.84.0 | |||
NPROC=$(getconf _NPROCESSORS_ONLN) | |||
DEPENDENCY_DIR=${DEPENDENCY_DIR:-$(pwd)} | |||
export CMAKE_BUILD_TYPE=Release | |||
SUDO=sudo |
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.
Do you know why we need sudo now to install ? Any idea why was this not a problem earlier ?
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.
@kgpai We source the ubuntu setup script in github workflows. Sourcing does not install the folly, boost packages.
So we did not see this problem until now.
My internal setup uses root, so I did not see this problem there as well.
But you will see that the system installs in the ubuntu script use sudo. So this change is required.
After this change, we need to change the invocation in the workflows to
run: source ./scripts/setup-ubuntu.sh && install_velox_deps
or
run: ./scripts/setup-ubuntu.sh
CC: @czentgr
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 , makes sense !
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.
nit: I think we have to export SUDO.
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.
I don't think we need sudo in the yml file. We must land the sudo change to main first so that the base (main) branch has the sudo fix.
@majetideepak I am triggering the nightly workflows with my push to validate that this fixes it. Will revert that change if it works.. |
46cb282
to
48e0692
Compare
@kgpai We need to fix the workflow command
|
ee665ca
to
65c1d4e
Compare
@kgpai I don't think we need sudo in the yml files. The sudo changes must land first since the CI benchmarks builds off the base (main) branch first. |
Torch arrow CI is failing since the setup file has been removed here #8961 |
@kgpai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@majetideepak Atleast the sudo for compile step is required.. |
@kgpai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@majetideepak Looks like all the sudo's are required : https://github.com/facebookincubator/velox/actions/runs/8177028735/job/22360517904?pr=8943 |
@kgpai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Hi @majetideepak, do we need to also add |
@PHILO-HE, yes we do. I am fixing it here https://github.com/facebookincubator/velox/pull/8988/files |
Great! Thanks! |
Summary: Ubuntu requires sudo to install at the standard path. Pull Request resolved: facebookincubator#8943 Reviewed By: Yuhta Differential Revision: D54593906 Pulled By: kgpai fbshipit-source-id: cb7ee939d3fdf2675531ce5852c541b89519e07d
Ubuntu requires sudo to install at the standard path.