Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927140 - =dev-python/dask-expr-1.0.1 fetches file(s) that do not match recorded size
Summary: =dev-python/dask-expr-1.0.1 fetches file(s) that do not match recorded size
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-16 15:21 UTC by Michael Mair-Keimberger (mm1ke)
Modified: 2024-03-17 16:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mair-Keimberger (mm1ke) 2024-03-16 15:21:16 UTC
GENTOO_MIRRORS="" ebuild dask-expr-1.0.1.ebuild fetch
Appending /mnt/data/git/gentoo to PORTDIR_OVERLAY...
>>> Downloading 'https://github.com/dask/dask-expr/archive/v1.0.1.tar.gz'
--2024-03-16 16:13:30--  https://github.com/dask/dask-expr/archive/v1.0.1.tar.gz
Resolving github.com... 140.82.121.4
Connecting to github.com|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/dask/dask-expr/tar.gz/refs/tags/v1.0.1 [following]
--2024-03-16 16:13:30--  https://codeload.github.com/dask/dask-expr/tar.gz/refs/tags/v1.0.1
Resolving codeload.github.com... 140.82.121.9
Connecting to codeload.github.com|140.82.121.9|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/var/cache/distfiles/dask-expr-1.0.1.gh.tar.gz.__download__’

/var/cache/distfiles/dask-expr-1.0.1.gh.tar.gz._     [ <=>                                                                                                       ] 227.60K  --.-KB/s    in 0.09s   

2024-03-16 16:13:30 (2.40 MB/s) - ‘/var/cache/distfiles/dask-expr-1.0.1.gh.tar.gz.__download__’ saved [233058]

!!! Fetched file: dask-expr-1.0.1.gh.tar.gz VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      233058
!!! Expected: 233067
Refetching... File renamed to '/var/cache/distfiles/dask-expr-1.0.1.gh.tar.gz._checksum_failure_.gl5dmw44'

!!! Couldn't download 'dask-expr-1.0.1.gh.tar.gz'. Aborting.

This is a new package just added a few days ago so i'm a bit confused why this happens. I've started to run checks to find cases like these but i'm a bit worried that i would find quite a lot - and most of them are related with github.


In general - any ideas why this is happening? Is github somehow modifying these packages?
And also, should i continue opening bugs about this?
Comment 1 Mike Gilbert gentoo-dev 2024-03-17 03:30:46 UTC
> I've started to run checks to find cases like these but i'm a bit worried that i > would find quite a lot - and most of them are related with github.

As the person who has to assign these bugs, please stop. It's a waste of my time.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-03-17 16:37:34 UTC
It's the known setuptools-scm problem:

diff -dupr /tmp/portage/dev-python/dask-expr-1.0.1/work/dask-expr-1.0.1/dask_expr/_version.py dask-expr-1.0.1/dask_expr/_version.py
--- /tmp/portage/dev-python/dask-expr-1.0.1/work/dask-expr-1.0.1/dask_expr/_version.py	2024-03-12 16:24:15.000000000 +0100
+++ dask-expr-1.0.1/dask_expr/_version.py	2024-03-12 16:24:15.000000000 +0100
@@ -25,7 +25,7 @@ def get_keywords() -> Dict[str, str]:
     # setup.py/versioneer.py will grep for the variable names, so they must
     # each be defined on a line of their own. _version.py will just call
     # get_keywords().
-    git_refnames = " (HEAD -> main, tag: v1.0.1)"
+    git_refnames = " (tag: v1.0.1)"
     git_full = "c109b657f3b1fdb6bece3b89c9717dacefd25a03"
     git_date = "2024-03-12 16:24:15 +0100"
     keywords = {"refnames": git_refnames, "full": git_full, "date": git_date}
Comment 3 Larry the Git Cow gentoo-dev 2024-03-17 16:41:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb1814417f11fa7c16417bf2e409d217e8510816

commit cb1814417f11fa7c16417bf2e409d217e8510816
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-03-17 16:40:16 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-03-17 16:41:14 +0000

    dev-python/dask-expr: Rehash
    
    It's suffering from the setuptools-scm `.git_archival.txt` problem.
    
    Bug: https://github.com/pypa/setuptools_scm/issues/806
    Closes: https://bugs.gentoo.org/927140
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/dask-expr/Manifest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)