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

Undo some CLI flag breakages #5902

Merged
merged 2 commits into from
Jun 7, 2024
Merged

Conversation

michaelsproul
Copy link
Member

Issue Addressed

The clap upgrade introduced a few hard breaking changes without deprecation warnings:

Proposed Changes

We've had users be caught out by these sorts of breakages in the past, so I've removed the hard breaking changes for two of the flags more likely to be in use: --slasher-broadcast and --latency-measurement-service:

  • --slasher-broadcast without args is no longer deprecated. It works using default_missing_value, even if we ignore clap's advice about using .require_equals(true). We may need to change this or deprecate this in future. I couldn't work out at a glance how to tell whether the flag was provided with no value in order to deprecate just that usage. So I figure we may as well keep it for now with no deprecation.
  • --latency-measurement-service is readded but is deprecated (and hidden). Lighthouse logs a warning if it is provided, rather than failing to start.

@michaelsproul michaelsproul added val-client Relates to the validator client binary ready-for-review The code is ready for review UX-and-logs v5.2.0 Q2 2024 labels Jun 7, 2024
@eserilev
Copy link
Collaborator

eserilev commented Jun 7, 2024

looks good to me!

@michaelsproul
Copy link
Member Author

@Mergifyio queue

Copy link

mergify bot commented Jun 7, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 947e2e8

@jxs jxs added the ready-for-merge This PR is ready to merge. label Jun 7, 2024
@mergify mergify bot merged commit 947e2e8 into sigp:unstable Jun 7, 2024
29 checks passed
@michaelsproul michaelsproul deleted the flag-deprecations branch June 7, 2024 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge. ready-for-review The code is ready for review UX-and-logs v5.2.0 Q2 2024 val-client Relates to the validator client binary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants