canonical / rockcraft

Tool to create OCI Images using the language from Snapcraft and Charmcraft.
GNU General Public License v3.0
37 stars 44 forks source link

Fix docs build languange tests #642

Closed clay-lake closed 3 months ago

clay-lake commented 4 months ago

This PR includes several fixes for the language tests in our docs/Makefile:


clay-lake commented 4 months ago

Here is an example of a failed build with these changes: https://github.com/canonical/rockcraft/pull/643

clay-lake commented 3 months ago

Thanks. The spread error you're getting is most likely because of this: #645

Could this be it?... it looks like a slice definition changed in chisel-releases which broke a test we run on our tutorials. In particular, the tutorial copies in its own openssl.yaml which is missing a data slice now required by ca-certificates_data-no-certs.

2024-07-22 14:40:26 Error executing google:ubuntu-22.04-64:docs/how-to/code/create-slice (jul221423-566334) :

+ apt show openssl

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Package: openssl
Version: 3.0.2-0ubuntu1.16
Priority: important
Section: utils
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian OpenSSL Team <pkg-openssl-devel@alioth-lists.debian.net>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 2102 kB
Depends: libc6 (>= 2.34), libssl3 (>= 3.0.2-0ubuntu1.2)
Suggests: ca-certificates
Homepage: https://www.openssl.org/
Task: minimal, server-minimal
Download-Size: 1186 kB
APT-Manual-Installed: no
APT-Sources: http://us-east1.gce.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
Description: Secure Sockets Layer toolkit - cryptographic utility
 This package is part of the OpenSSL project's implementation of the SSL
 and TLS cryptographic protocols for secure communication over the
 Internet.
 .
 It contains the general-purpose command line binary /usr/bin/openssl,
 useful for cryptographic operations such as:
  * creating RSA, DH, and DSA key parameters;
  * creating X.509 certificates, CSRs, and CRLs;
  * calculating message digests;
  * encrypting and decrypting with ciphers;
  * testing SSL/TLS clients and servers;
  * handling S/MIME signed or encrypted mail.

+ local_release=/root/chisel-releases_create-slice
+ local_root=/root/out_create-slice
+ rm -fr /root/chisel-releases_create-slice /root/out_create-slice
+ git clone -b ubuntu-22.04 https://github.com/canonical/chisel-releases /root/chisel-releases_create-slice
Cloning into '/root/chisel-releases_create-slice'...
+ mkdir /root/out_create-slice
+ cp openssl.yaml /root/chisel-releases_create-slice/slices
+ snap install chisel --channel=latest/candidate
snap "chisel" is already installed, see 'snap help refresh'
+ chisel cut --release /root/chisel-releases_create-slice --root /root/out_create-slice openssl_bins
2024/07/22 14:40:26 Processing /root/chisel-releases_create-slice release...
error: ca-certificates_data-no-certs requires openssl_data, but slice is missing