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

Azp: install sonic yangs during pipline build #144

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

sachinholla
Copy link
Contributor

Why I did it

Translib infra (sonic-mgmt-common) has an option to import cvl sonic yangs from sonic-yang-models.whl. This option is not enabled right now, but will be in near future. Hence sonic-yang-models.whl needs to be installed on the vm.
Also backport the pipeline build fixes done in 202305 branch.

How I did it

How to verify it

PR build

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

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

tomek-US
tomek-US previously approved these changes Sep 5, 2023
Copy link
Contributor

@tomek-US tomek-US left a comment

Choose a reason for hiding this comment

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

LGTM

@tomek-US
Copy link
Contributor

tomek-US commented Sep 6, 2023

Please rebase. It cannot be merged as it is now.

@tomek-US
Copy link
Contributor

tomek-US commented Sep 8, 2023

@sachinholla The PR cannot be merged as it is reported out-of-date.

@@ -101,6 +101,10 @@ stages:
sudo dpkg -i ../target/debs/bullseye/libyang*1.0.73*.deb
displayName: "Install dependency"

- script: |

Choose a reason for hiding this comment

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

To install coherent packages related to YANG, it would be cleaner if you replace "-script" with the comment "# YANG MODELS" to run after libyang package install. If you want to keep the separate script, please add the same comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I prefer keeping it as a separate step.. Will add a comment.. Step's displayName attribute anyway indicates "Install sonic yangs"

* Download & install sonic_yang_models.whl before telemetry build.
  Translib code generators and app modues use these sonic yangs
* Download source code and artifacts for the build branch only
* Use pipeline 142 for downloading sonic-buildimage.vs artifacts,
  which runs on all branches
@anand-kumar-subramanian anand-kumar-subramanian merged commit 07a64ab into sonic-net:master Jan 18, 2024
5 checks passed
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