[envpool] finish phase-1 native dependency upgrades - #335
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6cc1013c5d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| clang-tidy-install: | ||
| command -v clang-tidy || sudo apt-get install -y clang-tidy | ||
| command -v $(CLANG_TIDY_BIN) || sudo apt-get install -y $(CLANG_TIDY_BIN) |
There was a problem hiding this comment.
Avoid hard-requiring clang-tidy-18 in Ubuntu 22.04 setups
Checked docker/dev.dockerfile, docker/dev-cn.dockerfile, and the documented make lint flow: the repo’s stock dev images are still based on Ubuntu 22.04 and only install the unversioned clang-tidy package, but this change makes make clang-tidy require clang-tidy-18 specifically. On those images, command -v clang-tidy-18 will fail and the fallback apt-get install clang-tidy-18 is not available from the default 22.04 repos, so the documented lint workflow stops working even before Bazel runs.
Useful? React with 👍 / 👎.
Summary
make lintand full Bazel tests passing ondev-0.This finishes the first native-upgrade pass without pulling in the larger benchmark modernization or Bazel rules migration work.
Technical Details
std::invoke_result_t, pin repo lint toclang-tidy-18, and make small semantics-preserving code cleanups where the newer lint stack flagged issues.envpool/workspace0.bzl: native archive versions, NASM/threadpool wiring, and updated fetch metadata.third_party/jpeg/jpeg.BUILD: libjpeg-turbo 3.x layout, generated headers, and SIMD rule updates.third_party/nasm/config.h: checked-in Linux configure output used to keep NASM 3.01 reproducible under Bazel.third_party/threadpool/invoke_result.patch: C++17 compatibility patch replacingstd::result_of.Makefile:clang-tidy-18install/pin wrapper used by repo lint.make bazel-testondev-0hit one//envpool/dummy:dummy_envpool_testflake; the single-target rerun,--runs_per_test=3, and a second fullmake bazel-testall passed.Test Plan
Automated
brix ssh dev-0 -C -- 'exec bash -il -c "cd /root/code/envpool && make lint"': passedbrix ssh dev-0 -C -- 'exec bash -il -c "cd /root/code/envpool && make bazel-test"': passed on rerun (30/30)brix ssh dev-0 -C -- 'exec bash -il -c "cd /root/code/envpool && USE_BAZEL_VERSION=6.0.0 /root/code/openai/project/dotslash-gen/bin/bazelisk test //envpool/dummy:dummy_envpool_test --config=test --test_output=all --nocache_test_results"': passedbrix ssh dev-0 -C -- 'exec bash -il -c "cd /root/code/envpool && USE_BAZEL_VERSION=6.0.0 /root/code/openai/project/dotslash-gen/bin/bazelisk test //envpool/dummy:dummy_envpool_test --config=test --test_output=errors --nocache_test_results --runs_per_test=3"': passedSuggested Manual
git diff origin/main...HEAD: review the third-party archive/version changes and BUILD-file migrations.third_party/jpeg/jpeg.BUILDandthird_party/nasm/config.h: confirm the checked-in NASM config header and libjpeg 3.x Bazelization strategy are acceptable.