Bug 2143393
Summary: | Using du to measure setuptools wheel size in %check has non-deterministic results | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | python-setuptools | Assignee: | Miro Hrončok <mhroncok> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | cstratak, lewk, mhroncok, pviktori, python-maint, python-packagers-sig, rkuska, thrnciar |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-12-01 13:40:27 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1071880 |
Description
Miro Hrončok
2022-11-16 19:25:47 UTC
Funnily enough, when I download the RPMs, the whl size is 860 and they appear identical. I'll verify this next week and reassign this to coreutils if I can verify du reports wrong size on ppc64le, but I cannot connect to ppc64le-test.fedorainfracloud.org now. The `du` tool estimates disk usage, so I'd expect it to filesystem settings (block size, compression, holes, etc.) take into account. (And I wouldn't be surprised if the estimates change in different du versions even if the data is the same, as the tool tries to catch up to what filesystems do.) It would be better to look at file size rather than disk usage, e.g.: stat --format %s /builddir/build/BUILD/setuptools-65.5.1/pyproject-wheeldir/setuptools-65.5.1-py3-none-any.whl stat --format %s is indeed arch-independent. I'll make the change, thanks. |