)]}'
{
  "commit": "cb26ad447e813c53c6a8130b4ca4a5a1410f47b7",
  "tree": "c3d9cc86280fc98c50a62d178485ad30ea8a0bff",
  "parents": [
    "53d3ecdf0231d68fda45f128f65654b5fa722e03"
  ],
  "author": {
    "name": "Christopher R. Johnson",
    "email": "crjohns@google.com",
    "time": "Wed May 13 05:32:42 2026 -0700"
  },
  "committer": {
    "name": "Brian Bosak",
    "email": "bbosak@google.com",
    "time": "Wed May 13 05:32:42 2026 -0700"
  },
  "message": "[archivist] Fix tests for CTF\n\nThis test has been mysteriously failing in CTF but passing at HEAD for\nthe last few API rolls, and we now know why.\n\nAt API level HEAD we default the format for Inspect reads to CBOR which\nis more efficient, but not yet formally stabilized. At levels \u003c HEAD,\nhowever, we default to JSON which is less space efficient.\n\nThe truncation test sets the maximum byte size to 4000 bytes, which\ngives 1333 bytes for each of the 3 components that are being read. This\nhappens to fit the CBOR content, but not the JSON content. Whenever we\nroll a new API level we create a version of this test that requests the\nJSON content which becomes fully truncated (similar to the case where we\nset the maximum size to 1 byte).\n\nThis change creates a new method on the ArchiveReader to set the read\nformat. If that method is not called we revert to the default FORMAT as\nbefore. The test now includes a new read that checks that whatever\nnumber we pick can fit a JSON response too, and we set the maximum\naggregated size to 8000 instead of 4000 since that is enough to fit\neither JSON or CBOR.\n\nFixed: 383560524\nChange-Id: Ibe75ce0532f0c4dc161d1c2ae0a723d416ef4b29\nReviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1609931\nReviewed-by: Brian Bosak \u003cbbosak@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a59317c7710332d26345adf83723a1e145823f58",
      "old_mode": 33188,
      "old_path": "src/diagnostics/archivist/tests/integration/realm_factory/meta/realm_factory.cml",
      "new_id": "e34d99506d04cb531fcea70d9807ed6373a81b65",
      "new_mode": 33188,
      "new_path": "src/diagnostics/archivist/tests/integration/realm_factory/meta/realm_factory.cml"
    },
    {
      "type": "modify",
      "old_id": "43cdc1eb7595a712869a206a3f5fd191ea29b716",
      "old_mode": 33188,
      "old_path": "src/diagnostics/archivist/tests/integration/test_cases/src/inspect/truncation.rs",
      "new_id": "a3c4c5a59fe8fd5f15ab0028db184dbbe3a0b0b9",
      "new_mode": 33188,
      "new_path": "src/diagnostics/archivist/tests/integration/test_cases/src/inspect/truncation.rs"
    },
    {
      "type": "modify",
      "old_id": "0013f12a10cb2b175218aeda6d5fc47886828505",
      "old_mode": 33188,
      "old_path": "src/lib/diagnostics/reader/rust/src/lib.rs",
      "new_id": "1a503cd28da5cf94dbfb7f96dceb705ec063130c",
      "new_mode": 33188,
      "new_path": "src/lib/diagnostics/reader/rust/src/lib.rs"
    }
  ]
}
