-
Notifications
You must be signed in to change notification settings - Fork 804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert "[opentitantool] Refuse downgrading HyperDebug firmware" #25934
Conversation
What's the rationale of making the change? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change LGTM and I think it probably makes sense to use exact version, although I think
- before/after merging this change, keep HyperDebug firmware in sync (we haven't done so already I think)
- In the PR body and commit message, articulate the rationale of making this change.
This reverts commit 7a0134a, such that opentitantool no longer requires the `--force` switch in order to downgrade firmware with `opentitantool transport update-firmware`. Instead, opentitantool will be back to the original behavior of overwriting firmware in any case when the version number does not match exactly. The original reason for not downgrading was that our branches had diverged, such that they had different firmware versions, resulting in CI machines constantly upgrading/downgrading as CI runs from different branches were scheduled. PR lowRISC#25917, however introduced a faulty HyperDebug firmware with never version number, which is now on a number of CI machines, and will not be downgraded automatically, with the result that "innocent" other PRs will have CI failures. I think it is clear that we should avoid such excessive flashing by keeping the HyperDebug firmware version in sync between branches. (We do not need to keep all of opentitantool logic in sync, just the built-in firmware version.) For now, in order to avoid CI failures, we should merge this PR, and accept some upgrading/downgrading. Change-Id: I57739777ab3d86fa7e0375834cf9140e8e6ac984 Signed-off-by: Jes B. Klinke <[email protected]>
6339bbe
to
2667a3a
Compare
I have updated the commit and PR descriptions to mention that PR #25917 introduced flawed HyperDebug firmware with newer version number, which is a problem as once it has run on CI, those machines will retain the newer buggy version, causing CI failures for other unrelated PRs, unless this PR is merged. |
Successfully created backport PR for |
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin integrated_dev
git worktree add -d .worktree/backport-25934-to-integrated_dev origin/integrated_dev
cd .worktree/backport-25934-to-integrated_dev
git switch --create backport-25934-to-integrated_dev
git cherry-pick -x 2667a3a2469bfbd78ddeab2a021bf79e700e83d1 |
Successfully created backport PR for |
integrated_dev isn't active so doesn't need backporting |
This reverts commit 7a0134a, such that opentitantool no longer requires the
--force
switch in order to downgrade firmware withopentitantool transport update-firmware
. Instead, opentitantool will be back to the original behavior of overwriting firmware in any case when the version number does not match exactly.The original reason for not downgrading was that our branches had diverged, such that they had different firmware versions, resulting in CI machines constantly upgrading/downgrading as CI runs from different branches were scheduled.
PR #25917, however introduced a faulty HyperDebug firmware with never version number, which is now on a number of CI machines, and will not be downgraded automatically, with the result that "innocent" other PRs will have CI failures.
I think it is clear that we should avoid such excessive flashing by keeping the HyperDebug firmware version in sync between branches. (We do not need to keep all of opentitantool logic in sync, just the built-in firmware version.) For now, in order to avoid CI failures, we should merge this PR, and accept some upgrading/downgrading.