Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autobump for firmware/* packages #932

Closed
mudler opened this issue Dec 6, 2021 · 2 comments · Fixed by #935
Closed

Autobump for firmware/* packages #932

mudler opened this issue Dec 6, 2021 · 2 comments · Fixed by #935
Assignees

Comments

@mudler
Copy link
Contributor

mudler commented Dec 6, 2021

Is your feature request related to a problem? Please describe.
Firmware packages are continuously being rebuilt, thus builds from scratch (without any docker cache) would likely hit 404 continously

Describe the solution you'd like
We should keep packages specs up-to-date

Describe alternatives you've considered

Additional context
We can use the same mechanism as we bump other packages, e.g. golang and annotate in the definition spec labels to let @cOS-cibot handle that. For example u-boot-rpiarm64 using #919 to scrape XML from openSUSE repositories :

      autobump.hook: |
        curl -s -L https://download.opensuse.org/repositories/hardware:/boot/openSUSE_Factory_ARM/$(curl -s -L https://download.opensuse.org/repositories/hardware:/boot/openSUSE_Factory_ARM/repodata/repomd.xml | dasel select -p xml 'repomd.data.[0].location.-href') | gunzip | dasel -r xml -p json | jq '.metadata.package[] | select(.name=="u-boot-rpiarm64") | select(.arch!="src").version | map(.)[2] + map(.)[1]' -r
      autobump.version_hook: |
        curl -s -L https://download.opensuse.org/repositories/hardware:/boot/openSUSE_Factory_ARM/$(curl -s -L https://download.opensuse.org/repositories/hardware:/boot/openSUSE_Factory_ARM/repodata/repomd.xml | dasel select -p xml 'repomd.data.[0].location.-href') | gunzip | dasel -r xml -p json | jq '.metadata.package[] | select(.name=="u-boot-rpiarm64") | select(.arch!="src").version | map(.)[2] + map(.)[1]' -r

      # We do assume that checksum is sha256
      autobump.checksum: |
        curl -s -L https://download.opensuse.org/repositories/hardware:/boot/openSUSE_Factory_ARM/$(curl -s -L https://download.opensuse.org/repositories/hardware:/boot/openSUSE_Factory_ARM/repodata/repomd.xml | dasel select -p xml 'repomd.data.[0].location.-href') | gunzip | dasel -r xml -p json | jq '.metadata.package[] | select(.name=="u-boot-rpiarm64") | select(.arch!="src").checksum."#text"' -r
@mudler mudler self-assigned this Dec 6, 2021
@mudler mudler removed their assignment Dec 6, 2021
@mudler
Copy link
Contributor Author

mudler commented Dec 6, 2021

Already hitting us:

       #8 sha256:53a8f8f2cd4ab62b28c450182cf0a37def48f11c41c97400fccf50e9328849f9
 INFO   #8 DONE 0.2s
 INFO   
 INFO   #9 [ 5/13] RUN wget https://download.opensuse.org/repositories/hardware:/boot/openSUSE_Factory_ARM/aarch64/u-boot-rpiarm64-2021.10-192.4.aarch64.rpm
 INFO   #9 sha256:9e221725c9c2bc6fe6c6ce5e875ae657afa981ef7590fbca14c4a68c673f94fa
 INFO   #9 0.296 --2021-12-06 1406--  https://download.opensuse.org/repositories/hardware:/boot/openSUSE_Factory_ARM/aarch64/u-boot-rpiarm64-2021.10-192.4.aarch64.rpm
 INFO   #9 0.303 Resolving download.opensuse.org (download.opensuse.org)... 195.135.221.134, 20012178:13 INFO   
 INFO   #9 0.305 Connecting to download.opensuse.org (download.opensuse.org)|195.135.221.134|:443... connected. INFO   
 INFO   #9 0.551 HTTP request sent, awaiting response...  INFO   404 Not Found
       #9 1.507 2021-12-06 1408 ERROR 404: Not Found.
       #9 1.507 
       #9 ERROR: executor failed running [/bin/sh -c wget https://download.opensuse.org/repositories/hardware:/boot/openSUSE_Factory_ARM/aarch64/u-boot-rpiarm64-2021.10-192.4.aarch64.rpm]: exit code: 8
       ------
        > [ 5/13] RUN wget https://download.opensuse.org/repositories/hardware:/boot/openSUSE_Factory_ARM/aarch64/u-boot-rpiarm64-2021.10-192.4.aarch64.rpm:
       ------
       executor failed running [/bin/sh -c wget https://download.opensuse.org/repositories/hardware:/boot/openSUSE_Factory_ARM/aarch64/u-boot-rpiarm64-2021.10-192.4.aarch64.rpm]: exit code: 8

in #934

mudler added a commit that referenced this issue Dec 6, 2021
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
@mudler
Copy link
Contributor Author

mudler commented Dec 6, 2021

Fix in #934

mudler added a commit that referenced this issue Dec 6, 2021
Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
@mudler mudler linked a pull request Dec 6, 2021 that will close this issue
@mudler mudler self-assigned this Dec 6, 2021
mudler added a commit that referenced this issue Dec 6, 2021
* ci: add labels for firmware autobump #932

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>

* firmware/*: bump

Signed-off-by: Ettore Di Giacinto <edigiacinto@suse.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant