oxidecomputer / oxidecomputer/dendrite

`swadm link serdes set tx-eq` should require at least one gain value

Open
#145 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
20
Forks
3
Avg merge
3d 11h
Merged PRs (30d)
4

Description

See:

https://github.com/oxidecomputer/dendrite/blob/b3cdd095437f388069aa57be5efac4b4fadc7b4f/swadm/src/link.rs#L214-L233

The comment says that swadm link serdes set tx-eq requires at least one value for the gains. That's a good idea, but the code actually lets you set none of them, in which case they're all defaulted to zero. We should disallow that, and require at least one.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with swadm/src/link.rs at the referenced lines for the swadm link serdes set tx-eq command. Check how the gain arguments are validated, then exercise the command with no gain values and with at least one value. Done means the empty invocation is rejected while an invocation containing a gain remains accepted.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.