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

[build] Fix unexpected warnings: No names found, cannot describe anything. #12963

Merged
merged 1 commit into from
Dec 20, 2022

Conversation

liushilongbuaa
Copy link
Contributor

@liushilongbuaa liushilongbuaa commented Dec 6, 2022

Why I did it

In PR check pipelines, there are too many duplicated warnings:
fatal: No names found, cannot describe anything.
SONIC_IMAGE_VERSION will not change in one build. We don't need to calculate in every reference. We just need calculate one time, then record it.
In Makefile, '=' will calculate again and again when it is referred.

How I did it

Fix it in Makefile.

How to verify it

Check this PR's check pipeline result.

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

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

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

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

@lguohan
Copy link
Collaborator

lguohan commented Dec 12, 2022

can you give details, what is the reason for the errors, why the patch fixed the problem?

@liushilongbuaa
Copy link
Contributor Author

can you give details, what is the reason for the errors, why the patch fixed the problem?
Other PR log:
image
My PR log:
image

@liushilongbuaa
Copy link
Contributor Author

liushilongbuaa commented Dec 14, 2022

':=' will calculate SONiC Version on the first reference.
'=' will calculate SONiC Version on every reference.
This issue is exposed by deleting tag '20191113.01-4194-g7db272556' on master branch.

@xumia xumia merged commit 25d9ebb into sonic-net:master Dec 20, 2022
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Dec 21, 2022
…hing. (sonic-net#12963)

Why I did it
In PR check pipelines, there are too many duplicated warnings:
fatal: No names found, cannot describe anything.
SONIC_IMAGE_VERSION will not change in one build. We don't need to calculate in every reference. We just need calculate one time, then record it.
In Makefile, '=' will calculate again and again when it is referred.

How I did it
Fix it in Makefile.

How to verify it
Check this PR's check pipeline result.
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Dec 21, 2022
…hing. (sonic-net#12963)

Why I did it
In PR check pipelines, there are too many duplicated warnings:
fatal: No names found, cannot describe anything.
SONIC_IMAGE_VERSION will not change in one build. We don't need to calculate in every reference. We just need calculate one time, then record it.
In Makefile, '=' will calculate again and again when it is referred.

How I did it
Fix it in Makefile.

How to verify it
Check this PR's check pipeline result.
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202211: #13133

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202205: #13134

mssonicbld pushed a commit that referenced this pull request Dec 22, 2022
…hing. (#12963)

Why I did it
In PR check pipelines, there are too many duplicated warnings:
fatal: No names found, cannot describe anything.
SONIC_IMAGE_VERSION will not change in one build. We don't need to calculate in every reference. We just need calculate one time, then record it.
In Makefile, '=' will calculate again and again when it is referred.

How I did it
Fix it in Makefile.

How to verify it
Check this PR's check pipeline result.
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Feb 22, 2023
…hing. (sonic-net#12963)

Why I did it
In PR check pipelines, there are too many duplicated warnings:
fatal: No names found, cannot describe anything.
SONIC_IMAGE_VERSION will not change in one build. We don't need to calculate in every reference. We just need calculate one time, then record it.
In Makefile, '=' will calculate again and again when it is referred.

How I did it
Fix it in Makefile.

How to verify it
Check this PR's check pipeline result.
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Feb 22, 2023
…hing. (sonic-net#12963)

Why I did it
In PR check pipelines, there are too many duplicated warnings:
fatal: No names found, cannot describe anything.
SONIC_IMAGE_VERSION will not change in one build. We don't need to calculate in every reference. We just need calculate one time, then record it.
In Makefile, '=' will calculate again and again when it is referred.

How I did it
Fix it in Makefile.

How to verify it
Check this PR's check pipeline result.
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202106: #13927

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202111: #13928

mssonicbld pushed a commit that referenced this pull request Mar 10, 2023
…hing. (#12963)

Why I did it
In PR check pipelines, there are too many duplicated warnings:
fatal: No names found, cannot describe anything.
SONIC_IMAGE_VERSION will not change in one build. We don't need to calculate in every reference. We just need calculate one time, then record it.
In Makefile, '=' will calculate again and again when it is referred.

How I did it
Fix it in Makefile.

How to verify it
Check this PR's check pipeline result.
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.

4 participants