Skip to content

Fix allocate-definitive-ids workflow (use ODK system robot for kgcl) - #2725

Merged
aleixpuigb merged 1 commit into
masterfrom
worktree-fix-allocate-ids
Jun 23, 2026
Merged

aleixpuigb merged 1 commit into
masterfrom
worktree-fix-allocate-ids

Conversation

@aleixpuigb

@aleixpuigb aleixpuigb commented Jun 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The Allocate definitive EFO IDs workflow has been failing on every run. Root cause: the ROBOT= override added in #2717 invoked

java -cp ../../bin/robot.jar:tmp/plugins/kgcl.jar org.obolibrary.robot.CommandManager kgcl:mint ...

which fails immediately — org.obolibrary.robot.CommandManager has no static main(), so the JVM never starts ROBOT:

Error: Main method is not static in class org.obolibrary.robot.CommandManager

It was also broken in two further ways: ROBOT loads plugins from ROBOT_PLUGINS_DIRECTORY, not from the classpath, and tmp/plugins/kgcl.jar was never created. The env var also pointed at a non-existent path (/odk/resources/robot/plugins).

Fix

Mirror uberon's working ODK setup:

  • Run kgcl:mint through the ODK image's system robot wrapper (plugin-capable) instead of a hand-rolled java -cp call.
  • Set ROBOT_PLUGINS_DIRECTORY: /tools/robot-plugins — where the ODK image actually ships kgcl.jar (same location uberon's ODK Makefile uses).
  • Pass --catalog catalog-v001.xml so efo-edit.owl imports resolve from the committed import modules.
  • Keep the MONDO-import prep step (mondo_import.owl is gitignored / regenerated; the other 14 imports are committed).
  • Log the available plugins for easier future diagnosis.

This PR contains only the workflow change. Once merged, the push to master triggers the workflow, which will then allocate definitive IDs for any pending temp IDs automatically.

Verification

Triggered via workflow_dispatch on 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 cleanly
  • The pending temp ID (systemic inflammation, EFO_0990000) was minted and pushed during the test run; that test commit was removed so this PR stays workflow-only and the allocation runs on master after merge.

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]>
@aleixpuigb aleixpuigb changed the title Worktree fix allocate ids Fix allocate-definitive-ids workflow (use ODK system robot for kgcl) Jun 23, 2026
@aleixpuigb

aleixpuigb commented Jun 23, 2026 •

Copy link
Copy Markdown
Collaborator Author

Updated: dropped the Replace temporary IDs by definitive IDs. commit — this PR now contains only the workflow fix.

The fix was verified live on this branch before the commit was removed (run 28026147287 succeeded: Available ROBOT plugins: kgcl.jar, kgcl:mint ran cleanly, and it minted the pending temp ID).

Once this PR merges, the push to master will trigger the workflow, which will then allocate the definitive ID for systemic inflammation (EFO_0990000 → an Automation-range ID) automatically — keeping the ID allocation as a workflow action rather than a manual commit here.

@aleixpuigb
aleixpuigb force-pushed the worktree-fix-allocate-ids branch from f33065f to 0129e26 Compare June 23, 2026 13:29
@aleixpuigb aleixpuigb self-assigned this Jun 23, 2026
@aleixpuigb
aleixpuigb merged commit f28fd4b into master Jun 23, 2026
2 checks passed
@aleixpuigb
aleixpuigb deleted the worktree-fix-allocate-ids branch June 23, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant