)]}'
{
  "commit": "07acc9ad56cf0a71f4b2c7bcf48073e49ff70d17",
  "tree": "6d80154c718bfc947aa13b3e80d688d11815853f",
  "parents": [
    "55afc88fc110e933cf54b79f701240168f1f0f49"
  ],
  "author": {
    "name": "David Sanderson",
    "email": "32687193+dws@users.noreply.github.com",
    "time": "Sun Nov 15 13:59:29 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Sun Nov 15 13:59:29 2026 +0000"
  },
  "message": "fix: wrap formatwarning() to use relative paths (#4441)\n\nTo help eliminate nondeterministic output, particularly when remotely\nexecuting, we here wrap Python\u0027s formatwarning() to cause it to produce\npaths relative to the current directory as of the launch of the\nexecutable.\n\nI\u0027m proposing this here, since I\u0027m not sure whether this change in\nbehavior would be accepted in core Python, since it\u0027s intended to help\nproduce deterministic output under remote execution under Bazel. We\u0027ve\nbeen patching this into our rules_python for some time and have not\nobserved any problems with it.\n\n---------\n\nCo-authored-by: Ignas Anikevicius \u003c240938+aignas@users.noreply.github.com\u003e",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8180fa4ece30df66b09778c30b058f01c583e2cb",
      "new_mode": 33188,
      "new_path": "news/4441.fixed.md"
    },
    {
      "type": "modify",
      "old_id": "f445ad2b6a70db0f1d38a823d8dfd3ae78efa12e",
      "old_mode": 33188,
      "old_path": "python/private/stage2_bootstrap_template.py",
      "new_id": "1094b36704985f092dc73e6b6b08d3102256d393",
      "new_mode": 33188,
      "new_path": "python/private/stage2_bootstrap_template.py"
    },
    {
      "type": "modify",
      "old_id": "f5c8c1fe82e10c2ec54bce4d0c1aebf66675761d",
      "old_mode": 33188,
      "old_path": "tests/bootstrap_impls/BUILD.bazel",
      "new_id": "eda0e73161562f52af2f44592a19b2bd413741da",
      "new_mode": 33188,
      "new_path": "tests/bootstrap_impls/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "0ae187616173966ae1c8abda2200f55a136ca267",
      "new_mode": 33188,
      "new_path": "tests/bootstrap_impls/relative_formatwarning_test.py"
    }
  ]
}
