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

Remove test folder in DEB package #27961

Closed
bebound opened this issue Dec 4, 2023 · 1 comment · Fixed by #28090
Closed

Remove test folder in DEB package #27961

bebound opened this issue Dec 4, 2023 · 1 comment · Fixed by #28090
Assignees
Milestone

Comments

@bebound
Copy link
Contributor

bebound commented Dec 4, 2023

When debug #27957, I found that the Ubuntu package contains a /opt/az/lib/python3.11/test folder, which is 122MB in 2.55.0.
We can remove it from package and save disk space.

 /opt/az                                                        
❯ dust
 78M         ┌── __pycache__                      │▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓█████ │   9%
121M       ┌─┴ test                               │▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒████████ │  14%
 19M       │   ┌── keyvault                       │▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██ │   2%
 28M       │   │ ┌── storagev2                    │▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██ │   3%
 36M       │   ├─┴ multiapi                       │▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓███ │   4%
 19M       │   │   ┌── vm                         │▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██ │   2%
 48M       │   │   │       ┌── application_gateway│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓████ │   6%
 89M       │   │   │     ┌─┴ network              │▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██████ │  11%
 89M       │   │   │   ┌─┴ latest                 │▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██████ │  11%
128M       │   │   │ ┌─┴ aaz                      │▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓████████ │  15%
131M       │   │   ├─┴ network                    │▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█████████ │  16%
212M       │   │ ┌─┴ command_modules              │▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██████████████ │  25%
215M       │   ├─┴ cli                            │▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██████████████ │  26%
 18M       │   │ ┌── web                          │▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██ │   2%
 38M       │   │ ├── compute                      │▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓███ │   5%
234M       │   ├─┴ mgmt                           │▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓███████████████ │  28%
525M       │ ┌─┴ azure                            │▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓█████████████████████████████████ │  63%
612M       ├─┴ site-packages                      │▒▒▒▒▒▒▒▒▒▒▒▒▒▒██████████████████████████████████████ │  73%
823M     ┌─┴ python3.11                           │████████████████████████████████████████████████████ │  98%
832M   ┌─┴ lib                                    │████████████████████████████████████████████████████ │  99%
839M ┌─┴ .                                        │████████████████████████████████████████████████████ │ 100%

PS: disable-test-modules may work.

@bebound bebound added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Dec 4, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Dec 4, 2023

Thank you for opening this issue, we will look into it.

@yonzhan yonzhan added feature-request and removed bug This issue requires a change to an existing behavior in the product in order to be resolved. labels Dec 4, 2023
@yonzhan yonzhan added this to the Backlog milestone Dec 4, 2023
@bebound bebound changed the title Remove test folder in package Remove test folder in DEB package Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants