mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Tag rollout compression metrics by trigger (#46047)
## Why Compression metrics do not distinguish startup runs from runs requested through `rollout/compress`, making their outcomes indistinguishable by entry point. ## What changed Pass `RolloutCompressionTrigger` from startup and RPC callers through the compression worker. Add a `trigger` tag with `startup` or `rpc` to run, file, scan-error, and temporary-file cleanup metrics, including durations, byte counts, and compression ratios. GitOrigin-RevId: f23d9da791b666a7311f2323f6bead6570067798
This commit is contained in:
1 parent
20f4d12f76
commit
821ad43f9d
8 files changed
+221
-116
No files matched your search
@@ -3674,7 +3674,10 @@ terminal_visualization_instructions = true
|
||||
.set_times(std::fs::FileTimes::new().set_modified(
|
||||
std::time::SystemTime::now() - std::time::Duration::from_secs(8 * 24 * 60 * 60),
|
||||
))?;
|
||||
codex_rollout::spawn_rollout_compression_worker(home.clone());
|
||||
codex_rollout::spawn_rollout_compression_worker(
|
||||
home.clone(),
|
||||
codex_rollout::RolloutCompressionTrigger::Startup,
|
||||
);
|
||||
tokio::time::timeout(std::time::Duration::from_secs(10), async {
|
||||
while saved_path.exists() || !saved_path.with_extension("jsonl.zst").is_file() {
|
||||
tokio::time::sleep(std::time::Duration::from_millis(50)).await;
|
||||
|
||||
Reference in new issue
Block a user