Repository navigation
Fix allocate-definitive-ids workflow (use ODK system robot for kgcl) - #2725
Merged
Merged
Conversation
The previous workflow overrode ROBOT with java -cp ../../bin/robot.jar:tmp/plugins/kgcl.jar org.obolibrary.robot.CommandManager which fails immediately: CommandManager has no static main(), so the JVM never starts ROBOT (and tmp/plugins/kgcl.jar was never created). Plugins also aren't loaded via -cp; ROBOT discovers them via ROBOT_PLUGINS_DIRECTORY. Mirror uberon's working setup instead: - Run kgcl:mint via the ODK image's system `robot` wrapper (plugin-capable). - Point ROBOT_PLUGINS_DIRECTORY at /tools/robot-plugins, where the ODK image ships kgcl (the wrong /odk/resources/robot/plugins path was used). - Pass --catalog so efo-edit.owl imports resolve from committed modules. - Keep the MONDO import prep (mondo_import.owl is gitignored / regenerated). - Log the available plugins for easier future diagnosis. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Collaborator
Author
|
Updated: dropped the The fix was verified live on this branch before the commit was removed (run 28026147287 succeeded: Once this PR merges, the push to |
aleixpuigb
force-pushed
the
worktree-fix-allocate-ids
branch
from
June 23, 2026 13:29
f33065f to
0129e26
Compare
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.
Summary
The Allocate definitive EFO IDs workflow has been failing on every run. Root cause: the
ROBOT=override added in #2717 invokedwhich fails immediately —
org.obolibrary.robot.CommandManagerhas no staticmain(), so the JVM never starts ROBOT:It was also broken in two further ways: ROBOT loads plugins from
ROBOT_PLUGINS_DIRECTORY, not from the classpath, andtmp/plugins/kgcl.jarwas never created. The env var also pointed at a non-existent path (/odk/resources/robot/plugins).Fix
Mirror uberon's working ODK setup:
kgcl:mintthrough the ODK image's systemrobotwrapper (plugin-capable) instead of a hand-rolledjava -cpcall.ROBOT_PLUGINS_DIRECTORY: /tools/robot-plugins— where the ODK image actually shipskgcl.jar(same location uberon's ODK Makefile uses).--catalog catalog-v001.xmlsoefo-edit.owlimports resolve from the committed import modules.mondo_import.owlis gitignored / regenerated; the other 14 imports are committed).This PR contains only the workflow change. Once merged, the push to
mastertriggers the workflow, which will then allocate definitive IDs for any pending temp IDs automatically.Verification
Triggered via
workflow_dispatchon this branch — run succeeded (28026147287). The log shows:Available ROBOT plugins: kgcl.jar(KGCL 0.5.1 found at/tools/robot-plugins)robot --catalog catalog-v001.xml kgcl:mint ...ran cleanlyEFO_0990000) was minted and pushed during the test run; that test commit was removed so this PR stays workflow-only and the allocation runs onmasterafter merge.