containers / toolbox

Tool for interactive command line environments on Linux
https://containertoolbx.org/
Apache License 2.0
2.38k stars 208 forks source link

playbooks: Show the Bats version #1482

Closed debarshiray closed 2 months ago

debarshiray commented 2 months ago

Ansible's built-in 'package' module doesn't show any details when installing the RPMs. All that can be seen is:

  TASK [Install RPM packages]
  fedora-rawhide | changed

Therefore, there's no way to know what version of the packages got installed.

In this case, not knowing the Bats version being used by the CI makes it difficult to know why the tests are generating this spew on Fedora Rawhide [1]:

  TASK [Run system tests]
  test/system/libs/helpers.bash: line 7: TEMP_BASE_DIR: readonly variable
  test/system/libs/helpers.bash: line 8: TEMP_STORAGE_DIR: readonly variable
  test/system/libs/helpers.bash: line 10: IMAGE_CACHE_DIR: readonly variable
  test/system/libs/helpers.bash: line 11: ROOTLESS_PODMAN_STORE_DIR: readonly variable
  test/system/libs/helpers.bash: line 12: ROOTLESS_PODMAN_RUNROOT_DIR: readonly variable
  test/system/libs/helpers.bash: line 13: PODMAN_STORE_CONFIG_FILE: readonly variable
  test/system/libs/helpers.bash: line 14: DOCKER_REG_ROOT: readonly variable
  test/system/libs/helpers.bash: line 15: DOCKER_REG_CERTS_DIR: readonly variable
  test/system/libs/helpers.bash: line 16: DOCKER_REG_AUTH_DIR: readonly variable
  test/system/libs/helpers.bash: line 17: DOCKER_REG_URI: readonly variable
  test/system/libs/helpers.bash: line 18: DOCKER_REG_NAME: readonly variable
  test/system/libs/helpers.bash: line 21: PODMAN: readonly variable
  test/system/libs/helpers.bash: line 22: TOOLBX: readonly variable
  test/system/libs/helpers.bash: line 23: SKOPEO: readonly variable
  ...
  fedora-rawhide | 1..340

[1] https://github.com/bats-core/bats-core/pull/904

softwarefactory-project-zuul[bot] commented 2 months ago

Build failed. https://softwarefactory-project.io/zuul/t/local/buildset/6a1e2043f117404f9e26d4a317e69d57

:heavy_check_mark: unit-test SUCCESS in 6m 47s :heavy_check_mark: unit-test-migration-path-for-coreos-toolbox SUCCESS in 3m 09s :heavy_check_mark: unit-test-restricted SUCCESS in 5m 39s :x: system-test-fedora-rawhide TIMED_OUT in 1h 20m 23s :heavy_check_mark: system-test-fedora-39 SUCCESS in 34m 39s :heavy_check_mark: system-test-fedora-38 SUCCESS in 36m 03s

debarshiray commented 2 months ago

The failure on Fedora Rawhide is being investigated in https://github.com/containers/toolbox/pull/1468 and https://github.com/containers/podman/issues/22575