fix(autopatch): Updated delete_line find string: changed 'centossecureboot202' to 'centossecureboot802' to match the updated secureboot #4

Merged
eabdullin merged 1 commit from agent-fix/a10s-20260606-014320 into a10s 2026-06-08 08:34:10 +00:00
Owner

Automated fix by autopatch agent.

Summary: Updated delete_line find string: changed 'centossecureboot202' to 'centossecureboot802' to match the updated secureboot key name in the c10s spec

Root cause

The upstream grub2 spec on c10s was updated to use 'centossecureboot802' instead of 'centossecureboot202' for the CentOS secureboot key. The DeleteAction was failing because the config's delete_line block still referenced the old key name. The reference branch (a10) had the same outdated value, so the fix was identified by inspecting the actual spec file. Updating the find string to match 'centossecureboot802' resolved the error and all autopatch actions now apply successfully.

Original error

Type: ActionNotAppliedError

Traceback (most recent call last):
  File "/root/autopatch-tool/src/webserv.py", line 89, in debrand_packages
    result = apply_modifications(
  File "/root/autopatch-tool/src/debranding.py", line 120, 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 805, in execute
    process_lines(file_path, entry.target, find_lines, "", -1)
  File "/root/autopatch-tool/src/actions_handler.py", line 236, in process_lines
    raise ActionNotAppliedError(
actions_handler.ActionNotAppliedError: Action 'DeleteAction' was not applied successfully: No changes made for '['%ifarch x86_64 aarch64 ppc64le', '%define sb_key\t\tcentossecureboot202', '%endif', '%else', '%ifarch x86_64 aarch64', '%define sb_key\t\tredhatsecureboot802', '%endif', '%ifarch ppc64le', '%define sb_key\t\tredhatsecureboot702', '%endif', '', '%endif']' in /root/autopatch-tool/src/rpms-namespace/grub2/grub2.spec

Package: grub2 | Webhook branch: c10s

Automated fix by autopatch agent. **Summary:** Updated delete_line find string: changed 'centossecureboot202' to 'centossecureboot802' to match the updated secureboot key name in the c10s spec ### Root cause The upstream grub2 spec on c10s was updated to use 'centossecureboot802' instead of 'centossecureboot202' for the CentOS secureboot key. The DeleteAction was failing because the config's delete_line block still referenced the old key name. The reference branch (a10) had the same outdated value, so the fix was identified by inspecting the actual spec file. Updating the find string to match 'centossecureboot802' resolved the error and all autopatch actions now apply successfully. ### Original error **Type:** `ActionNotAppliedError` ``` Traceback (most recent call last): File "/root/autopatch-tool/src/webserv.py", line 89, in debrand_packages result = apply_modifications( File "/root/autopatch-tool/src/debranding.py", line 120, 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 805, in execute process_lines(file_path, entry.target, find_lines, "", -1) File "/root/autopatch-tool/src/actions_handler.py", line 236, in process_lines raise ActionNotAppliedError( actions_handler.ActionNotAppliedError: Action 'DeleteAction' was not applied successfully: No changes made for '['%ifarch x86_64 aarch64 ppc64le', '%define sb_key\t\tcentossecureboot202', '%endif', '%else', '%ifarch x86_64 aarch64', '%define sb_key\t\tredhatsecureboot802', '%endif', '%ifarch ppc64le', '%define sb_key\t\tredhatsecureboot702', '%endif', '', '%endif']' in /root/autopatch-tool/src/rpms-namespace/grub2/grub2.spec ``` --- Package: `grub2` | Webhook branch: `c10s`
Updated delete_line find string: changed 'centossecureboot202' to 'centossecureboot802' to match the updated secureboot key name in the c10s spec
eabdullin deleted branch agent-fix/a10s-20260606-014320 2026-06-08 08:34:11 +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/grub2!4
No description provided.