| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix(orchestrator): cleanly disable sandbox log forwarding when the collector is unset Self-hosted installs without Loki leave LOGS_COLLECTOR_ADDRESS empty or schemeless (the deploy default is "localhost:30006"), so every sandbox log line forwarded through hyperloop failed with an ERROR log and a 500 response. Treat an empty or malformed address as "not configured" and disable sandbox log forwarding cleanly in that case; a non-empty but malformed value logs a single warning at startup. Not kernel-specific: a behavior fix for all environments. The resume path keeps advertising the hyperloop /logs endpoint to envd unconditionally, and the drop happens in the hyperloop handler instead. envd's log exporter buffers every log line in memory and only starts draining once MMDS hands it a non-empty address, so a blank address would grow that buffer for the sandbox's whole lifetime. The deploy/.env default is intentionally left unchanged; whether log collection is on by default belongs to the deployment switches. Add table-driven tests for ValidLogsCollectorAddress. The test file is byte-identical to packages/shared/pkg/env/logs_collector_test.go in the Linux 4.19 adaptation PR, so the two changes merge cleanly in either order instead of redeclaring TestValidLogsCollectorAddress. (cherry picked from commit 3f9f4d8a9a794bb30909214b0c589cfd453baa3c, without its deploy/.env default change) | 1 个月前 | |
fix(orchestrator): cleanly disable sandbox log forwarding when the collector is unset Self-hosted installs without Loki leave LOGS_COLLECTOR_ADDRESS empty or schemeless (the deploy default is "localhost:30006"), so every sandbox log line forwarded through hyperloop failed with an ERROR log and a 500 response. Treat an empty or malformed address as "not configured" and disable sandbox log forwarding cleanly in that case; a non-empty but malformed value logs a single warning at startup. Not kernel-specific: a behavior fix for all environments. The resume path keeps advertising the hyperloop /logs endpoint to envd unconditionally, and the drop happens in the hyperloop handler instead. envd's log exporter buffers every log line in memory and only starts draining once MMDS hands it a non-empty address, so a blank address would grow that buffer for the sandbox's whole lifetime. The deploy/.env default is intentionally left unchanged; whether log collection is on by default belongs to the deployment switches. Add table-driven tests for ValidLogsCollectorAddress. The test file is byte-identical to packages/shared/pkg/env/logs_collector_test.go in the Linux 4.19 adaptation PR, so the two changes merge cleanly in either order instead of redeclaring TestValidLogsCollectorAddress. (cherry picked from commit 3f9f4d8a9a794bb30909214b0c589cfd453baa3c, without its deploy/.env default change) | 1 个月前 |