Skip to content

[Build] Log improvement for package download failure #21905

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

Merged
merged 2 commits into from
Mar 17, 2025

Conversation

gpunathilell
Copy link
Contributor

Why I did it

Currenty the log displayed during curl failure does not have enough information:
Try 5: /usr/bin/curl --retry-connrefused --retry 5 failed to get: -L
The array expansion is not done and only the first parameter is printed (since log_err function only prints $1)
After change:
Try 1: /usr/bin/curl --retry-connrefused --retry 5 failed to get: -L -f -o target/debs/bookworm/libgrpc-dev-dbgsym_1.39.0-1_arm64.deb https://github.com/user/a/b/c/d/test1.deb. Retry..
Which would help in debugging

Work item tracking
  • Microsoft ADO (number only):

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: gpunathilell <[email protected]>
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@maipbui maipbui left a comment

Choose a reason for hiding this comment

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

LGTM

@maipbui
Copy link
Contributor

maipbui commented Mar 6, 2025

LGTM

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft qiluo-msft merged commit e04546a into sonic-net:master Mar 17, 2025
21 checks passed
yanjundeng pushed a commit to yanjundeng/sonic-buildimage that referenced this pull request Apr 23, 2025
#### Why I did it  
Currently, the log displayed during curl failure does not have enough information:  
`Try 5: /usr/bin/curl --retry-connrefused --retry 5 failed to get: -L`  
The array expansion is not done, and only the first parameter is printed (since the `log_err` function only prints `$1`).  
After the change:  
`Try 1: /usr/bin/curl --retry-connrefused --retry 5 failed to get: -L -f -o target/debs/bookworm/libgrpc-dev-dbgsym_1.39.0-1_arm64.deb https://github.com/user/a/b/c/d/test1.deb. Retry..`  
This would help in debugging.  

#### Description for the changelog  
Write a short (one-line) summary that describes the changes in this pull request for inclusion in the changelog:  

#### Link to config_db schema for YANG module changes  
Provide a link to `config_db` schema for the table for which the YANG model is defined.  
Link should point to the correct section on [Configuration.md](https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/doc/Configuration.md).
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.

4 participants