Skip to content

ping: raise default wait time from 100ms to 1000ms#3510

Merged
orangecms merged 2 commits into
u-root:mainfrom
nebojsaj1726:ping/raise-default-wait-time
Feb 18, 2026
Merged

ping: raise default wait time from 100ms to 1000ms#3510
orangecms merged 2 commits into
u-root:mainfrom
nebojsaj1726:ping/raise-default-wait-time

Conversation

@nebojsaj1726
Copy link
Copy Markdown
Contributor

@nebojsaj1726 nebojsaj1726 commented Feb 18, 2026

Related to #3361

Summary

  • Raise the default -w (wait time) from 100ms to 1000ms
  • Updated tests to match the new default

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 18, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 61.77%. Comparing base (5fc946d) to head (296f1ef).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##           main    #3510       +/-   ##
=========================================
+ Coverage      0   61.77%   +61.77%     
=========================================
  Files         0      644      +644     
  Lines         0    43775    +43775     
=========================================
+ Hits          0    27040    +27040     
- Misses        0    16735    +16735     
Flag Coverage Δ
.-amd64 90.90% <ø> (?)
cmds/...-amd64 51.15% <0.00%> (?)
integration/generic-tests/...-amd64 30.91% <ø> (?)
integration/generic-tests/...-arm 33.01% <ø> (?)
integration/generic-tests/...-arm64 30.14% <ø> (?)
integration/gotests/...-amd64 61.76% <0.00%> (?)
integration/gotests/...-arm 62.33% <0.00%> (?)
integration/gotests/...-arm64 62.35% <0.00%> (?)
pkg/...-amd64 60.43% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
everything 67.08% <0.00%> (∅)
cmds/exp 34.14% <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@orangecms
Copy link
Copy Markdown
Member

orangecms commented Feb 18, 2026

Please keep the following in mind:

  • Proposal: ping: raise default wait time #3361 is a proposal, not a bug report; i.e., this here is not a "fix"
  • this PR only covers changing the default value, does not add the proposed docs
  • there is no conclusion on the proposal/discussion, not a single reply yet

@orangecms
Copy link
Copy Markdown
Member

Here is a suggestion:

Let's start with the documentation part. The numbers can be discussed.

I asked in Slack for people to take a look at the issue/proposal.

@nebojsaj1726
Copy link
Copy Markdown
Contributor Author

Thanks for the feedback.
I'll start with the documentation and update the PR, also change "Fixes" part.

@nebojsaj1726
Copy link
Copy Markdown
Contributor Author

I've added a description in the package comment in ping.go documenting how this implementation differs from iputils-ping.
I've also kept the default raised to 1000ms as proposed in the issue, but happy to revert that part if the Slack discussion concludes otherwise.

@orangecms
Copy link
Copy Markdown
Member

If you could split this up, i.e. put the description in another PR, I'd approve that one right away; the timeout change is smth I'd like feedback from others on, because I cannot judge it. :3

@nebojsaj1726
Copy link
Copy Markdown
Contributor Author

Sure, I'll open a separate PR with just the documentation change.

Copy link
Copy Markdown
Member

@rminnich rminnich left a comment

Choose a reason for hiding this comment

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

sounds good, this matches the linux man page. This runs on other kernels too, but linux is the most relevant.

@orangecms orangecms enabled auto-merge (rebase) February 18, 2026 17:36
@orangecms orangecms disabled auto-merge February 18, 2026 17:36
@orangecms
Copy link
Copy Markdown
Member

Let's make sure to squash when merging.
Thank you @rminnich for the feedback!

orangecms
orangecms previously approved these changes Feb 18, 2026
rminnich
rminnich previously approved these changes Feb 18, 2026
Copy link
Copy Markdown
Member

@rminnich rminnich left a comment

Choose a reason for hiding this comment

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

ah, oops, I missed the long discussion.
however, linux, osx, and plan 9 all agree on 1000ms.

@binjip978
Copy link
Copy Markdown
Contributor

@nebojsaj1726 can you squash these commits to one?

@binjip978 binjip978 added the Awaiting author Waiting for new changes or feedback for author. label Feb 18, 2026
@orangecms
Copy link
Copy Markdown
Member

oh yeah we do not have squash merging enabled, oops

Signed-off-by: Nebojsa Jacovic <nebojsa.jacovic@gmail.com>
@nebojsaj1726 nebojsaj1726 dismissed stale reviews from rminnich and orangecms via e7228b6 February 18, 2026 19:14
@nebojsaj1726 nebojsaj1726 force-pushed the ping/raise-default-wait-time branch from 4fc32a8 to e7228b6 Compare February 18, 2026 19:14
@nebojsaj1726
Copy link
Copy Markdown
Contributor Author

@rminnich @orangecms I've cleaned up the branch to contain only the single relevant commit. Could you re-approve?

@orangecms orangecms merged commit 1b585cc into u-root:main Feb 18, 2026
38 checks passed
@rminnich
Copy link
Copy Markdown
Member

I got bitten by the lack of squash merge too, but it was explained to me that the resulting commit messages are very hard to follow.

@orangecms
Copy link
Copy Markdown
Member

I got bitten by the lack of squash merge too, but it was explained to me that the resulting commit messages are very hard to follow.

Yea that is a UI issue - you can adjust the message arbitrarily on GitHub, both summary and detailed description, and it's very much akin to a local git rebase, but it's hard to spot how and just clicking the button then gets a messy result, similar to when doing it locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Awaiting author Waiting for new changes or feedback for author.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants