hermes-agent/tests/docker
ethernet 3fc4e413d2 feat(ci): track time.sleep in docker test profiler
The profiler now monkey-patches time.sleep alongside subprocess.run,
capturing the invisible "gap" time from polling loops (wait_for_container_ready,
poll_container, wait_for_log, etc.) that was previously unaccounted for.

The JSON report now includes per-test total_sleep_s, sleep_count, and
a sleeps[] array with caller location. The summary includes
total_sleep_s and total_wall_s (docker + sleep). The CI merge step
also aggregates sleep totals.

Local profile now shows: 201s docker + 75s sleep = 276s wall (38s
runner wall with 32-way parallelism). The biggest sleep consumer is
test_dashboard_insecure_env_var_no_longer_bypasses at 11.8s of
poll_container sleeps.
2026-07-14 16:22:05 -04:00
..
__init__.py
conftest.py docs(docker-tests): document why poll loop beats blocking exec in wait_for_container_ready 2026-07-14 16:06:37 -04:00
profiling.py feat(ci): track time.sleep in docker test profiler 2026-07-14 16:22:05 -04:00
test_config_migration.py refactor(ci): rewrite docker tests to check built container 2026-06-26 19:15:18 -07:00
test_container_restart.py refactor(ci): rewrite docker tests to check built container 2026-06-26 19:15:18 -07:00
test_dashboard.py perf(docker-tests): share containers across read-only tests 2026-07-14 02:10:00 -04:00
test_docker_exec_privilege_drop.py test(docker): wait for cont-init to finish before privilege-drop shim tests (#54026) 2026-06-28 17:06:26 +10:00
test_dump_build_sha.py perf(docker-tests): share containers across read-only tests 2026-07-14 02:10:00 -04:00
test_gateway_bootstrap_state.py refactor(ci): rewrite docker tests to check built container 2026-06-26 19:15:18 -07:00
test_gateway_run_supervised.py refactor(ci): rewrite docker tests to check built container 2026-06-26 19:15:18 -07:00
test_home_override_scripts.py refactor(ci): rewrite docker tests to check built container 2026-06-26 19:15:18 -07:00
test_immutable_install.py perf(docker-tests): share containers across read-only tests 2026-07-14 02:10:00 -04:00
test_immutable_install_permissions.py perf(docker-tests): share containers across read-only tests 2026-07-14 02:10:00 -04:00
test_license_file_present.py perf(docker-tests): share containers across read-only tests 2026-07-14 02:10:00 -04:00
test_log_dir_seed.py refactor(ci): rewrite docker tests to check built container 2026-06-26 19:15:18 -07:00
test_main_invocation.py test(docker): lock baseline behavior for Phase 0 harness 2026-05-24 18:05:14 -07:00
test_profile_gateway.py refactor(ci): rewrite docker tests to check built container 2026-06-26 19:15:18 -07:00
test_puid_pgid_remap.py refactor(ci): rewrite docker tests to check built container 2026-06-26 19:15:18 -07:00
test_s6_profile_gateway_integration.py fix(s6): dot-prefix gateway staging dir so svscan ignores it mid-build (#54834) 2026-06-29 21:33:00 +10:00
test_smoke.py change(ci): migrate docker smoketests to real tests 2026-06-26 19:15:18 -07:00
test_stage2_browser_discovery.py refactor(ci): rewrite docker tests to check built container 2026-06-26 19:15:18 -07:00
test_tini_compat_shim.py perf(docker-tests): share containers across read-only tests 2026-07-14 02:10:00 -04:00
test_toplevel_chown.py refactor(ci): rewrite docker tests to check built container 2026-06-26 19:15:18 -07:00
test_tui_passthrough.py test(docker): make tty-passthrough probe robust to container boot-log noise (#38665) 2026-06-04 13:19:13 +10:00
test_tui_prebuilt_bundle.py perf(docker-tests): share containers across read-only tests 2026-07-14 02:10:00 -04:00
test_user_flag_guard.py refactor(ci): rewrite docker tests to check built container 2026-06-26 19:15:18 -07:00
test_zombie_reaping.py refactor(ci): rewrite docker tests to check built container 2026-06-26 19:15:18 -07:00