You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AI review requested by the user, covering the nine changed files and relevant supporting code. This is input to human review, not a substitute for it.
This PR improves Apptainer container setup and Phoronix benchmark automation. It addresses those workflows, but remaining safety and correctness issues should be resolved before merging.
Changes:
Adds build-time bind handling, expands container repository selection, and introduces an AppArmor profile.
Reuses suitable system PHP installations and isolates Phoronix configuration and results for unattended runs.
Adds FFTW version detection and refreshes the script index timestamp.
Suggested path to merge:
Address the inline review comments.
Validate affected bind configurations, supported package managers, and both Phoronix execution modes.
File
Description
script/run-apptainer-container/customize.py
Selects image repositories independently of fakeroot.
script/README.md
Refreshes the last-updated timestamp.
script/get-phoronix-test-suite/run.sh
Adds system-PHP reuse for portable installation.
script/get-generic-sys-util/meta.yaml
Adds FFTW version detection and output declaration.
script/get-apptainer/install-ubuntu.sh
Adds an AppArmor user-namespace allowance.
script/build-apptainerfile/meta.yaml
Maps bind input to the container environment.
script/build-apptainerfile/customize.py
Generates bind destinations during image setup.
script/build-apptainer-image/customize.py
Forwards bind mounts to image builds.
script/benchmark-program-phoronix/run.sh
Isolates PTS configuration and redirects benchmark input.
⚠️ This PR modifies automation/ — the frozen engine copy
The MLC script automation engine now lives in mlcflow and ships bundled with it. The copy in this repo is kept only as a fallback for mlcflow <= 1.2.9, and is ignored entirely by mlcflow >= 1.3.0.
A change here will not reach anyone running a current mlcflow. Engine changes belong in a PR against mlcflow — see automation/README.md.
This is a warning, not a block: fixes aimed at the fallback copy are still legitimate while it ships.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Unresolved critical issues omit requested Apptainer mounts during definition generation and cause FFTW detection to fail on supported non-Debian systems.
A bind such as /mnt/compiler builds:/toolchain passes the existence check but is split into multiple arguments when script/build-apptainer-image/run.sh:5 evaluates the assembled command. Apptainer receives a truncated bind source and an extra positional argument instead of the requested mount. Fix: Shell-quote each complete bind specification before adding it to build_opts.
Normalize the FFTW version output key
script/get-generic-sys-util/meta.yaml:571
script/get-generic-sys-util/customize.py:131,158 derives the version key directly from MLC_SYS_UTIL_NAME.upper(), producing MLC_LIBFFTW3-DEV_VERSION rather than the declared MLC_LIBFFTW3_DEV_VERSION. The exact-key filtering in automation/script/module.py:5997–5998 therefore omits the detected version from the returned/cache environment. Fix: Normalize the internal utility name and matching state key to libfftw3_dev, retaining the package names; the replacement also includes the package-manager probe correction noted above.
Preserve existing AppArmor restrictions when enabling user namespaces
script/get-apptainer/install-ubuntu.sh:16
This truncates an existing AppArmor profile and replaces it with an unconfined one whenever the file lacks a literal userns, line. An administrator-maintained confined profile, or a profile granting user namespaces through an include, satisfies that condition too, so installing Apptainer can silently discard its restrictions and change its executable attachments. Preserve the existing profile and add only the required ABI/userns permission, or require explicit opt-in before replacing administrator policy.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The PHP reuse probe can select an installation missing mandatory PTS extensions and bypass the usable fallback, while the FFTW version-key mismatch prevents the detected version from being exported or cached.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human assessment is needed to evaluate non-root cache permissions, bind-source handling, and Phoronix dependency and portability regressions across deployment environments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🧾 PR Checklist
📁 File Hygiene & Output Handling
📝 Comments & Communication
Fixes #,Related to #, etc.)🛡️ Safety & Security