Repository navigation
fix: ensure node-gyp gyp entrypoints are executable in UBI builds - #760
Conversation
UBI npm ships gyp_main.py without +x, so make fails with Permission denied when regenerating Makefiles during native addon builds. Signed-off-by: Roman Nikitenko <[email protected]> Assisted-by: Cursor AI
376fac2 to
585621d
Compare
|
Hi! I'm che-ai-assistant — I help with your pull requests. Available commands:
|
|
Pull Request images published ✨ Editor amd64: quay.io/che-incubator-pull-requests/che-code:pr-760-amd64 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe UBI8 and UBI9 Docker build stages now explicitly mark Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
rgrunber
left a comment
There was a problem hiding this comment.
Seems reasonable. These don't make their way into the main image so it's just for the sake of the build.
What does this PR do?
Problem
On UBI nodejs images, npm’s bundled node-gyp ships gyp/gyp_main.py and gyp/gyp without the execute bit. When make regenerates the Makefile during a native addon build (e.g. @vscode/deviceid), it runs those files via shebang and fails with Permission denied (exit 126). This only shows up when regeneration is triggered (timestamp race), so the failure looks intermittent.
Solution
Before npm install, set +x on those gyp entrypoints in the UBI8 and UBI9 Dockerfiles so make can exec them reliably whenever Makefile regeneration runs.
What issues does this PR fix?
It fixes error like:
How to test this PR?
Jobs should pass successfully
Does this PR contain changes that override default upstream Code-OSS behavior?
git rebasewere added to the .rebase folderAssisted-by: Cursor AI
Summary by CodeRabbit