[stable-4] Docker Compose 5+: improve image layer event parsing (#1219) (#1220)

* Docker Compose 5+: improve image layer event parsing (#1219)

* Remove long deprecated version fields.

* Add first JSON event parsing tests.

* Improve image layer event parsing for Compose 5+.

* Add 'Working' to image working actions.

* Add changelog fragment.

* Shorten lines.

* Adjust docker_compose_v2_run tests.

(cherry picked from commit 174c0c8058)

* Remove type hints.

* Fix Python 2 compatibility when parsing JSON events.
This commit is contained in:
Felix Fontein
2025-12-06 18:32:17 +01:00
committed by GitHub
parent 22c17bca86
commit 091e393e6d
5 changed files with 241 additions and 21 deletions
@@ -77,7 +77,8 @@
- assert:
that:
- result_1.rc == 0
- result_1.stderr == ""
# Since Compose 5, unrelated output shows up in stderr...
- result_1.stderr == "" or ("Creating" in result_1.stderr and "Created" in result_1.stderr)
- >-
"usr" in result_1.stdout_lines
and