)]}'
{
  "commit": "8edcbde47573f1864ee11bc8a3c76d9a6610d699",
  "tree": "76bdafbd7e1677a8c3e9f67112bd1b2c25a4d7ae",
  "parents": [
    "8c6d3e8b5015a249c625720c182ebf5942ba1b9c"
  ],
  "author": {
    "name": "Kenneth Lamar",
    "email": "kennethlamar@google.com",
    "time": "Thu Nov 12 23:28:45 2026 +0000"
  },
  "committer": {
    "name": "mdb:gbmc-git-owners",
    "email": "superproject-auto-update@invalid",
    "time": "Wed Nov 25 15:02:02 2026 -0800"
  },
  "message": "pldm: pldm-scripts: Fix filter and sibling abort\n\nA caller that wants only some of the matching devices updated writes\ntheir EIDs to /tmp/pldm-images/eid_filter.txt and then runs\npldm_update_fw.sh. The script deleted that file while it cleared\nleftover bundles, so pldmd updated every matching device. The script\nalso stopped waiting at the first failed update step and cancelled\nevery device, including those still updating. With an ownership\nbundle the NICs that are already claimed fail the apply step early,\nso the unclaimed ones never finished.\n\nKeep the filter file during cleanup. Print a NOTE with the listed\nEIDs before staging and before the final SUCCESS line, because a\nfilter left behind by an earlier caller restricts the update just the\nsame. End the wait early only once every matched device has completed\nor failed a step. If the matched devices are unknown, fall back to\nthe stall detector, which asks every PLDM endpoint whether it is\nstill busy. After a failed activation, send CancelUpdate only to the\ndevices that pldmd did not report as updated. A retry still cancels\nwhatever is in update mode when it begins.\n\nSmaller fixes in pldm_update_fw.sh:\n\n- Measure elapsed time from /proc/uptime. The transmit rate that\n  tells a transfer from idle traffic was divided by the nominal poll\n  period, so a slow poll looked like a transfer. bash\u0027s SECONDS is\n  not used because it follows the wall clock, which jumps when a BMC\n  without an RTC first syncs its time.\n- Work without the timeout command, which some BusyBox builds omit.\n  The fallback watchdog returns 124 on expiry, leaves no process\n  behind and keeps Ctrl-C working.\n- Find PLDM endpoints through mctpd, as pldmd does, instead of\n  through MCTPReactor.\n- Accept --force after the bundle path. An unknown option or a\n  second positional argument is now an error wherever it appears.\n- Unlock explicitly on exit. A process that inherited the lock\n  descriptor could keep the lock held and make the next run fail.\n\npldm_list_fw_version.sh and pldm_dump_fw_status.sh:\n\n- Treat only leaf endpoint objects as endpoints, not association\n  subpaths such as /endpoints/\u003ceid\u003e/configured_by.\n- Still list an endpoint that has no configured_by association or no\n  active version string.\n- Match PLDM (type 1) exactly in SupportedMessageTypes. The old grep\n  for \u00271,\u0027 missed a single or last entry and matched 11 and 21.\n\nTested: one self-checking suite, 14 of 14 checks passed on each of\ntwo platforms. Both ran signed development image\ngbmc-release-11.24.20.37 with these scripts installed. Its pldmd\ncarries changes that are not merged yet. Each paste holds the verbose\noutput followed by the suite itself.\n\nplatform39 (4 NIC SMA MCUs, 8 NICs, 15 PLDM endpoints):\nhttps://paste.googleplex.com/6755399437425030\nplatform31 (2 NIC SMA MCUs, 4 NICs, 6 PLDM endpoints):\nhttps://paste.googleplex.com/6755399437425204\n\nWith the real pldmd and real devices (the SMA MCUs on platform39,\nthe NICs on platform31):\n- A forced update with 2 of the 4 EIDs in eid_filter.txt updated\n  those 2 and skipped the other 2. The file survived the cleanup\n  before staging, three rejected attempts and SIGTERM during an\n  update, and the NOTE lines were printed.\n- \"\u003cbundle\u003e --force\" re-flashed one device. An unknown option after\n  the path and a second path were rejected.\n- Endpoint discovery returned exactly the PLDM endpoints, also with\n  MCTPReactor stopped.\n- With a process still holding a copy of the lock descriptor, the\n  lock was free after the run and a second run started. A control\n  shows that closing the descriptor alone leaves the lock held.\n- Both listing scripts listed exactly the PLDM endpoints that mctpd\n  reports.\n\nWith mock busctl, journalctl and pldmtool on the BMC:\n- The ownership flow of the calling shell library, with 6 devices\n  failing the apply step and 2 completing: the filter stayed in\n  place through three attempts, the 2 got no CancelUpdate and the\n  library returned success.\n- A pldmd that leaves a failed activation in Activating: one failing\n  device ends the attempt at the first poll, with two devices the\n  wait lasts until the second has finished, and with the matched\n  devices unknown the stall detector ends the attempt.\n- Slow polls no longer count idle traffic as a transfer.\n- Without the timeout command, a hung command ends on budget with\n  status 124 and nothing is left behind.\n- The listing scripts against endpoints with association subpaths,\n  types [1], [0,1] and [0,11,21], a missing association, a missing\n  version string and an endpoint on network 2.\n\nNot tested: a real partial failure on hardware. On platform31, two\nNICs do not answer GetStatus until their first update since\npower-on, so the baseline check accepted them without a status.\n\nshellcheck reports nothing on all three scripts.\n\nFusion-Link: fusion2,n/a\nGoogle-Bug-Id: 585096554\nChange-Id: Id8363ecbc742c947a67b1b52b1eb5fa7ae9f1ff6\nSigned-off-by: Kenneth Lamar \u003ckennethlamar@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "70b8740a9411ff7818a05c9d39020f4a105ab05b",
      "old_mode": 57344,
      "old_path": "meta-gbmc-staging",
      "new_id": "54241e3dcee4f01c14bd7a799dd6f65c2a94a501",
      "new_mode": 57344,
      "new_path": "meta-gbmc-staging"
    }
  ]
}
