Skip to content

Conversation

@julio-lopez
Copy link
Collaborator

@julio-lopez julio-lopez commented Nov 14, 2025

Objective: eliminate, or at least reduce, failures in unreliable test.

Primary change in: 447f3f3

Preliminary refactoring was required to change the parameter type from *testing.T to testing.TB in various helpers.

Ref:

@julio-lopez julio-lopez requested a review from Copilot November 14, 2025 01:17
@codecov
Copy link

codecov bot commented Nov 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.05%. Comparing base (cb455c6) to head (daf01c8).
⚠️ Report is 756 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4985      +/-   ##
==========================================
+ Coverage   75.86%   78.05%   +2.19%     
==========================================
  Files         470      548      +78     
  Lines       37301    31419    -5882     
==========================================
- Hits        28299    24525    -3774     
+ Misses       7071     4847    -2224     
- Partials     1931     2047     +116     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@julio-lopez julio-lopez force-pushed the fix/socket-activation branch from e51494b to daf01c8 Compare November 14, 2025 01:50
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@julio-lopez julio-lopez requested a review from andrason November 14, 2025 02:40
@julio-lopez julio-lopez marked this pull request as ready for review November 14, 2025 03:00
@julio-lopez julio-lopez merged commit c60ebeb into kopia:master Nov 14, 2025
30 of 31 checks passed
@julio-lopez julio-lopez deleted the fix/socket-activation branch November 14, 2025 03:03
@julio-lopez julio-lopez requested a review from Copilot November 14, 2025 03:03
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

// RunAndProcessStderr runs the given command, and streams its output line-by-line to a given function until it returns false.
func (e *CLITest) RunAndProcessStderr(t *testing.T, callback func(line string) bool, args ...string) (wait func() error, kill func()) {
t.Helper()
// RunAndProcessStderr runs the given command, and streams its stderr line-by-line to stderrCAllback until it returns false.
Copy link

Copilot AI Nov 14, 2025

Choose a reason for hiding this comment

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

Corrected spelling of 'stderrCAllback' to 'stderrCallback'.

Copilot uses AI. Check for mistakes.
// RunAndProcessStderrAsync runs the given command, and streams its output line-by-line to a given function until it returns false.
func (e *CLITest) RunAndProcessStderrAsync(t *testing.T, callback func(line string) bool, asyncCallback func(line string), args ...string) (wait func() error, kill func()) {
t.Helper()
// RunAndProcessStderrAsync runs the given command, and streams its stderr line-by-line stderrCAllback until it returns false.
Copy link

Copilot AI Nov 14, 2025

Choose a reason for hiding this comment

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

Corrected spelling of 'stderrCAllback' to 'stderrCallback'.

Copilot uses AI. Check for mistakes.
t.Fatal("server did not exit in time")
}

require.True(t, gotExpectedErrorMessage.Load(), "expected server's stderr to contain a line along the lines of 'Too many activated sockes ...'")
Copy link

Copilot AI Nov 14, 2025

Choose a reason for hiding this comment

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

Corrected spelling of 'sockes' to 'sockets'.

Suggested change
require.True(t, gotExpectedErrorMessage.Load(), "expected server's stderr to contain a line along the lines of 'Too many activated sockes ...'")
require.True(t, gotExpectedErrorMessage.Load(), "expected server's stderr to contain a line along the lines of 'Too many activated sockets ...'")

Copilot uses AI. Check for mistakes.
julio-lopez added a commit to julio-lopez/kopia that referenced this pull request Nov 14, 2025
julio-lopez added a commit that referenced this pull request Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant