Skip to content

flashy-f94483e

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Jan 18:21
Add compatibility checking for flash procedure

Summary:
We recently encounter issues where minipack3n cannot be flashed. Turned out there is no flash procedure found for this platform. This is because we only have "acctonbmc" flash procedure. This happens because we sync the configerator and create the mapping based on build_name

One way to solve this issue is also to check the compatible mapping of the original build name, and check whether the compatible platform has any flash procedure

Another long term solution probably also sync the mapping between `acctonbmc -> ["minipack3n", "minipack3ba", "wedge800"]`. For now, I propose to use this simple solution

Test Plan:
# unit test
{P2141569386}

 ---
# functional test
- build flashy locally
{P2141574929}
- run oobgrader using flashy
```
 oobgrader --host fboss329039396.snc1.facebook.com --wait --ui --method fbpkg --flashy-tag 034f55c --force --allow-downgrade
```

https://fburl.com/scuba/openbmc_upgrades/7selm40a

Reviewed By: kawmarco

Differential Revision: D91321314

fbshipit-source-id: 8dfbab6e05cb0c51f34b541031b6cd3faaf41dd4