Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add lilynext flag #526

Merged
merged 1 commit into from
Mar 3, 2025
Merged

feat: Add lilynext flag #526

merged 1 commit into from
Mar 3, 2025

Conversation

bgins
Copy link
Contributor

@bgins bgins commented Mar 3, 2025

Summary

This pull request makes the following changes:

  • Add a global lilynext flag
  • Extract the lilynext flag in the solver, resource provider, run, and job creator commands

This pull request adds a lilynext feature flag to the gate the new protocol while we implement and stabilize it. The flag is available globally and consumed by commands that may implement the new protocol.

Test plan

Run the solver with the lilynext flag:

./stack solver --lilynext

The solver should log a line at startup like:

2025-03-03T11:09:18-08:00 INF cmd/lilypad/solver.go:35 > 🍃 Running the new lilypad protocol

Running the solver without the lilynext flag should not log this line.

The same should hold true for the resource provider, run command, and job creator proxy.

Details

We will need make the feature flag available throughout our code, wherever we implement new protocol.

Although we do not actively support the onchain job creator, we pass the flag to it because it shares functionality with the run command, so it may need it.

Related issues or PRs

Epic: https://github.com/Lilypad-Tech/internal/issues/407

@bgins bgins requested a review from a team as a code owner March 3, 2025 19:21
@cla-bot cla-bot bot added the cla-signed label Mar 3, 2025
Copy link
Collaborator

@narbs91 narbs91 left a comment

Choose a reason for hiding this comment

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

LGTM!

@bgins bgins merged commit 308b2f3 into main Mar 3, 2025
6 checks passed
@bgins bgins deleted the bgins/feat-add-lilynext-flag branch March 3, 2025 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants