jenkins-infra / helpdesk

Open your Infrastructure related issues here for the Jenkins project
https://github.com/jenkins-infra/helpdesk/issues/new/choose
16 stars 10 forks source link

packer-images: git version not always available simultaneously on apt ppa for arm64 and amd #4100

Open smerle33 opened 3 months ago

smerle33 commented 3 months ago

Service(s)

Other

Summary

when installing GIT from ppa, the same version is not available for both arm64 and amd

12:24:14  
2024-05-16T10:24:13Z: ==> azure-arm.ubuntu: + install_package_version git 2.45.1

12:24:14  
2024-05-16T10:24:13Z: ==> azure-arm.ubuntu: + local package_version

12:24:14  
2024-05-16T10:24:13Z: ==> azure-arm.ubuntu: ++ apt-cache madison git

12:24:14  
2024-05-16T10:24:13Z: ==> azure-arm.ubuntu: ++ grep 2.45.1

12:24:14  
2024-05-16T10:24:13Z: ==> azure-arm.ubuntu: ++ head -n1

12:24:14  
2024-05-16T10:24:13Z: ==> azure-arm.ubuntu: ++ awk '{print $3}'

12:24:14  
2024-05-16T10:24:13Z: ==> azure-arm.ubuntu: +++ apt-cache madison git

12:24:14  
2024-05-16T10:24:13Z: ==&gt; azure-arm.ubuntu: ++ echo 'ERROR: could not find version 2.45.1 for git. Output of apt-cache madison is:        git | 1:2.43.2-0ppa1~ubuntu22.04.1 | <a href='https://ppa.launchpadcontent.net/git-core/ppa/ubuntu'>https://ppa.launchpadcontent.net/git-core/ppa/ubuntu</a> jammy/main arm64 Packages

12:24:14  
2024-05-16T10:24:13Z: ==&gt; azure-arm.ubuntu:        git | 1:2.34.1-1ubuntu1.10 | <a href='http://ports.ubuntu.com/ubuntu-ports'>http://ports.ubuntu.com/ubuntu-ports</a> jammy-updates/main arm64 Packages

12:24:14  
2024-05-16T10:24:13Z: ==&gt; azure-arm.ubuntu:        git | 1:2.34.1-1ubuntu1.9 | <a href='http://ports.ubuntu.com/ubuntu-ports'>http://ports.ubuntu.com/ubuntu-ports</a> jammy-security/main arm64 Packages

12:24:14  
2024-05-16T10:24:13Z: ==&gt; azure-arm.ubuntu:        git | 1:2.34.1-1ubuntu1 | <a href='http://ports.ubuntu.com/ubuntu-ports'>http://ports.ubuntu.com/ubuntu-ports</a> jammy/main arm64 Packages'

12:24:14  
2024-05-16T10:24:13Z: ==&gt; azure-arm.ubuntu: ++ exit 1

12:24:14  
2024-05-16T10:24:13Z: ==&gt; azure-arm.ubuntu: + package_version='ERROR: could not find version 2.45.1 for git. Output of apt-cache madison is:        git | 1:2.43.2-0ppa1~ubuntu22.04.1 | <a href='https://ppa.launchpadcontent.net/git-core/ppa/ubuntu'>https://ppa.launchpadcontent.net/git-core/ppa/ubuntu</a> jammy/main arm64 Packages

Reproduction steps

No response

smerle33 commented 3 months ago

First step installing after compiling from source PR https://github.com/jenkins-infra/packer-images/pull/1180

smerle33 commented 3 months ago

Next step: updating updatecli to follow the same tag on github https://github.com/git/git/archive/refs/tags/v${GIT_LINUX_VERSION}.tar.gz

pilere commented 3 months ago

stall, need to make sure of clean install no duplicate within VM images