[Git-commits] [grml/grml-debootstrap] 792ae1: tests: provide README, adjust for plain python3 us...

Michael Prokop noreply at github.com
Sat Aug 17 14:39:43 CEST 2024


  Branch: refs/heads/mika/ci
  Home:   https://github.com/grml/grml-debootstrap
  Commit: 792ae19f8740d276ff19f5f171f861c223a985ef
      https://github.com/grml/grml-debootstrap/commit/792ae19f8740d276ff19f5f171f861c223a985ef
  Author: Michael Prokop <mika at grml.org>
  Date:   2024-08-17 (Sat, 17 Aug 2024)

  Changed paths:
    A tests/README.md
    M tests/build-vm-and-test.sh
    M tests/serial-console-connection

  Log Message:
  -----------
  tests: provide README, adjust for plain python3 usage, default to bookworm + install curl

Provide tests/README.md for usage instructions, when trying to reproduce
the GitHub tests inside a local VM.

Our tests/build-vm-and-test.sh script relies on presence of curl
command, so ensure it's available.

We need to rplace `/usr/bin/env python` with `/usr/bin/env python3`
as /usr/bin/python is provided only by the python-is-python3 or
python-is-python2 packages through a symlink (meant for third-party or
legacy scripts, see https://wiki.debian.org/Python), though those might
not be present e.g. when running in a local Debian bookworm VM.

While at it, set the `--hostname` default of the
serial-console-connection script to `bookworm`.


  Commit: 5e8f31d84e686833954232e077153c3baf809536
      https://github.com/grml/grml-debootstrap/commit/5e8f31d84e686833954232e077153c3baf809536
  Author: Michael Prokop <mika at grml.org>
  Date:   2024-08-17 (Sat, 17 Aug 2024)

  Changed paths:
    M tests/serial-console-connection

  Log Message:
  -----------
  tests/serial-console-connection: support setting overall timeout

The number of retries for finding the login prompt might be taking
longer than expected, like seen on our GitHub actions which run ~45-50
minutes before timing out. It's useful to have an option to specify the
overall runtime of the serial-console-connection, so implement an
according timeout option.


  Commit: b92cc303c5c5f0871b0ca8d1dbb438dc04f88b42
      https://github.com/grml/grml-debootstrap/commit/b92cc303c5c5f0871b0ca8d1dbb438dc04f88b42
  Author: Michael Prokop <mika at grml.org>
  Date:   2024-08-17 (Sat, 17 Aug 2024)

  Changed paths:
    M tests/test-vm.sh

  Log Message:
  -----------
  tests/test-vm.sh: reduce default connection retries to 60 + use global timeout of 5 minutes

There's no point in waiting ~45 minutes before timing out on our GitHub
action runs. Instead reduce retries from 180 to 60, and set overall
runtime of 5 minutes, which should be enough for our current builds.


  Commit: cb3b9b92b1464bd1e4c17a2ca3b78f8dbc9b8b1f
      https://github.com/grml/grml-debootstrap/commit/cb3b9b92b1464bd1e4c17a2ca3b78f8dbc9b8b1f
  Author: Michael Prokop <mika at grml.org>
  Date:   2024-08-17 (Sat, 17 Aug 2024)

  Changed paths:
    M tests/build-vm-and-test.sh
    M tests/serial-console-connection
    M tests/test-vm.sh

  Log Message:
  -----------
  tests: Try to capture screenshot via VNC if serial-console-connection fails

While debugging the failing GitHub Actions (see #278), we noticed that
it might serve useful to have a screenshot of the booted system
available. We can capture such a screenshot via vncsnapshot.

NOTE: we move the files inside `results` only if the directory as such
exists in $PWD, otherwise we'd fail the build when being executed as
`tests/build-vm-and-test.sh test` from inside the grml-debootstrap.git.
This happens when manually reproducing the GH tests, though then
`build-vm-and-test.sh` is supposed to be executed from the parent
directory of the `tests` directory (being the grml-debootstrap.git
checkout).


Compare: https://github.com/grml/grml-debootstrap/compare/ab13ef372225...cb3b9b92b146

To unsubscribe from these emails, change your notification settings at https://github.com/grml/grml-debootstrap/settings/notifications


More information about the Git-commits mailing list