Skip to content

Conversation

zdong2
Copy link
Collaborator

@zdong2 zdong2 commented Aug 5, 2025

Summary

Make the entry point and command properties dynamic for Titus Launcher

What changed?

  • Added support for resolving container entry points and commands dynamically and falling back to default values if the properties are not set, specifically:
    • genie.agent.launcher.titus.entry-point-template
    • genie.agent.launcher.titus.command-template
  • Added tests for container entry point and command resolution.

@zdong2 zdong2 marked this pull request as ready for review August 5, 2025 19:11
@zdong2 zdong2 requested review from bhou2 and yingyiz-netflix August 5, 2025 19:11
when:
def entryPointTemplate = ["my", "entrypoint"]
def commandTemplate = ["my", "command"]
environment.withProperty(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if the property is malformed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case, the Titus container will still launch, but it will fail finally. This change is mainly intended to help with testing and rolling out changes related to the entry point or command. The default values are stored in property files like application.yml, so we don't anticipate needing a long-term fast property for this scenario.

Copy link

@dgshep dgshep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Docs, functionality, and tests all align. Only one question on error handling if the property isn't valid csv.

Copy link

@praneethy91 praneethy91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks

Copy link
Contributor

@bhou2 bhou2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM. Something nice to have is minor improvements on logging for monitoring and debugging purposes.

@zdong2 zdong2 merged commit 81f36f9 into master Aug 5, 2025
3 checks passed
@zdong2 zdong2 deleted the make-genie-agent-entrypoint-command-dynamic branch August 5, 2025 23:46
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.

4 participants