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

[DPB]Fixing return code of breakout command on failure #3357

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

dgsudharsan
Copy link
Collaborator

What I did

Changing the return code of DPB command to 1 on failure when dependencies exit.

How I did it

Updating the exit code

How to verify it

Modified UT to verify

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

@prgeor
Copy link
Contributor

prgeor commented Jun 10, 2024

@dgsudharsan what is the impact without this fix?

@dgsudharsan
Copy link
Collaborator Author

@dgsudharsan what is the impact without this fix?

Our internal tests assume that command pass based on the return code while it has actually failed. Same applies to any automation framework. If the command fails it should return non zero return code

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #3361

@dgsudharsan
Copy link
Collaborator Author

@yxieca Can you please help to cherry-pick for 202311?

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #3363

@mssonicbld
Copy link
Collaborator

@dgsudharsan cherry pick PR didn't pass PR checker. Please check!!!
#3361

2 similar comments
@mssonicbld
Copy link
Collaborator

@dgsudharsan cherry pick PR didn't pass PR checker. Please check!!!
#3361

@mssonicbld
Copy link
Collaborator

@dgsudharsan cherry pick PR didn't pass PR checker. Please check!!!
#3361

arfeigin pushed a commit to arfeigin/sonic-utilities that referenced this pull request Jun 16, 2024
@mssonicbld
Copy link
Collaborator

@dgsudharsan cherry pick PR didn't pass PR checker. Please check!!!
#3361

2 similar comments
@mssonicbld
Copy link
Collaborator

@dgsudharsan cherry pick PR didn't pass PR checker. Please check!!!
#3361

@mssonicbld
Copy link
Collaborator

@dgsudharsan cherry pick PR didn't pass PR checker. Please check!!!
#3361

@mssonicbld
Copy link
Collaborator

@dgsudharsan cherry pick PR didn't pass PR checker. Please check!!!
#3361

@mssonicbld
Copy link
Collaborator

@dgsudharsan cherry pick PR didn't pass PR checker. Please check!!! Auto cherry pick PR will be closed in 3 days.
#3361

4 similar comments
@mssonicbld
Copy link
Collaborator

@dgsudharsan cherry pick PR didn't pass PR checker. Please check!!! Auto cherry pick PR will be closed in 3 days.
#3361

@mssonicbld
Copy link
Collaborator

@dgsudharsan cherry pick PR didn't pass PR checker. Please check!!! Auto cherry pick PR will be closed in 3 days.
#3361

@mssonicbld
Copy link
Collaborator

@dgsudharsan cherry pick PR didn't pass PR checker. Please check!!! Auto cherry pick PR will be closed in 3 days.
#3361

@mssonicbld
Copy link
Collaborator

@dgsudharsan cherry pick PR didn't pass PR checker. Please check!!! Auto cherry pick PR will be closed in 3 days.
#3361

@bingwang-ms
Copy link
Contributor

@dgsudharsan Cherry-pick to 202405 failed. Please check.

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #3469

@dgsudharsan
Copy link
Collaborator Author

@dgsudharsan Cherry-pick to 202405 failed. Please check.

Hi @bingwang-ms I see PR already raised to 202405. Can you please clarify this comment?

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

Successfully merging this pull request may close these issues.

6 participants