)]}'
{
  "commit": "20a6ca0041379a0aebeca7fdff753416a4ab1ffa",
  "tree": "9391add8dddcf84a9b4a4809ba4fc90bf824514d",
  "parents": [
    "ad541a7cdd92c10cfb5433440a5783e492d3f032"
  ],
  "author": {
    "name": "Corentin Wallez",
    "email": "cwallez@chromium.org",
    "time": "Mon Dec 19 11:14:54 2022 +0000"
  },
  "committer": {
    "name": "Dawn LUCI CQ",
    "email": "dawn-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Mon Dec 19 11:14:54 2022 +0000"
  },
  "message": "generator_lib.py: Fix exception when racing for dir creation.\n\nThe generator_lib.py processing of file renders would check that the\noutput directory doesn\u0027t exist and if needed, would create it. However\nby default makedirs errors if the path already exists. This caused\nissues when multiple generator_lib.py generators with the same output\ndir would run in parallel in builds, because there can be a race where:\n\n - GeneratorA: Check os.path.exists -\u003e returns False\n - GeneratorB: Check os.path.exists -\u003e returns False\n - GeneratorB: os.makedirs -\u003e Ok\n - GeneratorA: os.makedirs -\u003e Exception, fails the build.\n\nInstead use os.makedirs(exist_ok\u003dTrue) inconditionally to remove this\nracy behavior.\n\nBug: None\nChange-Id: I5cb401a1df11a3640faeea94c15cb54236edc05a\nReviewed-on: https://dawn-review.googlesource.com/c/dawn/+/114521\nCommit-Queue: Corentin Wallez \u003ccwallez@chromium.org\u003e\nReviewed-by: Ben Clayton \u003cbclayton@google.com\u003e\nKokoro: Kokoro \u003cnoreply+kokoro@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dbff07e27bfe20c32c85bf4aa3e21611cf58c804",
      "old_mode": 33188,
      "old_path": "generator/generator_lib.py",
      "new_id": "c198722f090cccde172693644026b79677ee9d5c",
      "new_mode": 33188,
      "new_path": "generator/generator_lib.py"
    }
  ]
}
