Remove merlin-server as a dependency of orchestration-utils#1705
Open
mattdailis wants to merge 1 commit intodevelopfrom
Open
Remove merlin-server as a dependency of orchestration-utils#1705mattdailis wants to merge 1 commit intodevelopfrom
mattdailis wants to merge 1 commit intodevelopfrom
Conversation
f784aae to
6d9467b
Compare
6d9467b to
fea1af1
Compare
fea1af1 to
94cf1b3
Compare
|
94cf1b3 to
1127928
Compare
|
Mythicaeda
reviewed
Dec 17, 2025
| import static gov.nasa.jpl.aerie.json.Uncurry.untuple; | ||
| import static gov.nasa.jpl.aerie.merlin.driver.json.SerializedValueJsonParser.serializedValueP; | ||
|
|
||
| public class Parsers { |
Contributor
There was a problem hiding this comment.
Would these Parsers make sense in either type-utils or parsing-utils?
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.


Description
This is a follow-up to #1700
Currently, users cannot use orchestration-utils without pulling in merlin-server. We don't typically publish merlin-server (#1700 was an exception to that). This PR removes merlin-server from the orchestration-utils dependencies.
There were four things in merlin-server that orchestration-utils needed:
This PR creates a new
Parsers.javafile under thegov.nasa.jpl.aerie.merlin.driver.jsonand moves the four parsers above from merlin-server to this new file.This PR moves
EventGraphFlattenerintogov.nasa.jpl.aerie.merlin.driver.timelinealongside the definition ofEventGraphitself.Verification
It compiles!
Documentation
I couldn't find any docs on stateless aerie - if someone knows otherwise, let me know.
Future work
There are a number of duplicated parsers and parsing functions across merlin-server and scheduler-server. I think we can take a careful look at them and move some of them to this new Parsers.java class.
There are a few copy/pasted implementations of the
parseJsonfunction that I think can be unified by adding a static method to JsonParser in parsing-utilities. I took a stab at that, but then decided that it would be better for this PR to be minimal. That first attempt is in the branch calleddailis/orchestration-utils-dependency-refactor-take-1