Skip to content

net: conntrack improvements#946

Merged
mmatczuk merged 4 commits intomainfrom
mmt/conntrack_improvements
Nov 4, 2024
Merged

net: conntrack improvements#946
mmatczuk merged 4 commits intomainfrom
mmt/conntrack_improvements

Conversation

@mmatczuk
Copy link
Contributor

No description provided.

@mmatczuk mmatczuk requested a review from Choraden as a code owner October 30, 2024 14:02
@@ -1,26 +1,23 @@
// Copyright 2022-2024 Sauce Labs Inc., all rights reserved.
//
// Copyright 2015 Google Inc. All rights reserved.
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 is not Google's code.

Comment on lines +1 to +6
# HELP test_dialer_closed_total Number of closed connections
# TYPE test_dialer_closed_total counter
test_dialer_closed_total{host="localhost"} 10
# HELP test_dialer_dialed_total Number of dialed connections
# TYPE test_dialer_dialed_total counter
test_dialer_dialed_total{host="localhost"} 10
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Golden files of TestDialerMetrics traffic and default are identical. This does not really tests if returned connection tracks traffic.

// file, You can obtain one at https://mozilla.org/MPL/2.0/.

package martian
package reflectx_test
Copy link
Contributor

Choose a reason for hiding this comment

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

Is a separate test package intentional? I don't recall us using this practice.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved tests to reflectx package

@Choraden
Copy link
Contributor

LGTM, left minor comments.

Add reflection hacks navigate the dynamically generated structures.
@mmatczuk mmatczuk force-pushed the mmt/conntrack_improvements branch from 1cc101f to d5c6f35 Compare November 4, 2024 10:35
@mmatczuk
Copy link
Contributor Author

mmatczuk commented Nov 4, 2024

@Choraden PTAL

@mmatczuk mmatczuk force-pushed the mmt/conntrack_improvements branch from d5c6f35 to 89f01f1 Compare November 4, 2024 10:46
@mmatczuk mmatczuk force-pushed the mmt/conntrack_improvements branch from 89f01f1 to 872ef26 Compare November 4, 2024 10:49
@mmatczuk mmatczuk merged commit 0958b88 into main Nov 4, 2024
@mmatczuk mmatczuk deleted the mmt/conntrack_improvements branch November 4, 2024 11:01
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.

2 participants