Pin an exact Node.js image instead of node:lts (e.g. node:26.13.0-slim)
Run npm install -g corepack before corepack enable, in build-images.sh and ui/Containerfile
2. Optional: UI test screenshots need contents: write
Only if your module has UI tests and you want their screenshots in a pull request comment. CML’s image host (asset.cml.dev) stopped accepting uploads, so screenshots now go to a ci-screenshots branch of your repository. Grant the permission in the job that calls test-module-qemu.yml@v1:
Hey mates, do you use screenshots in your QEMU tests?
It’s a good habit, especially with Renovate. Combined with Robot tests, we can capture screenshots of our app’s web pages and make sure a Webpack update hasn’t broken the build or messed up the UI.
Andre gave a tour and mentioned that I’m the only one doing this. Come on, don’t leave me alone on this one!
One more thing for modules switching to test-module-qemu.yml@v1 (item 3):
4. Tests fail while installing tests/pythonreq.txt: No such file or directory: ‘gcc’
Many modules created from the old module template ship a tests/pythonreq.txt with very old pinned versions, such as cffi==1.15.0 and robotframework==4.1.2. These have no prebuilt package for the Python of the test container, which has no compiler to build them.
The action already installs robotframework, robotframework-sshlibrary and, for UI tests, robotframework-browser, together with their dependencies (paramiko, scp, cryptography, bcrypt, pynacl, cffi, pycparser…). So:
If your tests only use Robot Framework, SSHLibrary and Browser, deletetests/pythonreq.txt. The old template file contains only packages of this kind, so most modules can simply delete it.
If your tests import other Python libraries, keep only those lines in tests/pythonreq.txt, pinned to recent versions that publish wheels for Python 3.11 and 3.12, or that are pure Python.
Don’t pin robotframework, robotframework-sshlibrary or robotframework-browser: a pin replaces the version installed by the action.
The test log now shows a clear error naming the package that cannot be built, and a warning when the file pins one of those three packages.