Skip to content

Add pipeline check for missing __init__.py in sonic-xcvrd whl package#593

Merged
yxieca merged 2 commits intosonic-net:masterfrom
prgeor:pipeline
Mar 17, 2025
Merged

Add pipeline check for missing __init__.py in sonic-xcvrd whl package#593
yxieca merged 2 commits intosonic-net:masterfrom
prgeor:pipeline

Conversation

@prgeor
Copy link
Copy Markdown
Collaborator

@prgeor prgeor commented Mar 16, 2025

Description

Ensure that the pipeline fail to build if sonic-xcvrd whl package is missing init.py file.

Motivation and Context

  • The __init__.py file is necessary in each directory to indicate that the directory should be treated as a package.
  • Tools like setuptools and find_packages() rely on the presence of __init__.py files to identify packages and subpackages.
  • Without __init__.py files, the directories will not be included in the package distribution, leading to incomplete or broken packages.

By ensuring that each directory contains an __init__.py file, we can create a complete and functional Python wheel package.

How Has This Been Tested?

Pipeline:- https://dev.azure.com/mssonic/build/_build/results?buildId=800459&view=logs&j=6f26e4aa-3eaf-5d24-2c84-463275687676&t=9d0df2c7-e5fa-5a6f-3817-988ca77cdfbe

image

Additional Information (Optional)

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@prgeor
Copy link
Copy Markdown
Collaborator Author

prgeor commented Mar 17, 2025

@mihirpat1 verified the xcvrd wheel package now has the dom/utilities/vdm and dom/utilitites/db/

image

@r12f
Copy link
Copy Markdown

r12f commented Mar 17, 2025

thanks Prince! this looks great!

@mihirpat1
Copy link
Copy Markdown
Contributor

@prgeor Thank you!

@r12f
Copy link
Copy Markdown

r12f commented Mar 22, 2025

Removing 202412 tag, since it is already merged.

Junchao-Mellanox pushed a commit to Junchao-Mellanox/sonic-platform-daemons that referenced this pull request Apr 22, 2025
…l package (sonic-net#593)

Description
Ensure that the pipeline fail to build if sonic-xcvrd whl package is missing init.py file.

Motivation and Context
The __init__.py file is necessary in each directory to indicate that the directory should be treated as a package.
Tools like setuptools and find_packages() rely on the presence of __init__.py files to identify packages and subpackages.
Without __init__.py files, the directories will not be included in the package distribution, leading to incomplete or broken packages.
By ensuring that each directory contains an __init__.py file, we can create a complete and functional Python wheel package.
Junchao-Mellanox pushed a commit to Junchao-Mellanox/sonic-platform-daemons that referenced this pull request Apr 22, 2025
[202412] Add pipeline check for missing __init__.py in sonic-xcvrd whl package (sonic-net#593)
mihirpat1 pushed a commit to mihirpat1/sonic-platform-daemons that referenced this pull request May 6, 2025
…sonic-net#593)

Description
Ensure that the pipeline fail to build if sonic-xcvrd whl package is missing init.py file.

Motivation and Context
The __init__.py file is necessary in each directory to indicate that the directory should be treated as a package.
Tools like setuptools and find_packages() rely on the presence of __init__.py files to identify packages and subpackages.
Without __init__.py files, the directories will not be included in the package distribution, leading to incomplete or broken packages.
By ensuring that each directory contains an __init__.py file, we can create a complete and functional Python wheel package.
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.

5 participants