fix(autopatch): Updated the find string in the replace action from redhatsecureboot802 to redhatsecureboot803 to match the updated #4

Merged
eabdullin merged 1 commit from agent-fix/a9-beta-20260903-114219 into a9-beta 2026-09-03 12:02:27 +00:00
Owner

Automated fix by autopatch agent.

Summary: Updated the find string in the replace action from redhatsecureboot802 to redhatsecureboot803 to match the updated key name in the upstream spec.

Root cause

The autopatch failed because the upstream spec was updated to use a newer Red Hat secure boot key name:

  • The replace action searched for redhatsecureboot802, but the spec's %define sb_key line now references redhatsecureboot803
  • The key suffix was bumped from 802803 upstream, causing the find to match nothing and raising an ActionNotAppliedError

The fix updates find: "redhatsecureboot802" to find: "redhatsecureboot803" in config.yaml, preserving the intent of replacing the Red Hat secure boot key name with almalinuxsecureboot0.

After the fix, autopatch successfully applied all actions and the spec's %define sb_key line now reads almalinuxsecureboot0 as expected.

Original error

Type: ActionNotAppliedError

Traceback (most recent call last):
  File "/root/autopatch-tool/src/webserv.py", line 95, in debrand_packages
    result = apply_modifications(
  File "/root/autopatch-tool/src/debranding.py", line 138, in apply_modifications
    config.apply_actions(rpms_working_dir + f"/{package}")
  File "/root/autopatch-tool/src/actions_handler.py", line 938, in apply_actions
    action.execute(Path(package_path))
  File "/root/autopatch-tool/src/actions_handler.py", line 475, in execute
    process_lines(
  File "/root/autopatch-tool/src/actions_handler.py", line 236, in process_lines
    raise ActionNotAppliedError(
actions_handler.ActionNotAppliedError: Action 'ReplaceAction' was not applied successfully: No changes made for '['redhatsecureboot802']' in /root/autopatch-tool/src/autopatch-fwupd-my9ly06j/rpms-namespace/fwupd/SPECS/fwupd.spec

Package: fwupd | Webhook branch: c9-beta

Automated fix by autopatch agent. **Summary:** Updated the `find` string in the replace action from `redhatsecureboot802` to `redhatsecureboot803` to match the updated key name in the upstream spec. ### Root cause The autopatch failed because the upstream spec was updated to use a newer Red Hat secure boot key name: - The replace action searched for `redhatsecureboot802`, but the spec's `%define sb_key` line now references `redhatsecureboot803` - The key suffix was bumped from `802` → `803` upstream, causing the `find` to match nothing and raising an `ActionNotAppliedError` The fix updates `find: "redhatsecureboot802"` to `find: "redhatsecureboot803"` in `config.yaml`, preserving the intent of replacing the Red Hat secure boot key name with `almalinuxsecureboot0`. After the fix, autopatch successfully applied all actions and the spec's `%define sb_key` line now reads `almalinuxsecureboot0` as expected. ### Original error **Type:** `ActionNotAppliedError` ``` Traceback (most recent call last): File "/root/autopatch-tool/src/webserv.py", line 95, in debrand_packages result = apply_modifications( File "/root/autopatch-tool/src/debranding.py", line 138, in apply_modifications config.apply_actions(rpms_working_dir + f"/{package}") File "/root/autopatch-tool/src/actions_handler.py", line 938, in apply_actions action.execute(Path(package_path)) File "/root/autopatch-tool/src/actions_handler.py", line 475, in execute process_lines( File "/root/autopatch-tool/src/actions_handler.py", line 236, in process_lines raise ActionNotAppliedError( actions_handler.ActionNotAppliedError: Action 'ReplaceAction' was not applied successfully: No changes made for '['redhatsecureboot802']' in /root/autopatch-tool/src/autopatch-fwupd-my9ly06j/rpms-namespace/fwupd/SPECS/fwupd.spec ``` --- Package: `fwupd` | Webhook branch: `c9-beta`
Updated the `find` string in the replace action from `redhatsecureboot802` to `redhatsecureboot803` to match the updated key name in the upstream spec.
eabdullin merged commit 3c70733ec3 into a9-beta 2026-09-03 12:02:27 +00:00
eabdullin deleted branch agent-fix/a9-beta-20260903-114219 2026-09-03 12:02:28 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
autopatch/fwupd!4
No description provided.