buildpacks / pack

CLI for building apps using Cloud Native Buildpacks
https://buildpacks.io
Apache License 2.0
2.56k stars 286 forks source link

Arch Linux `pack-cli` delivery pipeline is failing #2181

Closed jjbustamante closed 2 months ago

jjbustamante commented 3 months ago

Description

Since pack 0.33.2 we started having some failures in our arch linux delivery pipeline.

Screenshot 2024-06-05 at 4 02 24 PM

Looks like the error is when we try to push the binary source code.

Run docker://archlinux:latest
  with:
    entrypoint: .github/workflows/delivery/archlinux/publish-package.sh
  env:
    PACKAGE_NAME: pack-cli
    PACK_VERSION: 0.34.0
    AUR_KEY: ***

/usr/bin/docker run --name archlinuxlatest_ba0e5f --label 5c3cc6 --workdir /github/workspace --rm -e "PACKAGE_NAME" -e "PACK_VERSION" -e "AUR_KEY" -e "INPUT_ENTRYPOINT" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_RESULTS_URL" -e GITHUB_ACTIONS=true -e CI=true --entrypoint ".github/workflows/delivery/archlinux/publish-package.sh" -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/pack/pack":"/github/workspace" archlinux:latest
:: Synchronizing package databases...
 core downloading...
 extra downloading...
resolving dependencies...
looking for conflicting packages...

Package (1)  New Version  Net Change  Download Size

core/sudo    1.9.15.p5-1    7.73 MiB       1.88 MiB

Total Download Size:   1.88 MiB
Total Installed Size:  7.73 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 sudo-1.9.15.p5-1-x86_64 downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing sudo...
:: Running post-transaction hooks...
(1/3) Reloading system manager configuration...
  Skipped: Current root is not booted.
([2](https://github.com/buildpacks/pack/actions/runs/9305717042/job/25614581826#step:11:2)/3) Creating temporary files...
/usr/lib/tmpfiles.d/journal-nocow.conf:26: Failed to resolve specifier: uninitialized /etc/ detected, skipping.
All rules containing unresolvable specifiers will be skipped.
([3](https://github.com/buildpacks/pack/actions/runs/9305717042/job/25614581826#step:11:3)/3) Arming ConditionNeedsUpdate...
> Install dependencies
:: Synchronizing package databases...
 core downloading...
 extra downloading...
resolving dependencies...
looking for conflicting packages...

Package (33)          Old Version  New Version                Net Change  Download Size

core/autoconf                      2.72-1                       2.22 MiB       0.6[4](https://github.com/buildpacks/pack/actions/runs/9305717042/job/25614581826#step:11:4) MiB
core/automake                      1.16.[5](https://github.com/buildpacks/pack/actions/runs/9305717042/job/25614581826#step:11:5)-2                     1.57 MiB       0.[6](https://github.com/buildpacks/pack/actions/runs/9305717042/job/25614581826#step:11:6)0 MiB
core/binutils                      2.42+r91+g6224493e45[7](https://github.com/buildpacks/pack/actions/runs/9305717042/job/25614581826#step:11:7)-1     39.92 MiB       7.52 MiB
core/bison                         3.[8](https://github.com/buildpacks/pack/actions/runs/9305717042/job/25614581826#step:11:8).2-6                      2.54 MiB       0.75 MiB
core/db5.3                         5.3.28-5                     6.45 MiB       1.18 MiB
core/debugedit                     5.0-6                        0.10 MiB       0.04 MiB
core/diffutils                     3.10-1                       1.48 MiB       0.34 MiB
core/fakeroot                      1.34-1                       0.13 MiB       0.07 MiB
core/flex                          2.6.4-5                      0.[9](https://github.com/buildpacks/pack/actions/runs/9305717042/job/25614581826#step:11:10)3 MiB       0.30 MiB
core/gc                            8.2.6-1                      0.75 MiB       0.23 MiB
core/gcc                           14.1.1+r58+gfc9fb69ad62-1  201.62 MiB      51.00 MiB
core/gcc-libs         13.2.1-3     14.1.1+r58+gfc9fb69ad62-1   -0.66 MiB      35.08 MiB
core/groff                         1.23.0-5                     9.69 MiB       2.34 MiB
core/guile                         3.0.9-1                     52.98 MiB       8.10 MiB
core/jansson                       2.14-4                       0.18 MiB       0.05 MiB
core/libedit                       20230828_3.1-1               0.28 MiB       0.11 MiB
core/libisl                        0.26-2                       5.72 MiB       0.86 MiB
core/libmpc                        1.3.1-1                      0.17 MiB       0.08 MiB
core/libtool                       2.5.0+1+g38c166c8-1          2.21 MiB       0.40 MiB
core/m4                            1.4.19-3                     0.47 MiB       0.24 MiB
core/make                          4.4.1-2                      1.67 MiB       0.51 MiB
core/patch                         2.7.6-10                     0.18 MiB       0.09 MiB
core/perl                          5.38.2-1                    69.69 MiB      19.44 MiB
extra/perl-error                   0.17029-5                    0.04 MiB       0.02 MiB
extra/perl-mailtools               2.21-7                       0.10 MiB       0.06 MiB
extra/perl-timedate                2.33-5                       0.08 MiB       0.03 MiB
core/pkgconf                       2.1.1-1                      0.16 MiB       0.06 MiB
core/texinfo                       7.1-2                        9.96 MiB       1.68 MiB
core/which                         2.21-6                       0.03 MiB       0.02 MiB
core/base-devel                    1-1                          0.00 MiB       0.00 MiB
extra/git                          2.45.1-1                    27.82 MiB       6.42 MiB
core/libffi           3.4.4-1      3.4.6-1                      0.00 MiB       0.04 MiB
core/openssh                       9.7p1-2                      5.51 MiB       1.12 MiB

Total Download Size:   139.43 MiB
Total Installed Size:  588.04 MiB
Net Upgrade Size:      444.01 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 gcc-14.1.1+r58+gfc9fb69ad62-1-x86_64 downloading...
 gcc-libs-14.1.1+r58+gfc9fb69ad62-1-x86_64 downloading...
 perl-5.38.2-1-x86_64 downloading...
 guile-3.0.9-1-x86_64 downloading...
 binutils-2.42+r91+g6224493e457-1-x86_64 downloading...
 git-2.45.1-1-x86_64 downloading...
 groff-1.23.0-5-x86_64 downloading...
 texinfo-7.1-2-x86_64 downloading...
 db5.3-5.3.28-5-x86_64 downloading...
 openssh-9.7p1-2-x86_64 downloading...
 libisl-0.26-2-x86_64 downloading...
 bison-3.8.2-6-x86_64 downloading...
 autoconf-2.72-1-any downloading...
 automake-1.16.5-2-any downloading...
 make-4.4.1-2-x86_64 downloading...
 libtool-2.5.0+1+g38c166c8-1-x86_64 downloading...
 diffutils-3.[10](https://github.com/buildpacks/pack/actions/runs/9305717042/job/25614581826#step:11:11)-1-x86_64 downloading...
 flex-2.6.4-5-x86_64 downloading...
 m4-1.4.19-3-x86_64 downloading...
 gc-8.2.6-1-x86_64 downloading...
 libedit-20230828_3.1-1-x86_64 downloading...
 patch-2.7.6-10-x86_64 downloading...
 libmpc-1.3.1-1-x86_64 downloading...
 fakeroot-1.34-1-x86_64 downloading...
 pkgconf-2.1.1-1-x86_64 downloading...
 perl-mailtools-2.21-7-any downloading...
 jansson-2.14-4-x86_64 downloading...
 libffi-3.4.6-1-x86_64 downloading...
 debugedit-5.0-6-x86_64 downloading...
 perl-timedate-2.33-5-any downloading...
 perl-error-0.17029-5-any downloading...
 which-2.21-6-x86_64 downloading...
 base-devel-1-1-any downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
upgrading gcc-libs...
installing db5.3...
installing perl...
installing perl-error...
installing perl-timedate...
installing perl-mailtools...
upgrading libffi...
installing git...
Optional dependencies for git
    tk: gitk and git gui
    openssh: ssh transport and crypto [pending]
    perl-libwww: git svn
    perl-term-readkey: git svn and interactive.singlekey setting
    perl-io-socket-ssl: git send-email TLS support
    perl-authen-sasl: git send-email TLS support
    perl-mediawiki-api: git mediawiki support
    perl-datetime-format-iso8601: git mediawiki support
    perl-lwp-protocol-https: git mediawiki https support
    perl-cgi: gitweb (web interface) support
    python: git svn & git p4
    subversion: git svn
    org.freedesktop.secrets: keyring credential helper
    libsecret: libsecret credential helper [installed]
installing libedit...
installing openssh...
Optional dependencies for openssh
    libfido2: FIDO/U2F support
    sh: for ssh-copy-id and findssl.sh [installed]
    x[11](https://github.com/buildpacks/pack/actions/runs/9305717042/job/25614581826#step:11:12)-ssh-askpass: input passphrase in X
    xorg-xauth: X11 forwarding
installing m4...
installing diffutils...
installing autoconf...
installing automake...
installing jansson...
installing binutils...
Optional dependencies for binutils
    debuginfod: for debuginfod server/client functionality
installing bison...
installing debugedit...
installing fakeroot...
installing flex...
installing libmpc...
installing libisl...
installing gcc...
Optional dependencies for gcc
    lib32-gcc-libs: for generating code for 32-bit ABI
installing groff...
Optional dependencies for groff
    netpbm: for use together with man -H command interaction in browsers
    psutils: for use together with man -H command interaction in browsers
    libxaw: for gxditview
    perl-file-homedir: for use with glilypond
installing libtool...
installing gc...
installing guile...
installing make...
installing patch...
Optional dependencies for patch
    ed: for patch -e functionality
installing pkgconf...
installing texinfo...
Optional dependencies for texinfo
    perl-archive-zip: EPUB file output via texi2any
installing which...
installing base-devel...
:: Running post-transaction hooks...
(1/6) Creating system user accounts...
Creating group 'git' with GID 973.
Creating user 'git' (git daemon user) with UID 973 and GID 973.
(2/6) Reloading system manager configuration...
  Skipped: Current root is not booted.
(3/6) Reloading user manager configuration...
  Skipped: Current root is not booted.
(4/6) Creating temporary files...
/usr/lib/tmpfiles.d/journal-nocow.conf:26: Failed to resolve specifier: uninitialized /etc/ detected, skipping.
All rules containing unresolvable specifiers will be skipped.
(5/6) Arming ConditionNeedsUpdate...
(6/6) Warn about old perl modules
> Configuring ssh...
> Starting ssh-agent...
Agent pid 329
> Add Github to known_hosts...
# aur.archlinux.org:22 SSH-2.0-OpenSSH_9.7
# aur.archlinux.org:22 SSH-2.0-OpenSSH_9.7
# aur.archlinux.org:22 SSH-2.0-OpenSSH_9.7
# aur.archlinux.org:22 SSH-2.0-OpenSSH_9.7
# aur.archlinux.org:22 SSH-2.0-OpenSSH_9.7
> Adding AUR_KEY...
Identity added: (stdin) (cncf-buildpacks-notifications@lists.cncf.io)
> Cloning aur...
Cloning into '/github/workspace/pack-cli-aur'...
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint:   git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint:   git branch -m <name>
> Declare directory ${PACKAGE_AUR_DIR} as safe
> Checking out master...
Already on 'master'
Your branch is up to date with 'origin/master'.
> Applying changes...
> Committing changes...
diff --git a/.SRCINFO b/.SRCINFO
index 5439e8e..af220de 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,[12](https://github.com/buildpacks/pack/actions/runs/9305717042/job/25614581826#step:11:13) +1,12 @@
 pkgbase = pack-cli
    pkgdesc = CLI for building apps using Cloud Native Buildpacks
-   pkgver = 0.33.2
+   pkgver = 0.34.0
    pkgrel = 1
    url = https://buildpacks.io/
    arch = x86_64
    license = Apache
    makedepends = go-pie
-   source = https://github.com/buildpacks/pack/archive/v0.33.2.tar.gz
-   sha512sums = d416527ffbc24b2343c6b5964973a9[14](https://github.com/buildpacks/pack/actions/runs/9305717042/job/25614581826#step:11:15)1d028af3bb5dd7fc6b65beccff44238c4a7299c4ce970d4a529952d37c7cee[15](https://github.com/buildpacks/pack/actions/runs/9305717042/job/25614581826#step:11:16)ad71e46d4b3036107526fd0ab739fcfb
+   source = https://github.com/buildpacks/pack/archive/v0.34.0.tar.gz
+   sha512sums = ea448978062c63a1ee212be42cf0143232ba2487bd474bcaf006979d78cb504b63ca756e2b0c9f66d19548014a27b5909f94c2d669bb5abb2bdf2180667bf20f

 pkgname = pack-cli
diff --git a/PKGBUILD b/PKGBUILD
index 67d3a0b..1c5c937 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,15 +1,15 @@
 # Maintainer: Michael William Le Nguyen <michael at mail dot ttp dot codes>
 # Maintainer: Buildpacks Maintainers <cncf-buildpacks-maintainers at lists dot cncf dot io>
 pkgname=pack-cli
-pkgver=0.33.2
+pkgver=0.34.0
 pkgrel=1
 pkgdesc="CLI for building apps using Cloud Native Buildpacks"
 arch=('x86_64')
 url="https://buildpacks.io/"
 license=('Apache')
 makedepends=('go-pie')
-source=("https://github.com/buildpacks/pack/archive/v0.33.2.tar.gz")
-sha512sums=("d4[16](https://github.com/buildpacks/pack/actions/runs/9305717042/job/25614581826#step:11:17)527ffbc24b2343c6b5964973a9141d028af3bb5dd7fc6b65beccff44238c4a7299c4ce970d4a529952d37c7cee15ad71e46d4b3036107526fd0ab739fcfb")
+source=("https://github.com/buildpacks/pack/archive/v0.34.0.tar.gz")
+sha512sums=("ea448978062c63a1ee212be42cf0143232ba2487bd474bcaf006979d78cb504b63ca756e2b0c9f66d19548014a27b5909f94c2d669bb5abb2bdf2[18](https://github.com/buildpacks/pack/actions/runs/9305717042/job/25614581826#step:11:19)0667bf20f")
 build() {
    export GOPATH="${srcdir}/go"
    cd "${srcdir}/pack-${pkgver}"
[master daad7ef] Version 0.34.0
 2 files changed, 6 insertions(+), 6 deletions(-)
remote: error: package already provided by [extra]: pack-cli        
remote: error: hook declined to update refs/heads/master        
To ssh://aur.archlinux.org/pack-cli.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur.archlinux.org/pack-cli.git'

Proposed solution

Additional context

anjannath commented 3 months ago

remote: error: package already provided by [extra]: pack-cli

Hi, it seems the pack-cli package has been promoted to the extra repo, meaning it is now maintained by the arch developers and package maintainers. the github actions job is trying to still push to the aur repo which doesn't exist anymore. I think the job can be removed.

link to the package in extra repo: https://archlinux.org/packages/extra/x86_64/pack-cli/ package source: https://gitlab.archlinux.org/archlinux/packaging/packages/pack-cli

The package was abopted around two weeks ago as per https://gitlab.archlinux.org/archlinux/packaging/packages/pack-cli/-/commit/3b82b72e349fe1b45ba6e8b68cfa1e4aca565a2d

and this correlates with the first failure during 0.34.2 release, which tried to push it after the package was adopted to the extra repo: https://github.com/buildpacks/pack/actions/runs/9305717042/job/25614581826

jjbustamante commented 3 months ago

@anjannath Thank you for the analysis!!!