build: Avoid staying in subdir of dependency after it has been installed#15113
build: Avoid staying in subdir of dependency after it has been installed#15113Zouxxyy wants to merge 1 commit intofacebookincubator:mainfrom
Conversation
✅ Deploy Preview for meta-velox canceled.
|
scripts/setup-common.sh
Outdated
| # shellcheck source-path=SCRIPT_DIR | ||
|
|
||
| SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}") | ||
| ABSOLUTE_SCRIPTDIR=$(realpath "$SCRIPT_DIR") |
There was a problem hiding this comment.
Maybe I can directly replace SCRIPT_DIR with ABSOLUTE_SCRIPTDIR?
|
@Zouxxyy, could you add some essential description explaining why this issue occurred? I assume this PR is not just for Gluten Velox build. Thanks. |
here is log in https://github.com/apache/incubator-gluten/actions/runs/18381728104/job/52369538057?pr=10836
I think there are two things we could consider—what do you think? @PHILO-HE
|
Yes, please implement this change (across all setup scripts!). We shouldn't stay in the subdir for the dependency after it has been installed. We must be nesting these dirs deeply? Interesting that it never lead to issue previously. |
I've pushed the changes, but not sure where I can check if the CI is passing. |
Because this is your first contribution I have to manually run ci :) should be going now! |
|
@assignUser The previous commit had a formatting issue, I fix it, could you help re-trigger the CI, Thanks. |
def90fb to
8a6625f
Compare
|
@assignUser The faild ci may fixed by #15040, I rebased, could you help re-trigger the CI, Thanks. |
8a6625f to
4e3b611
Compare
…led (facebookincubator#15113) Summary: In apache/gluten#10836, we encountered a Velox compilation issue caused by the changes introduced in facebookincubator#14849. The error occurred because ABSOLUTE_SCRIPTDIR was modified. ``` 2025-10-09T03:42:02.6189401Z ++ realpath scripts 2025-10-09T03:42:02.6207867Z + ABSOLUTE_SCRIPTDIR=/__w/incubator-gluten/incubator-gluten/ep/build-velox/build/velox_ep/deps-download/abseil-cpp/scripts 2025-10-09T03:42:02.6210432Z + VELOX_ARROW_CMAKE_PATCH=/__w/incubator-gluten/incubator-gluten/ep/build-velox/build/velox_ep/deps-download/abseil-cpp/scripts/../CMake/resolve_dependency_modules/arrow/cmake-compatibility.patch 2025-10-09T03:42:02.6212114Z + cd /__w/incubator-gluten/incubator-gluten/ep/build-velox/build/velox_ep/deps-download/arrow 2025-10-09T03:42:02.6213956Z + git apply /__w/incubator-gluten/incubator-gluten/ep/build-velox/build/velox_ep/deps-download/abseil-cpp/scripts/../CMake/resolve_dependency_modules/arrow/cmake-compatibility.patch 2025-10-09T03:42:02.6230732Z error: can't open patch '/__w/incubator-gluten/incubator-gluten/ep/build-velox/build/velox_ep/deps-download/abseil-cpp/scripts/../CMake/resolve_dependency_modules/arrow/cmake-compatibility.patch': No such file or directory 2025-10-09T03:42:02.6235097Z + exit 1 ``` Pull Request resolved: facebookincubator#15113 Reviewed By: bikramSingh91 Differential Revision: D85060996 Pulled By: pedroerp fbshipit-source-id: 255eb7a82bc3d9ffb6c47e2a4c96066b4974823e
In apache/gluten#10836, we encountered a Velox compilation issue caused by the changes introduced in #14849. The error occurred because ABSOLUTE_SCRIPTDIR was modified.