Attention is currently required from: pespin.
osmith has posted comments on this change by osmith. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37887?usp=email )
Change subject: testenv: add TESTENV_REBUILD_OUTDATED_IMAGE
......................................................................
Patch Set 2:
(1 comment)
File _testenv/testenv/podman.py:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37887/comment/23769c65_bd51…
:
PS1, Line 60: logging.debug("Building anyway since --force was
used")
oh, so there's already a cmdline param for that?
then this commit is just adding yet another way to […]
The `--force` parameter does
something different, it allows force-rebuilding the image with `./testenv.py init podman`
even if we detected that the image should be up-to-date.
The environment variable will automatically rebuild the image if we detect it is outdated
during `./testenv.py run ...`.
```
./testenv.py init podman
[testenv] + ['podman', 'image', 'exists',
'debian-bookworm-osmo-ttcn3-testenv']
[testenv] + ['podman', 'history',
'debian-bookworm-osmo-ttcn3-testenv', '--format', 'json']
[testenv] Image creation date: 2024-08-21 14:02:19
[testenv] Dockerfile last modified: 2024-08-21 14:01:23
[testenv] Podman image is up-to-date: debian-bookworm-osmo-ttcn3-testenv
```
```
./testenv.py init podman --force
[testenv] + ['podman', 'image', 'exists',
'debian-bookworm-osmo-ttcn3-testenv']
[testenv] + ['podman', 'history',
'debian-bookworm-osmo-ttcn3-testenv', '--format', 'json']
[testenv] Image creation date: 2024-08-21 14:02:19
[testenv] Dockerfile last modified: 2024-08-21 14:01:23
[testenv] Podman image is up-to-date: debian-bookworm-osmo-ttcn3-testenv
[testenv] Building anyway since --force was used
[testenv] Building podman image: debian-bookworm-osmo-ttcn3-testenv
[testenv] + ['buildah', 'build', '--build-arg',
'DISTRO=debian:bookworm', '-t',
'debian-bookworm-osmo-ttcn3-testenv',
'/home/user/code/osmo-dev/src/osmo-ttcn3-hacks/_testenv/data/podman']
```
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37887?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ia1243320b6d310c69ef9291cca69a1594b1a8a70
Gerrit-Change-Number: 37887
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 21 Aug 2024 14:55:38 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>