debian-forge-composer/test/cases
Alexander Todorov 85ce42570d Refactor how the 'trap' command is used to avoid double calls
in many files there was a secondary call to `trap` for the sole purpose
of killing jornalctl (watching worker logs) so that GitLab CI doesn't
hang.

The issue with this is that sometimes the cleared the trap which invokes
the cleanup() function without reinstating it again (not everywhere).

Instead of doing this back-and-forth just make sure we don't leave any
journalctl processes dangling in the background!

NOTES:

- for some scripts, mainly ostree- ones there was no cleanup trap
  present, but instead `trap` was configured inside the build_image() function.
  The trouble is that this function is executed multiple times and
  $WORKER_JOURNAL_PID changes value between these multiple executions.
  That's why these scripts introduce the cleanup_on_exit() function where
  we make sure to kill any possible dangling journalctl processes.
- The name `cleanup_on_exit()` is chosed because these same scripts
  often have a helper function named clean_up() which is sometimes used to remove
  virtual machines and other artifacts between calls of build_image().
2024-04-19 13:16:11 +03:00
..
api test/api.sh: Drop distro aliases and dot-notation 2024-03-06 13:28:30 +01:00
api.sh test/api.sh: Drop distro aliases and dot-notation 2024-03-06 13:28:30 +01:00
aws.sh Refactor how the 'trap' command is used to avoid double calls 2024-04-19 13:16:11 +03:00
aws_s3.sh test: use non-deprecated gitlab CI variables 2023-05-12 11:02:49 +02:00
azure.sh Refactor how the 'trap' command is used to avoid double calls 2024-04-19 13:16:11 +03:00
azure_hyperv_gen2.sh Test Azure images on HyperV Gen1 and Gen2 2021-06-22 13:44:19 +03:00
base_tests.sh Test/base_tests.sh: workaround missing osbuild-depsolve-dnf in nightly 2024-02-20 15:55:47 +01:00
container-embedding.sh Refactor how the 'trap' command is used to avoid double calls 2024-04-19 13:16:11 +03:00
container-upload.sh Refactor how the 'trap' command is used to avoid double calls 2024-04-19 13:16:11 +03:00
cross-distro.sh Surround composer-cli call with set +e/set -e as a workaround 2023-12-22 11:07:52 +01:00
filesystem.sh Refactor how the 'trap' command is used to avoid double calls 2024-04-19 13:16:11 +03:00
gcp.sh Refactor how the 'trap' command is used to avoid double calls 2024-04-19 13:16:11 +03:00
generic_s3.sh Refactor how the 'trap' command is used to avoid double calls 2024-04-19 13:16:11 +03:00
generic_s3_http.sh Upload to HTTPS S3 - Support self signed certificate 2022-05-26 13:46:00 +03:00
generic_s3_https_insecure.sh Upload to HTTPS S3 - Support self signed certificate 2022-05-26 13:46:00 +03:00
generic_s3_https_secure.sh Upload to HTTPS S3 - Support self signed certificate 2022-05-26 13:46:00 +03:00
image_tests.sh Remove already tested manifests from test-case-generators 2024-03-06 09:09:39 +01:00
installers.sh test: modify the kickstart file in nightly pipelines 2024-03-20 11:45:08 +01:00
koji.sh Use dot-notation for repo configs and in test cases. 2024-01-26 11:32:34 +01:00
libvirt.sh test/libvirt.sh: don't test the aliased openstack image on Fedora 2023-06-26 17:56:20 +02:00
minimal-raw.sh Refactor how the 'trap' command is used to avoid double calls 2024-04-19 13:16:11 +03:00
multi-tenancy.sh Use dot-notation for repo configs and in test cases. 2024-01-26 11:32:34 +01:00
oci.sh oci/upload: create image capability schema 2023-08-28 10:29:14 +02:00
openshift_virtualization.sh Refactor how the 'trap' command is used to avoid double calls 2024-04-19 13:16:11 +03:00
ostree-ami-image.sh Refactor how the 'trap' command is used to avoid double calls 2024-04-19 13:16:11 +03:00
ostree-ignition.sh Refactor how the 'trap' command is used to avoid double calls 2024-04-19 13:16:11 +03:00
ostree-iot-qcow2.sh Refactor how the 'trap' command is used to avoid double calls 2024-04-19 13:16:11 +03:00
ostree-ng.sh Refactor how the 'trap' command is used to avoid double calls 2024-04-19 13:16:11 +03:00
ostree-pulp.sh Refactor how the 'trap' command is used to avoid double calls 2024-04-19 13:16:11 +03:00
ostree-raw-image.sh Refactor how the 'trap' command is used to avoid double calls 2024-04-19 13:16:11 +03:00
ostree-simplified-installer.sh Refactor how the 'trap' command is used to avoid double calls 2024-04-19 13:16:11 +03:00
ostree-vsphere.sh Refactor how the 'trap' command is used to avoid double calls 2024-04-19 13:16:11 +03:00
ostree.sh Refactor how the 'trap' command is used to avoid double calls 2024-04-19 13:16:11 +03:00
regression-composer-works-behind-satellite-fallback.sh Use dot-notation for repo configs and in test cases. 2024-01-26 11:32:34 +01:00
regression-composer-works-behind-satellite.sh Use dot-notation for repo configs and in test cases. 2024-01-26 11:32:34 +01:00
regression-excluded-dependency.sh test: new weldr client compatibility for test scripts 2022-09-13 16:06:19 +01:00
regression-include-excluded-packages.sh test: new weldr client compatibility for test scripts 2022-09-13 16:06:19 +01:00
regression-insecure-repo.sh Workaround race condition in test 2023-05-22 12:59:09 +02:00
regression-no-explicit-rootfs-definition.sh test: new weldr client compatibility for test scripts 2022-09-13 16:06:19 +01:00
regression-old-worker-new-composer.sh test/regression-old-worker: pick correct osbuild commit 2024-04-17 10:27:08 +02:00
shared_lib.sh tools: silence version comparison in get_build_info() 2022-11-23 13:35:57 +01:00
ubi-wsl.sh test/cases/ubi-wsl: query Windows VM ip address via vm show 2023-11-15 15:12:08 +01:00
upgrade8to9.sh test/cases: run upgrade test using new nightlies 2023-11-27 10:04:47 +01:00
vmware.sh Refactor how the 'trap' command is used to avoid double calls 2024-04-19 13:16:11 +03:00
weldr-distro-dot-notation-and-aliases.sh Test/weldr: add test for dot-notation and distro aliases 2024-01-26 11:32:34 +01:00
worker-executor.sh test/worker-executor: internet access during executor setup 2024-03-19 17:07:30 +01:00