)]}'
{
  "commit": "2bd928123ad46f5b96970f537af073e0acb5b654",
  "tree": "691744dfa02114f933d5728593b70485f6f6785b",
  "parents": [
    "42b7e6194d03510c472d5e22daf2e876f95a4048"
  ],
  "author": {
    "name": "Régis Desgroppes",
    "email": "rdesgroppes@gmail.com",
    "time": "Tue Feb 10 05:49:22 2026 +0100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Feb 09 23:49:22 2026 -0500"
  },
  "message": "fix(test): make `//tests/mappings/filter_directory` work on Windows\n\nThe `filter_directory` tests were failing on Windows:\n```\nERROR: test_directory_structure_matches_global (__main__.DirectoryStructureTest.test_directory_structure_matches_global)\n[...]\n    os.path.isdir(real_directory_root),\n    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n[...]\nTypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType\n```\n\nThis was because `Rlocation()` expects POSIX-style paths (forward\nslashes), but `os.path.join()` produces backslashes on Windows.\n\nAfter fixing it, a second error appeared:\n```\nFAIL: test_directory_structure_matches_global (__main__.DirectoryStructureTest.test_directory_structure_matches_global)\nAssertionError: Items in the first set but not the second:\n\u0027extra/a\u0027\n\u0027extra/subdir/c\u0027\n\u0027extra/b\u0027\n\u0027extra/subdir/d\u0027\nItems in the second set but not the first:\n\u0027extra\\\\subdir\\\\c\u0027\n\u0027extra\\\\a\u0027\n\u0027extra\\\\b\u0027\n\u0027extra\\\\subdir\\\\d\u0027 : Directory structure mismatch\n```\n\nThis was because paths collected via `os.walk()` also produce\nbackslashes on Windows against expected paths returned by `Rlocation`\nthat always use forward slashes.\n\nThe change consists in leveraging `pathlib` for that purpose:\n`Path().as_posix()`, `Path.rglob()` and `Path.relative_to()`.\n\nThis enables the 9 `filter_directory` tests in Windows CI.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "13056f421d2f1e993ca5ab722400be9102e8ee92",
      "old_mode": 33188,
      "old_path": ".bazelci/tests.yml",
      "new_id": "c1e3b5e92cf53e89031f196e6b576bbf9a292b1b",
      "new_mode": 33188,
      "new_path": ".bazelci/tests.yml"
    },
    {
      "type": "modify",
      "old_id": "cc935cfde17c818639fd944d68bbb274a3cf251d",
      "old_mode": 33188,
      "old_path": "tests/mappings/filter_directory/inspect_directory.py.tpl",
      "new_id": "96487e3d51f1a6824cbdd56c3480d47ef527c388",
      "new_mode": 33188,
      "new_path": "tests/mappings/filter_directory/inspect_directory.py.tpl"
    }
  ]
}
