High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
fix: name the e2e server log level explicitly instead of borrowing --verbose, whose meaning changed under the logging fix (PIN-101)
Luigi Agosti5baf1cddd2ac
diff --git a/tests/e2e/docker-compose-multi.yml b/tests/e2e/docker-compose-multi.ymlindex 4f83520e..a19e0c3e 100644--- a/tests/e2e/docker-compose-multi.yml+++ b/tests/e2e/docker-compose-multi.yml@@ -6,13 +6,27 @@# "debug"), and the level silently moved with it. `--log-level` wins over any# config file, so nothing under tests/e2e/config/ can override it.#-# `--verbose` is kept alongside, and it no longer touches the level: it only adds-# the startup banner, which is the sole place the log states the guard posture and-# the allowed-domain list — the fact that explains a scenario failing on a blocked-# fixture host. The two flags are orthogonal; dropping one does not move the other.+# `--verbose` is kept alongside for the startup banner, which is the sole place the+# log states the guard posture and the allowed-domain list — the fact that explains+# a scenario failing on a blocked fixture host.#-# The `pinchtab bridge` services take neither flag deliberately: bridge mode never-# had the discard-logger behaviour these flags were originally added to work around.+# Both flags must stay, and the reason is a precedence detail worth stating exactly.+# `--verbose` contributes ONLY the banner *while* `--log-level` is set: applyLogLevel+# returns early on a non-empty level and never reaches its verbose branch. Remove+# `--log-level` and `--verbose` governs the level again, setting debug on its own —+# so the two are not orthogonal, the older coupling is masked by both being present.+# Dropping `--log-level` would not change the level observed today, which is what+# makes the trap quiet: it would silently hand the level back to a flag whose meaning+# has already migrated once, which is the drift this file exists to prevent.+#+# The `pinchtab bridge` services deliberately pass no log flags and therefore run at+# info. Read that as a scope boundary, not as a judgement that info is right for+# them: `pinchtab bridge` accepts `--log-level` today, and the bridge is the process+# holding the CDP session, so target crashes, instance lifecycle and selector+# resolution are logged there — exactly what a failing browser scenario needs+# explained. By the principle stated above they arguably want debug too. Raising them+# is a separate decision, tracked on PIN-152, because the card that named the server+# level was scoped to leave the bridges untouched.x-pinchtab-base: &pinchtab-base# All pinchtab variants share the same image — only the pinchtab service# carries `build:` so compose builds it once. The 6 variants differ onlydiff --git a/tests/e2e/docker-compose.yml b/tests/e2e/docker-compose.ymlindex d5834372..90b0e94e 100644--- a/tests/e2e/docker-compose.yml+++ b/tests/e2e/docker-compose.yml@@ -6,13 +6,27 @@# "debug"), and the level silently moved with it. `--log-level` wins over any# config file, so nothing under tests/e2e/config/ can override it.#-# `--verbose` is kept alongside, and it no longer touches the level: it only adds-# the startup banner, which is the sole place the log states the guard posture and-# the allowed-domain list — the fact that explains a scenario failing on a blocked-# fixture host. The two flags are orthogonal; dropping one does not move the other.+# `--verbose` is kept alongside for the startup banner, which is the sole place the+# log states the guard posture and the allowed-domain list — the fact that explains+# a scenario failing on a blocked fixture host.#-# The `pinchtab bridge` services take neither flag deliberately: bridge mode never-# had the discard-logger behaviour these flags were originally added to work around.+# Both flags must stay, and the reason is a precedence detail worth stating exactly.+# `--verbose` contributes ONLY the banner *while* `--log-level` is set: applyLogLevel+# returns early on a non-empty level and never reaches its verbose branch. Remove+# `--log-level` and `--verbose` governs the level again, setting debug on its own —+# so the two are not orthogonal, the older coupling is masked by both being present.+# Dropping `--log-level` would not change the level observed today, which is what+# makes the trap quiet: it would silently hand the level back to a flag whose meaning+# has already migrated once, which is the drift this file exists to prevent.+#+# The `pinchtab bridge` services deliberately pass no log flags and therefore run at+# info. Read that as a scope boundary, not as a judgement that info is right for+# them: `pinchtab bridge` accepts `--log-level` today, and the bridge is the process+# holding the CDP session, so target crashes, instance lifecycle and selector+# resolution are logged there — exactly what a failing browser scenario needs+# explained. By the principle stated above they arguably want debug too. Raising them+# is a separate decision, tracked on PIN-152, because the card that named the server+# level was scoped to leave the bridges untouched.services:pinchtab:build:diff --git a/tests/tools/runner/internal/e2e/e2e_test.go b/tests/tools/runner/internal/e2e/e2e_test.goindex 16c04b06..da9dff12 100644--- a/tests/tools/runner/internal/e2e/e2e_test.go+++ b/tests/tools/runner/internal/e2e/e2e_test.go@@ -1067,9 +1067,13 @@ func TestEmptyLogSuffixMarksZeroByteArtifacts(t *testing.T) {// Every e2e server service must NAME its log level rather than inherit one. The// level used to be borrowed from --verbose, which once meant "log at all" and later// came to mean "debug"; the harness's diagnostic level moved when that definition-// moved, which is the drift this pins. --verbose is still expected alongside, for-// the startup banner alone — it is the only place the log states the guard posture-// and the allowed-domain list. Bridge services take neither flag deliberately.+// moved, which is the drift this pins. --verbose is still expected alongside for the+// startup banner — the only place the log states the guard posture and the+// allowed-domain list — and both flags are required together: --verbose contributes+// only the banner WHILE --log-level is set, and would govern the level again if+// --log-level were dropped. Bridge services are expected to carry neither, which+// leaves them at info; that is this guard's scope, not a finding that info is the+// right level for them.func TestComposeServerServicesNameTheirLogLevel(t *testing.T) {const wantFlags = "pinchtab server --log-level debug --verbose"@@ -1095,7 +1099,7 @@ func TestComposeServerServicesNameTheirLogLevel(t *testing.T) {bridges++for _, flag := range []string{"--verbose", "--log-level"} {if strings.Contains(svc.command, flag) {- t.Errorf("bridge service %s gained %s; bridge mode never had the discard behaviour these flags worked around: %s", svc.name, flag, svc.command)+ t.Errorf("bridge service %s gained %s, which this guard expects the bridges not to carry — they run at info by scope, not because info is known to be right for them. Raising the bridge level is a separate decision, tracked on PIN-152; if it has been made, update this guard and the compose header together rather than only here: %s", svc.name, flag, svc.command)}}default: