[Bug 277475] sysutils/datadog-agent bad checksum on source tar.gz from github

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 04 Mar 2024 14:10:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277475

            Bug ID: 277475
           Summary: sysutils/datadog-agent bad checksum on source tar.gz
                    from github
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: freebsd.org@neant.ro
                CC: uros@gruber.si
                CC: uros@gruber.si
             Flags: maintainer-feedback?(uros@gruber.si)

Seems to be the same kind of problem as a previous bug reported for this port,
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260522

I'm not sure how to fix it, but the AMD64 build seems broken for a few months
and it's also broken in quarterly.

The build on AMD64 fails with "Checksum mismatch for
kubernetes-client-go-bec269661e48_GH0.tar.gz"
(https://pkg-status.freebsd.org/beefy8/data/140amd64-quarterly/e563efafb938/logs/datadog-agent-7.24.1_15.log).
For ARM though, the same file gets an OK and the build seems to be fine
(https://pkg-status.freebsd.org/ampere1/data/140releng-armv7-quarterly/7ccf22b5d173/logs/datadog-agent-7.24.1_15.log).

I downloaded the file from GitHub and I got a different checksum than what's in
distinfo, but the same exact size. I downloaded another file and I got a
slightly different size, same as the FreeBSD builder:

```
kubernetes-apiserver-5190913f932d_GH0.tar.gz           753 kB 7763 kBps    00s
=> kubernetes-autoscaler-fa95810cfc1e_GH0.tar.gz doesn't seem to exist in
/portdistfiles/.
=> Attempting to fetch
https://codeload.github.com/kubernetes/autoscaler/tar.gz/fa95810cfc1e?dummy=/kubernetes-autoscaler-fa95810cfc1e_GH0.tar.gz
fetch:
https://codeload.github.com/kubernetes/autoscaler/tar.gz/fa95810cfc1e?dummy=/kubernetes-autoscaler-fa95810cfc1e_GH0.tar.gz:
size unknown
fetch:
https://codeload.github.com/kubernetes/autoscaler/tar.gz/fa95810cfc1e?dummy=/kubernetes-autoscaler-fa95810cfc1e_GH0.tar.gz:
size of remote file is not known
kubernetes-autoscaler-fa95810cfc1e_GH0.tar.gz           37 MB 5554 kBps    07s
=> Fetched file size mismatch (expected 39095411, actual 39095416)
=> Trying next site
=> Attempting to fetch
http://distcache.FreeBSD.org/ports-distfiles/kubernetes-autoscaler-fa95810cfc1e_GH0.tar.gz
```

It seems like GitHub regenerated the files? Or maybe it serves slightly
different files depending on... some parameters?

-- 
You are receiving this mail because:
You are the assignee for the bug.