Repository navigation
Fix Java runtime availability in isolated task environments - #52
Merged
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Restore the preinstalled Java 21 runtime in isolated submission processes. Their sanitized environments dropped
JAVA_HOMEand often removed the Java executable directory fromPATH, causing PyJNIus to reportUnable to find javaceven though its Java interface works with the installed runtime whenJAVA_HOMEis set.Changes
JAVA_HOME=/opt/java/openjdkacross 43 affected tasks and include itsbindirectory in fixed submission paths. Update separate build/query launchers, mirrored development/verifier runtime modules, and the incremental-vector-search public profiler.icsi-meeting-memory,filtered-ann-retrieval,incremental-vector-search, andsparse-retrieval-pruning. Keep other paths protected and retain the existing thread, resource, and network restrictions.JAVA_HOMEagainst the original source and pass with this fix.This task-runtime fix remains compatible with CLI 0.3.0 and Harbor 0.22.0. It does not inject an OpenAI API key or change Pyserini's missing-key behavior. Scoring rules, task instructions, input assets, shared base images, and resource budgets are unchanged.
Validation
git diff --checkpassed.pyserini.pyclassas UID 65534, with private credentials excluded.JAVA_HOMEand the Java path changed. Production-source comparison confirms that the remaining changes are limited to Java read/execute allowlists.Runtime checks used cached pinned base images with the updated environment constructors and sandbox source. Full task-image rebuilds, coding-model/judge API calls, and formal benchmark reevaluations were not performed. Existing archived results and trajectories were not modified.