It had been noticed that sometimes the Android emulator in our CI took
several minutes to fully boot. It turns out that this behavior can be
reproduced locally by removing the image files under $HOME/.android
especially the "userdata-qemu.img.qcow2" file.
Then the emulator goes through several reboots until fully booted with a
full set of packages installed. We discovered that the property that
signifies it is finished is dev.bootcomplete=1. So we now check for this
flag and remove the other heuristics we had.
We also disable the debug output to avoid hundreds lines of
logs. Instead we selectively print the values that the emulator returns,
every second until full boot is detected.
We increase the Coin timeout for the shell script, from 5min to 10min,
since it has been measured that it takes about 2.5min on a good day, and
the script itself retries several times to restart the emulator in case
of failure.
Finally we adjust the coding style a bit to be more consistent.
Pick-to: 6.3 6.2
Fixes: QTQAINFRA-4681
Change-Id: I77062dceb91477e957696c89bfacb4ebabc34c1f
Reviewed-by: Toni Saario <toni.saario@qt.io>
Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
coin_qtbase_build_template_v2.yaml did not exist. The build instructions were directly embedded into
module_config.yaml and did not support repos outside of qtbase, also no cross-compilation.
coin_qtbase_build_template_v2 introduced support for building other repos, and also enabled
build cross-compiling targets like Android and iOS.
A bit later the template gained the ability to build qemu cross-compiling configurations.
The counterpart to qtbase to build other repositories is coin_module_build_template_v2
Test templates
coin_module_test_template_v1 did not exist. The test instructions were directly embedded into
module_config.yaml and did not support repos outside of qtbase, also no cross-compilation.
coin_module_test_template_v2 introduced support for building tests for other repos, and made
sure not to build and run tests on cross-compiling configuration. A bit later the template gained
the ability to build and run tests for qemu cross-compiling configurations.
coin_module_test_template_v3 changed the run test instructions to not ignore the exit code
and thus enforce that tests pass in the CI.