date: 2026-11-06T19:34:55Z  commit: 0e921116610d289716af0a40ec823376eb8bbcbc
environment: {"COMPOSE_PROJECT_NAME": "mtusi2026lab5", "COMPOSE_FILE": "compose.yaml", "LB_HTTP_PORT": "18085", "LB_STATS_PORT": "25085", "BASE_URL": "http://127.0.0.1:18085", "NO_PROXY": "localhost,127.0.0.1,::1", "API_IMAGE": "mtusi-messenger:lab5-forward"}
$ sh -c 'set -e
fixture() { docker compose -p hlpipe-lab5-forward-errors -f student-tests/tools/lb_errors/compose.yaml "$@"; }
trap "fixture down" EXIT
fixture up -d lb api
fixture run --rm --no-deps probe 502
fixture run --rm --no-deps probe 504
fixture stop api
fixture run --rm --no-deps probe 503
fixture ps -a'
 Network hlpipe-lab5-forward-errors_default  Creating
 Network hlpipe-lab5-forward-errors_default  Created
 Container hlpipe-lab5-forward-errors-lb-1  Creating
 Container hlpipe-lab5-forward-errors-api-1  Creating
 Container hlpipe-lab5-forward-errors-api-1  Created
 Container hlpipe-lab5-forward-errors-lb-1  Created
 Container hlpipe-lab5-forward-errors-lb-1  Starting
 Container hlpipe-lab5-forward-errors-api-1  Starting
 Container hlpipe-lab5-forward-errors-api-1  Started
 Container hlpipe-lab5-forward-errors-lb-1  Started
{"status": 502, "request_id": "a\"b", "json_valid": true, "echo_matches": true, "seconds": 0.002}
{"status": 502, "request_id": "a\\b", "json_valid": true, "echo_matches": true, "seconds": 0.002}
{"status": 502, "request_id": "a\tb", "json_valid": true, "echo_matches": true, "seconds": 0.002}
{"status": 502, "request_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "json_valid": true, "echo_matches": true, "seconds": 0.001}
{"status": 504, "request_id": "a\"b", "json_valid": true, "echo_matches": true, "seconds": 10.005}
{"status": 504, "request_id": "a\\b", "json_valid": true, "echo_matches": true, "seconds": 10.009}
{"status": 504, "request_id": "a\tb", "json_valid": true, "echo_matches": true, "seconds": 10.015}
{"status": 504, "request_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "json_valid": true, "echo_matches": true, "seconds": 10.009}
 Container hlpipe-lab5-forward-errors-api-1  Stopping
 Container hlpipe-lab5-forward-errors-api-1  Stopped
{"status": 503, "request_id": "a\"b", "json_valid": true, "echo_matches": true, "seconds": 0.004}
{"status": 503, "request_id": "a\\b", "json_valid": true, "echo_matches": true, "seconds": 0.0}
{"status": 503, "request_id": "a\tb", "json_valid": true, "echo_matches": true, "seconds": 0.0}
{"status": 503, "request_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "json_valid": true, "echo_matches": true, "seconds": 0.0}
NAME                               IMAGE                                                                                           COMMAND                  SERVICE   CREATED          STATUS                       PORTS
hlpipe-lab5-forward-errors-api-1   mtusi-messenger:lab5-forward                                                                    "python /fixture/ser…"   api       49 seconds ago   Exited (143) 5 seconds ago   
hlpipe-lab5-forward-errors-lb-1    haproxy:3.2.26-alpine@sha256:5893840576071e6217cd52ebdcc14f454c6f7a631056fa6f4e0f40d3cac4215b   "docker-entrypoint.s…"   lb        49 seconds ago   Up 48 seconds                
 Container hlpipe-lab5-forward-errors-lb-1  Stopping
 Container hlpipe-lab5-forward-errors-api-1  Stopping
 Container hlpipe-lab5-forward-errors-api-1  Stopped
 Container hlpipe-lab5-forward-errors-api-1  Removing
 Container hlpipe-lab5-forward-errors-api-1  Removed
 Container hlpipe-lab5-forward-errors-lb-1  Stopped
 Container hlpipe-lab5-forward-errors-lb-1  Removing
 Container hlpipe-lab5-forward-errors-lb-1  Removed
 Network hlpipe-lab5-forward-errors_default  Removing
 Network hlpipe-lab5-forward-errors_default  Removed
exit_code: 0  elapsed_seconds: 52.862
