fix(autopatch): Updated find string in the sb_key ReplaceAction to match the upstream spec's renamed CentOS secureboot key (`centossec #5

Merged
eabdullin merged 1 commits from agent-fix/a9-beta-20260824-130921 into a9-beta 2026-08-24 13:13:18 +00:00
Owner

Automated fix by autopatch agent.

Summary: Updated find string in the sb_key ReplaceAction to match the upstream spec's renamed CentOS secureboot key (centossecureboot202centossecureboot802).

Root cause

The autopatch ReplaceAction targeting the sb_key block in the spec failed because the upstream spec was updated:

  • The CentOS secureboot key centossecureboot202 was renamed to centossecureboot802 in the %if 0%{?centos} block.
  • The config's find string still referenced the old value centossecureboot202, so the multi-line match found no match and raised ActionNotAppliedError.

Fix applied:

  • Updated the find string in config.yaml (action targeting spec, replacing the sb_key block) from centossecureboot202 to centossecureboot802.
  • The replacement value (%define sb_key\t\talmalinuxsecureboot0) and all other actions remain unchanged.
  • Validated with autopatch_validate_config (config is valid) and confirmed all actions applied successfully via autopatch.

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 '['%if 0%{?centos}', '', '%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/autopatch-grub2-3dhmpzf0/rpms-namespace/grub2/SPECS/grub2.spec

Package: grub2 | Webhook branch: c9-beta

Automated fix by autopatch agent. **Summary:** Updated `find` string in the sb_key ReplaceAction to match the upstream spec's renamed CentOS secureboot key (`centossecureboot202` → `centossecureboot802`). ### Root cause The autopatch `ReplaceAction` targeting the `sb_key` block in the spec failed because the upstream spec was updated: - The CentOS secureboot key `centossecureboot202` was renamed to `centossecureboot802` in the `%if 0%{?centos}` block. - The config's `find` string still referenced the old value `centossecureboot202`, so the multi-line match found no match and raised `ActionNotAppliedError`. **Fix applied:** - Updated the `find` string in `config.yaml` (action targeting `spec`, replacing the `sb_key` block) from `centossecureboot202` to `centossecureboot802`. - The replacement value (`%define sb_key\t\talmalinuxsecureboot0`) and all other actions remain unchanged. - Validated with `autopatch_validate_config` (config is valid) and confirmed all actions applied successfully via `autopatch`. ### 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 '['%if 0%{?centos}', '', '%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/autopatch-grub2-3dhmpzf0/rpms-namespace/grub2/SPECS/grub2.spec ``` --- Package: `grub2` | Webhook branch: `c9-beta`
eabdullin added 1 commit 2026-08-24 13:09:22 +00:00
Updated `find` string in the sb_key ReplaceAction to match the upstream spec's renamed CentOS secureboot key (`centossecureboot202` → `centossecureboot802`).
eabdullin merged commit 08281a05e2 into a9-beta 2026-08-24 13:13:18 +00:00
eabdullin deleted branch agent-fix/a9-beta-20260824-130921 2026-08-24 13:13:18 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
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#5
No description provided.