)]}'
{
  "commit": "a10eb74f7f7d23279cdde72163fc0dec66c9fe35",
  "tree": "a4439feb1fbf07dfa4231550033b411ecb590745",
  "parents": [
    "e3142a616b76cfb1b19cfb22375843b82d86e8a0"
  ],
  "author": {
    "name": "Ian (Hee) Cha",
    "email": "heec@google.com",
    "time": "Mon Nov 02 19:23:59 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Nov 02 14:23:59 2026 -0500"
  },
  "message": "[9.3.2] Fix linux-sandbox actions being killed prematurely when using virtual… (#32342)\n\n… threads (https://github.com/bazelbuild/bazel/pull/31017)\n\nThis is a version of https://github.com/bazelbuild/bazel/pull/29007\nwhere the added test should pass for MacOS. The only change in this PR\nvs that PR is the location of `true` varies based on OS.\n\nI think this should work, but I don\u0027t have a Mac handy to test this. If\nanyone has a Mac and can run `bazel test\n//src/test/java/com/google/devtools/build/lib/shell:JavaSubprocessFactoryTest`\nthen that\u0027d be much appreciated.\n\nI forgot to account for the fact that MacOS places `true` at\n`/usr/bin/true` instead of `/bin/true`. This was the error during\npostsubmit from that test on MacOS:\n\n```\n1) createFromVirtualThreadForksOnPlatformThread(com.google.devtools.build.lib.shell.JavaSubprocessFactoryTest)\njava.lang.AssertionError: Error running subprocess from virtual thread\n\tat com.google.devtools.build.lib.shell.JavaSubprocessFactoryTest.createFromVirtualThreadForksOnPlatformThread(JavaSubprocessFactoryTest.java:87)\n\t... 23 trimmed\nCaused by: java.io.IOException: Cannot run program \"/bin/true\": Exec failed, error: 2 (No such file or directory)\n```\n\nCloses #31017.\n\nPiperOrigin-RevId: 977850652\nChange-Id: Ideba552c30cb0804c2e8722b31cbaf12c9beb077\n\n\u003c!--\nThank you for contributing to Bazel!\nPlease read the contribution guidelines: https://bazel.build/contribute\nand guidelines for AI-assisted contributions:\nhttps://bazel.build/contribute/ai-assisted-contributions\n--\u003e\n\n### Description\n\u003c!--\nPlease provide a brief summary of the changes in this PR.\n--\u003e\n\n### Motivation\n\u003c!--\nWhy is this change important? Does it fix a specific bug or add a new\nfeature?\nIf this PR fixes an existing issue, please link it here (e.g. \"Fixes\n#1234\").\n--\u003e\n\n### Build API Changes\n\u003c!--\nDoes this PR affect the Build API? (e.g. Starlark API, providers,\ncommand-line flags, native rules)\nIf yes, please answer the following:\n1. Has this been discussed in a design doc or issue? (Please link it)\n2. Is the change backward compatible?\n3. If it\u0027s a breaking change, what is the migration plan?\n--\u003e\n\nNo\n\n### Checklist\n\n- [ ] I have added tests for the new use cases (if any).\n- [ ] I have updated the documentation (if applicable).\n\n### Release Notes\n\n\u003c!--\nIf this is a new feature, please add \u0027RELNOTES[NEW]: \u003cdescription\u003e\u0027\nhere.\nIf this is a breaking change, please add \u0027RELNOTES[INC]: \u003creason\u003e\u0027 here.\nIf this change should be mentioned in release notes, please add\n\u0027RELNOTES: \u003creason\u003e\u0027 here.\n--\u003e\n\nRELNOTES: None\n\nCommit\nhttps://github.com/bazelbuild/bazel/commit/feafed591d08ae69af0f92d35b7b2757ada1e46e\n\nCo-authored-by: James Judd \u003cjames@lab-y.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d81235d7fc69acecc9af53e1c6869646f22a649c",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/shell/JavaSubprocessFactory.java",
      "new_id": "09a96bf064b613b5c5abeb0731aced8d4927b5fe",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/shell/JavaSubprocessFactory.java"
    },
    {
      "type": "modify",
      "old_id": "085d87dcf589eac81bb59bdbacb2714d5f05cb84",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/shell/BUILD",
      "new_id": "fdc5d9a3957f3fc6a9467068077f71f109b0aca5",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/shell/BUILD"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8de4ea29dd6aa56b5cbf41dad19951f54d4e1a52",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/shell/JavaSubprocessFactoryTest.java"
    }
  ]
}
