Image node-python (runner label python) có python3 nhưng thiếu make và g++. Vì vậy module Node có phần native, như better-sqlite3, không biên dịch được bằng node-gyp khi không tải được bản prebuilt. pip build wheel có phần C cũng gặp vấn đề tương tự.
Thay đổi: thêm build-essential vào node-python/Dockerfile, cập nhật README.
Đã thử local:
docker build node-python: OK.
Trong image: Node 26.13.1, Python 3.13.5, GNU Make 4.4.1, g++ 14.2.0.
npm_config_build_from_source=true npm ci của repo tl-noti: build better-sqlite3 từ nguồn thành công; npm run build OK; test 55/55 pass.
Dùng cho: CI của tl-noti sẽ chạy runs-on: python, bỏ bước apt-get install mỗi lần chạy.
Image `node-python` (runner label `python`) có python3 nhưng thiếu `make` và `g++`. Vì vậy module Node có phần native, như `better-sqlite3`, không biên dịch được bằng node-gyp khi không tải được bản prebuilt. pip build wheel có phần C cũng gặp vấn đề tương tự.
Thay đổi: thêm `build-essential` vào `node-python/Dockerfile`, cập nhật README.
Đã thử local:
- `docker build node-python`: OK.
- Trong image: Node 26.13.1, Python 3.13.5, GNU Make 4.4.1, g++ 14.2.0.
- `npm_config_build_from_source=true npm ci` của repo tl-noti: build `better-sqlite3` từ nguồn thành công; `npm run build` OK; test 55/55 pass.
Dùng cho: CI của tl-noti sẽ chạy `runs-on: python`, bỏ bước `apt-get install` mỗi lần chạy.
Image node-python có python3 nhưng thiếu make/g++, nên module Node có phần native
(vd better-sqlite3) không biên dịch được khi không tải được prebuilt.
Đã thử: docker build OK; trong image, npm ci của tl-noti build better-sqlite3 từ
nguồn thành công, 55/55 test pass.
APPROVED — The change installs the promised native build toolchain, keeps the normal Python virtual-environment contract intact, and both local and CI image builds pass.
Requirements
met
Verification
git rev-parse HEAD → 751de78f761ddaf3b1cb3255f30ac4b5ceae0789; git status --porcelain produced no output.
Normal container PATH probe → /opt/venv/bin, Python 3.13.5, pip 26.3, GNU Make 4.4.1, g++ 14.2.0.
Native compile probe → g++ /tmp/native.cpp -o /tmp/native exited 0 and the binary printed native-ok; the Python probe printed python-ok.
PR CI completed successfully for build (amd64), build (arm64), and amend-manifest.
No repository unit-test suite is present; the image build plus direct toolchain/compile checks are the available focused verification.
Previous findings
None.
Strengths
Directly addresses native node-gyp and Python C-extension builds in the runner image.
Updates the README toolchain inventory alongside the Dockerfile change.
Retains the existing virtual-environment PATH setup and cleans APT package lists after installation.
Findings
None.
Declined to judge
None.
paseo-flow followups: 0
### Verdict
APPROVED — The change installs the promised native build toolchain, keeps the normal Python virtual-environment contract intact, and both local and CI image builds pass.
### Requirements
met
### Verification
- `git rev-parse HEAD` → `751de78f761ddaf3b1cb3255f30ac4b5ceae0789`; `git status --porcelain` produced no output.
- `docker build -t base-pr12-node-python:review -f node-python/Dockerfile node-python` → `Successfully built 790d9f9dc78c`.
- Normal container PATH probe → `/opt/venv/bin`, Python `3.13.5`, pip `26.3`, GNU Make `4.4.1`, g++ `14.2.0`.
- Native compile probe → `g++ /tmp/native.cpp -o /tmp/native` exited 0 and the binary printed `native-ok`; the Python probe printed `python-ok`.
- PR CI completed successfully for `build (amd64)`, `build (arm64)`, and `amend-manifest`.
- No repository unit-test suite is present; the image build plus direct toolchain/compile checks are the available focused verification.
### Previous findings
None.
### Strengths
- Directly addresses native `node-gyp` and Python C-extension builds in the runner image.
- Updates the README toolchain inventory alongside the Dockerfile change.
- Retains the existing virtual-environment PATH setup and cleans APT package lists after installation.
### Findings
None.
### Declined to judge
None.
paseo-flow followups: 0
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Image
node-python(runner labelpython) có python3 nhưng thiếumakevàg++. Vì vậy module Node có phần native, nhưbetter-sqlite3, không biên dịch được bằng node-gyp khi không tải được bản prebuilt. pip build wheel có phần C cũng gặp vấn đề tương tự.Thay đổi: thêm
build-essentialvàonode-python/Dockerfile, cập nhật README.Đã thử local:
docker build node-python: OK.npm_config_build_from_source=true npm cicủa repo tl-noti: buildbetter-sqlite3từ nguồn thành công;npm run buildOK; test 55/55 pass.Dùng cho: CI của tl-noti sẽ chạy
runs-on: python, bỏ bướcapt-get installmỗi lần chạy.Verdict
APPROVED — The change installs the promised native build toolchain, keeps the normal Python virtual-environment contract intact, and both local and CI image builds pass.
Requirements
met
Verification
git rev-parse HEAD→751de78f761ddaf3b1cb3255f30ac4b5ceae0789;git status --porcelainproduced no output.docker build -t base-pr12-node-python:review -f node-python/Dockerfile node-python→Successfully built 790d9f9dc78c./opt/venv/bin, Python3.13.5, pip26.3, GNU Make4.4.1, g++14.2.0.g++ /tmp/native.cpp -o /tmp/nativeexited 0 and the binary printednative-ok; the Python probe printedpython-ok.build (amd64),build (arm64), andamend-manifest.Previous findings
None.
Strengths
node-gypand Python C-extension builds in the runner image.Findings
None.
Declined to judge
None.
paseo-flow followups: 0
✅ Đã APPROVED, chờ bạn duyệt merge