Skip to content

Do not fail tests when interrupted connection during upgrade#4533

Merged
rdner merged 1 commit intoelastic:mainfrom
rdner:pass-tests-if-upgrade-connection-interrupted
Apr 8, 2024
Merged

Do not fail tests when interrupted connection during upgrade#4533
rdner merged 1 commit intoelastic:mainfrom
rdner:pass-tests-if-upgrade-connection-interrupted

Conversation

@rdner
Copy link
Copy Markdown
Member

@rdner rdner commented Apr 7, 2024

Older agent versions don't properly handle an interrupted connection during the upgrade. So, we need to handle it in tests.

The check was introduced in 4ad7824 however it checked a wrong string, it was supposed to check the output of the command not the actual error string.

Closes #3890

Older agent versions don't properly handle an interrupted connection during
the upgrade. So, we need to handle it in tests.

The check was introduced in 4ad7824
however it checked a wrong string, it was supposed to check the output
of the command not the actual error string.
@rdner rdner added Team:Elastic-Agent Label for the Agent team skip-changelog backport-v8.13.0 Automated backport with mergify labels Apr 7, 2024
@rdner rdner self-assigned this Apr 7, 2024
@rdner rdner requested a review from a team as a code owner April 7, 2024 17:37
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/elastic-agent (Team:Elastic-Agent)

@elastic-sonarqube
Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No Coverage information No data about Coverage
No Duplication information No data about Duplication

See analysis details on SonarQube

@rdner rdner requested a review from AndersonQ April 7, 2024 18:39
@rdner rdner enabled auto-merge (squash) April 7, 2024 19:29
@rdner rdner merged commit 43cb148 into elastic:main Apr 8, 2024
mergify bot pushed a commit that referenced this pull request Apr 8, 2024
Older agent versions don't properly handle an interrupted connection during
the upgrade. So, we need to handle it in tests.

The check was introduced in 4ad7824
however it checked a wrong string, it was supposed to check the output
of the command not the actual error string.

(cherry picked from commit 43cb148)
@rdner rdner deleted the pass-tests-if-upgrade-connection-interrupted branch April 8, 2024 11:58
rdner added a commit that referenced this pull request Apr 8, 2024
…4540)

Older agent versions don't properly handle an interrupted connection during
the upgrade. So, we need to handle it in tests.

The check was introduced in 4ad7824
however it checked a wrong string, it was supposed to check the output
of the command not the actual error string.

(cherry picked from commit 43cb148)

Co-authored-by: Denis <denis.rechkunov@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-v8.13.0 Automated backport with mergify skip-changelog Team:Elastic-Agent Label for the Agent team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The elastic-agent upgrade command can fail even though the upgrade succeeds

3 participants