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

[e2e] Make probe outputs more informative #5140

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

tnqn
Copy link
Member

@tnqn tnqn commented Jun 16, 2023

"agnhost connect" outputs nothing when it succeeds. The current probe output like below can't tell which attemp succeeded and if it really succeeded:

TIMEOUT
TIMEOUT

We output "CONNECTED" when a connection succeeds and prepend a sequence number for each attempt, to make the result more informative. An example output:

1: CONNECTED
2: TIMEOUT
3: TIMEOUT

For #5139

@luolanzone luolanzone added the area/test/e2e Issues or PRs related to Antrea specific end-to-end testing. label Jun 19, 2023
Copy link
Contributor

@GraysonWu GraysonWu left a comment

Choose a reason for hiding this comment

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

Thanks for adding this. LGTM. One nit.

test/e2e/k8s_util.go Outdated Show resolved Hide resolved
@tnqn tnqn force-pushed the improve-probe-log branch 2 times, most recently from faef0de to 18fc1cb Compare June 21, 2023 02:36
GraysonWu
GraysonWu previously approved these changes Jun 21, 2023
Copy link
Contributor

@GraysonWu GraysonWu left a comment

Choose a reason for hiding this comment

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

LGTM, when the failure of testACNPNodePortServiceSupport is fixed.
I think other failed cases are not introduced by this commit?

"agnhost connect" outputs nothing when it succeeds. The current probe
output like below can't tell which attemp succeeded and if it really
succeeded:

```
TIMEOUT
TIMEOUT
```

We output "CONNECTED" when a connection succeeds and prepend a sequence
number for each attempt, to make the result more informative. An example
output:

```
1: CONNECTED
2: TIMEOUT
3: TIMEOUT
```

Signed-off-by: Quan Tian <[email protected]>
@tnqn
Copy link
Member Author

tnqn commented Jun 26, 2023

LGTM, when the failure of testACNPNodePortServiceSupport is fixed.
I think other failed cases are not introduced by this commit?

The failure has been fixed

@tnqn
Copy link
Member Author

tnqn commented Jun 27, 2023

/skip-all

@tnqn tnqn merged commit 5c55f17 into antrea-io:main Jun 27, 2023
@tnqn tnqn deleted the improve-probe-log branch June 27, 2023 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test/e2e Issues or PRs related to Antrea specific end-to-end testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants