Skip to content

Fixed static checks (3.21.x)#5843

Merged
larsewi merged 2 commits into
cfengine:3.21.xfrom
larsewi:fix-static-checks-3.21.x
Jul 24, 2025
Merged

Fixed static checks (3.21.x)#5843
larsewi merged 2 commits into
cfengine:3.21.xfrom
larsewi:fix-static-checks-3.21.x

Conversation

@larsewi

@larsewi larsewi commented Jul 23, 2025

Copy link
Copy Markdown
Contributor
  • valgrind-check: Fixed missing curl
  • valgrind-check: fix missing archives

Build Status

larsewi added 2 commits July 23, 2025 13:24
Error message from PR pipeline:

```
  notice: Q: ".../cf-execd"":    error: Proposed executable file '/usr/bin/curl' doesn't exist
Q: ".../cf-execd"":    error: execresult '/usr/bin/curl -s -X PUT "<http://169.254.169.254/latest/api/token>" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600"' is assumed to be executable but isn't
```

Ticket: ENT-13124
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
(cherry picked from commit b8bd87a)
Unable to fetch some archives:

```
STEP 4/8: RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python3 git flex bison byacc automake make autoconf libtool valgrind curl
 ---snip---
Err:104 <http://security.ubuntu.com/ubuntu> noble-updates/main amd64 git-man all 1:2.43.0-1ubuntu7.2
  404  Not Found [IP: 91.189.91.81 80]
Err:105 <http://security.ubuntu.com/ubuntu> noble-updates/main amd64 git amd64 1:2.43.0-1ubuntu7.2
  404  Not Found [IP: 91.189.91.81 80]
 ---snip---
Err:115 <http://security.ubuntu.com/ubuntu> noble-updates/main amd64 libc6-dbg amd64 2.39-0ubuntu8.4
  404  Not Found [IP: 91.189.91.81 80]
 ---snip---
E: Failed to fetch <http://security.ubuntu.com/ubuntu/pool/main/g/git/git-man_2.43.0-1ubuntu7.2_all.deb>  404  Not Found [IP: 91.189.91.81 80]
E: Failed to fetch <http://security.ubuntu.com/ubuntu/pool/main/g/git/git_2.43.0-1ubuntu7.2_amd64.deb>  404  Not Found [IP: 91.189.91.81 80]
E: Failed to fetch <http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dbg_2.39-0ubuntu8.4_amd64.deb>  404  Not Found [IP: 91.189.91.81 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Error: building at STEP "RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python3 git flex bison byacc automake make autoconf libtool valgrind curl": while running runtime: exit status 100
 ---snip---
```

The URL does in fact return 404:

```
$ curl http://security.ubuntu.com/ubuntu/pool/main/g/git/git-man_2.43.0-1ubuntu7.2_all.deb
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>Apache/2.4.52 (Ubuntu) Server at security.ubuntu.com Port 80</address>
</body></html>
```

Will try to add `--fix-missing` to the `apt-get update` as the error
message suggests.

Ticket: ENT-13126
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
(cherry picked from commit 0a08731)
@cf-bottom

Copy link
Copy Markdown

Thank you for submitting a pull request! Maybe @craigcomstock can review this?

@larsewi

larsewi commented Jul 24, 2025

Copy link
Copy Markdown
Contributor Author

Build Status

@larsewi larsewi merged commit 45ecd8c into cfengine:3.21.x Jul 24, 2025
40 of 49 checks passed
@larsewi larsewi deleted the fix-static-checks-3.21.x branch July 25, 2025 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants