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

ping --handshake-only #524

Closed
wants to merge 2 commits into from
Closed

Conversation

felix-lipski
Copy link
Contributor

Changelog

- description: |
    unixsoc depend on handshake-only
# uncomment types applicable to the change:
  type:
  - feature        # introduces a new feature
  # - breaking       # the API has changed in a breaking way
  # - compatible     # the API has changed but is non-breaking
  # - optimisation   # measurable performance improvements
  # - improvement    # QoL changes e.g. refactoring
  - bugfix         # fixes a defect
  # - test           # fixes/modifies tests
  # - maintenance    # not directly related to the code
  # - release        # related to a new release preparation
  # - documentation  # change in code docs, haddocks...

Context

issue
previous PR

How to trust this PR

Highlight important bits of the PR that will make the review faster. If there are commands the reviewer can run to observe the new behavior, describe them.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. See Running tests for more details
  • Self-reviewed the diff

@felix-lipski felix-lipski linked an issue Dec 15, 2023 that may be closed by this pull request
@felix-lipski felix-lipski force-pushed the felix-lipski/ping-handshake-only branch from 603309a to d6abb95 Compare December 18, 2023 14:08
cardano-cli/src/Cardano/CLI/Run/Ping.hs Fixed Show fixed Hide fixed
cardano-cli/src/Cardano/CLI/Run/Ping.hs Fixed Show fixed Hide fixed
cardano-cli/src/Cardano/CLI/Run/Ping.hs Fixed Show fixed Hide fixed
cardano-cli/src/Cardano/CLI/Run/Ping.hs Fixed Show fixed Hide fixed
cardano-cli/src/Cardano/CLI/Run/Ping.hs Fixed Show fixed Hide fixed
cardano-cli/src/Cardano/CLI/Run/Ping.hs Fixed Show fixed Hide fixed
cardano-cli/src/Cardano/CLI/Run/Ping.hs Fixed Show fixed Hide fixed
cardano-cli/src/Cardano/CLI/Run/Ping.hs Fixed Show fixed Hide fixed
@felix-lipski felix-lipski force-pushed the felix-lipski/ping-handshake-only branch from d6abb95 to c52dc8a Compare December 18, 2023 14:54
@felix-lipski felix-lipski force-pushed the felix-lipski/ping-handshake-only branch 2 times, most recently from c769953 to afde59d Compare December 18, 2023 15:00
@felix-lipski felix-lipski force-pushed the felix-lipski/ping-handshake-only branch from afde59d to 624ba8d Compare December 18, 2023 15:15
[-j|--json]
[-q|--quiet]
[-Q|--query-versions]
| --handshake-only (-u|--unixsock SOCKET)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This incorrectly omits all the other options in this case.
This is because visibility in optparse-appicative can only be Internal, Hidden or Visible.
There is no fourth visibility to hide an option in the full description and show it in the brief description.
So we either omit these options in the brief description here, or they will be doubled in the full description.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hum I see, there is no good solution in the current state.

@Jimbo4350> would be it acceptable to instead:

  1. Keep only one parser (e.g. pPing) and
  2. Indicate in -u/--unixsock that this option requires --handshake-only
  3. Perform the check that if -u is specified, then so is --handhshake-only, when the command starts to run? (as opposed to doing the check in the parser)

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link

This PR is stale because it has been open 45 days with no activity.

@github-actions github-actions bot added the Stale label Feb 13, 2024
@smelc
Copy link
Contributor

smelc commented Feb 13, 2024

Since this is not a priority, I'm letting the stale bot do its thing. This PR (and the previous one) will still be there if we want to revisit.

@github-actions github-actions bot removed the Stale label Feb 14, 2024
Copy link

This PR is stale because it has been open 45 days with no activity.

@github-actions github-actions bot added the Stale label Mar 31, 2024
Copy link

This issue was closed because it has been stalled for 60 days with no activity.

@github-actions github-actions bot closed this May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] - cardano-cli ping --unixsock not sending pings
3 participants