fix(autopatch): Updated the find string in the pesign_name_0 replace action to match the new CentOS secure-boot cert name `centossec #8

Merged
eabdullin merged 1 commits from agent-fix/a10s-20260706-074231 into a10s 2026-07-06 07:43:03 +00:00
Owner

Automated fix by autopatch agent.

Summary: Updated the find string in the pesign_name_0 replace action to match the new CentOS secure-boot cert name centossecureboot801 (was centossecureboot201).

Root cause

The upstream c10s spec updated the CentOS secure-boot certificate name in the pesign_name_0 block:

  • Old: %define pesign_name_0 centossecureboot201
  • New: %define pesign_name_0 centossecureboot801

The ReplaceAction that collapses the entire %if 0%{?centos} / %else / %endif block into %define pesign_name_0 almalinuxsecureboot0 could no longer find its find string because it still referenced the old cert name centossecureboot201.

The fix updates the find string to centossecureboot801, matching the current spec. The replacement intent — setting pesign_name_0 to almalinuxsecureboot0 for all architectures — is preserved. After the fix the resulting spec correctly contains %define pesign_name_0 almalinuxsecureboot0.

Note: the reference branch (a10) had the same stale find string and did not contain a pre-existing fix.

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 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}', '%define pesign_name_0 centossecureboot201', '%else', '%ifarch x86_64 aarch64', '%define pesign_name_0 redhatsecureboot801', '%endif', '%ifarch s390x', '%define pesign_name_0 redhatsecureboot302', '%endif', '%ifarch ppc64le', '%define pesign_name_0 redhatsecureboot701', '%endif', '%endif']' in /root/autopatch-tool/src/rpms-namespace/kernel/kernel.spec

Package: kernel | Webhook branch: c10s

Automated fix by autopatch agent. **Summary:** Updated the `find` string in the `pesign_name_0` replace action to match the new CentOS secure-boot cert name `centossecureboot801` (was `centossecureboot201`). ### Root cause The upstream `c10s` spec updated the CentOS secure-boot certificate name in the `pesign_name_0` block: - Old: `%define pesign_name_0 centossecureboot201` - New: `%define pesign_name_0 centossecureboot801` The `ReplaceAction` that collapses the entire `%if 0%{?centos}` / `%else` / `%endif` block into `%define pesign_name_0 almalinuxsecureboot0` could no longer find its `find` string because it still referenced the old cert name `centossecureboot201`. The fix updates the `find` string to `centossecureboot801`, matching the current spec. The replacement intent — setting `pesign_name_0` to `almalinuxsecureboot0` for all architectures — is preserved. After the fix the resulting spec correctly contains `%define pesign_name_0 almalinuxsecureboot0`. Note: the reference branch (`a10`) had the same stale `find` string and did not contain a pre-existing fix. ### 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 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}', '%define pesign_name_0 centossecureboot201', '%else', '%ifarch x86_64 aarch64', '%define pesign_name_0 redhatsecureboot801', '%endif', '%ifarch s390x', '%define pesign_name_0 redhatsecureboot302', '%endif', '%ifarch ppc64le', '%define pesign_name_0 redhatsecureboot701', '%endif', '%endif']' in /root/autopatch-tool/src/rpms-namespace/kernel/kernel.spec ``` --- Package: `kernel` | Webhook branch: `c10s`
eabdullin added 1 commit 2026-07-06 07:42:32 +00:00
Updated the `find` string in the `pesign_name_0` replace action to match the new CentOS secure-boot cert name `centossecureboot801` (was `centossecureboot201`).
eabdullin merged commit 9abfd0a039 into a10s 2026-07-06 07:43:03 +00:00
eabdullin deleted branch agent-fix/a10s-20260706-074231 2026-07-06 07:43:03 +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/kernel#8
No description provided.