)]}'
{
  "commit": "9bb141ac6eea2e5e6474048a3ca565ab30eff46b",
  "tree": "f22349817bf804d80aaf48a93b3d68b5a4819e87",
  "parents": [
    "5f4474e9d9286e9cf40e309979abe19069d8acde"
  ],
  "author": {
    "name": "Xinhao Yuan",
    "email": "xinhaoyuan@google.com",
    "time": "Mon Nov 16 08:25:50 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Mon Nov 16 08:26:37 2026 -0800"
  },
  "message": "Windows support 1/x: centipede:command.\n\n`Command` previously relied on `posix_spawn` with `/bin/sh`, the POSIX `env` utility for environment variable modifications, and shell `\u003c` redirection syntax in arguments. These mechanisms are not portable to Windows.\n\nRefactor `Command` to support native Windows process management alongside POSIX:\n\n- Introduce `Command::PlatformContext` to encapsulate platform-specific process handles (`HANDLE` on Windows vs. `pid_t` and `ForkServerProps` on POSIX).\n\n- Implement Windows process creation, environment block construction (`Options::env_diff`), and standard stream redirection in `Command::ExecuteAsync()` using `CreateProcessA`.\n\n- Add `Options::stdin_file_path` to handle input redirection directly rather than appending `\"\u003c\"` to command arguments, and update `SymbolTable` to use it.\n\n- Escape command-line arguments, environment variables, and file paths in `Command::ToString()` on both POSIX (`ShellEscape`) and Windows.\n\n- Update `command_test_helper` and `command_test` to verify arguments, environment variables, standard input, and signals portably without relying on `bash`, and enable `centipede:command_test` on Windows CI.\n\n- Update `GetDataDependencyFilepath` to return executable path suffixed with `.exe` under Windows.\n\nPiperOrigin-RevId: 1022836478\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1a6b40ebe6d235fa54f6515b991247b34a02383d",
      "old_mode": 33188,
      "old_path": ".github/workflows/bazel_test_centipede.yml",
      "new_id": "9a16bf602d55dd20c99658f43ff3bf39681248d8",
      "new_mode": 33188,
      "new_path": ".github/workflows/bazel_test_centipede.yml"
    },
    {
      "type": "modify",
      "old_id": "930e2d2a1328f948f87ce4625211d7fc606a53e1",
      "old_mode": 33188,
      "old_path": "centipede/BUILD",
      "new_id": "6238cc0f6962eb9668fcf640aa69e5b11cee9983",
      "new_mode": 33188,
      "new_path": "centipede/BUILD"
    },
    {
      "type": "modify",
      "old_id": "43100e48191e35f7ae8f221e8467cda19db27eb0",
      "old_mode": 33188,
      "old_path": "centipede/command.cc",
      "new_id": "434277691223325941e898da2192bc5b58ed855c",
      "new_mode": 33188,
      "new_path": "centipede/command.cc"
    },
    {
      "type": "modify",
      "old_id": "33c1d148226ab3bdf434fb1a47017658f4352851",
      "old_mode": 33188,
      "old_path": "centipede/command.h",
      "new_id": "c369cdddda890f8e8e805e7b6cb27a50acc9a4fb",
      "new_mode": 33188,
      "new_path": "centipede/command.h"
    },
    {
      "type": "modify",
      "old_id": "48f4d07302b3093aab9281d241bf5e32f32e382e",
      "old_mode": 33188,
      "old_path": "centipede/command_test.cc",
      "new_id": "f31ad8b63c2dfdd361213d53b077ab9e195604eb",
      "new_mode": 33188,
      "new_path": "centipede/command_test.cc"
    },
    {
      "type": "modify",
      "old_id": "d3153a85317ff486cf6c01b6bf61245991cfcc4d",
      "old_mode": 33188,
      "old_path": "centipede/command_test_helper.cc",
      "new_id": "75fe519d1219fbdfbe5aa4dbc7793f6d91db31ff",
      "new_mode": 33188,
      "new_path": "centipede/command_test_helper.cc"
    },
    {
      "type": "modify",
      "old_id": "e693b4817dc91c1f7083088b08d0b35164f23591",
      "old_mode": 33188,
      "old_path": "centipede/symbol_table.cc",
      "new_id": "6e58ebdfe381beaff5b5b09e2ef0f7f46946c523",
      "new_mode": 33188,
      "new_path": "centipede/symbol_table.cc"
    },
    {
      "type": "modify",
      "old_id": "be2dec31e301d39fb7f23e96117fc5fcc96a9655",
      "old_mode": 33188,
      "old_path": "centipede/util_test.cc",
      "new_id": "27facf7d148c0282f796e154ca3f59b47af67db1",
      "new_mode": 33188,
      "new_path": "centipede/util_test.cc"
    },
    {
      "type": "modify",
      "old_id": "1ed76c735dfd4f125e24f2f72351eca586a93f33",
      "old_mode": 33188,
      "old_path": "common/BUILD",
      "new_id": "296b1406f44accb055d995dce3df76ef8937c7a1",
      "new_mode": 33188,
      "new_path": "common/BUILD"
    },
    {
      "type": "modify",
      "old_id": "007440d66091b048f6d09fe344188115191c328e",
      "old_mode": 33188,
      "old_path": "common/CMakeLists.txt",
      "new_id": "b7757633467a680d9b2d7ddb32d555dd50b7dacf",
      "new_mode": 33188,
      "new_path": "common/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "3232d551f93ecd8f1ff5dc20287e1392ced7e55a",
      "old_mode": 33188,
      "old_path": "common/test_util.cc",
      "new_id": "eaa59a709a021ebd44bb55c710380e7fd1c7977f",
      "new_mode": 33188,
      "new_path": "common/test_util.cc"
    },
    {
      "type": "modify",
      "old_id": "c859bff9459830fea7a77ec9b8f11108a6f14e30",
      "old_mode": 33188,
      "old_path": "common/test_util.h",
      "new_id": "bb64b439647de1539b03ea15c181f1e224f72b03",
      "new_mode": 33188,
      "new_path": "common/test_util.h"
    }
  ]
}
