fix(autopatch): Updated find/replace strings in the 'log --first-parent' ReplaceAction to match new patch-git.lua format that includes ' #2

Merged
eabdullin merged 1 commits from agent-fix/a10-20260519-190920 into a10 2026-05-19 19:09:51 +00:00
Owner

Automated fix by autopatch agent.

Summary: Updated find/replace strings in the 'log --first-parent' ReplaceAction to match new patch-git.lua format that includes '--no-decorate' and splits the string across two lines.

Root cause

The upstream patch-git.lua in c10 was updated to split the git log command string across two lines and add the '--no-decorate' flag: 'log --first-parent --no-decorate --no-renames --raw --pretty=fuller' .. ' --date=default > ' .. git_log_file). The a10 config was still searching for the old single-line format without '--no-decorate'. The fix was taken from the reference a10s branch which already had the correct find/replace strings.

Original error

Type: ActionNotAppliedError

Traceback (most recent call last):
  File "/root/autopatch-tool/src/webserv.py", line 77, in debrand_packages
    result = apply_modifications(
  File "/root/autopatch-tool/src/debranding.py", line 111, in apply_modifications
    config.apply_actions(rpms_working_dir + f"/{package}")
  File "/root/autopatch-tool/src/actions_handler.py", line 925, in apply_actions
    action.execute(Path(package_path))
  File "/root/autopatch-tool/src/actions_handler.py", line 472, in execute
    process_lines(
  File "/root/autopatch-tool/src/actions_handler.py", line 233, in process_lines
    raise ActionNotAppliedError(
actions_handler.ActionNotAppliedError: Action 'ReplaceAction' was not applied successfully: No changes made for '["'log --first-parent --no-renames --raw --pretty=fuller --date=default > '", '.. git_log_file)']' in /root/autopatch-tool/src/rpms-namespace/glibc/patch-git.lua

Package: glibc | Webhook branch: c10

Automated fix by autopatch agent. **Summary:** Updated find/replace strings in the 'log --first-parent' ReplaceAction to match new patch-git.lua format that includes '--no-decorate' and splits the string across two lines. ### Root cause The upstream patch-git.lua in c10 was updated to split the git log command string across two lines and add the '--no-decorate' flag: `'log --first-parent --no-decorate --no-renames --raw --pretty=fuller' .. ' --date=default > ' .. git_log_file)`. The a10 config was still searching for the old single-line format without '--no-decorate'. The fix was taken from the reference a10s branch which already had the correct find/replace strings. ### Original error **Type:** `ActionNotAppliedError` ``` Traceback (most recent call last): File "/root/autopatch-tool/src/webserv.py", line 77, in debrand_packages result = apply_modifications( File "/root/autopatch-tool/src/debranding.py", line 111, in apply_modifications config.apply_actions(rpms_working_dir + f"/{package}") File "/root/autopatch-tool/src/actions_handler.py", line 925, in apply_actions action.execute(Path(package_path)) File "/root/autopatch-tool/src/actions_handler.py", line 472, in execute process_lines( File "/root/autopatch-tool/src/actions_handler.py", line 233, in process_lines raise ActionNotAppliedError( actions_handler.ActionNotAppliedError: Action 'ReplaceAction' was not applied successfully: No changes made for '["'log --first-parent --no-renames --raw --pretty=fuller --date=default > '", '.. git_log_file)']' in /root/autopatch-tool/src/rpms-namespace/glibc/patch-git.lua ``` --- Package: `glibc` | Webhook branch: `c10`
eabdullin added 1 commit 2026-05-19 19:09:21 +00:00
Updated find/replace strings in the 'log --first-parent' ReplaceAction to match new patch-git.lua format that includes '--no-decorate' and splits the string across two lines.
eabdullin merged commit 4c318f54e7 into a10 2026-05-19 19:09:51 +00:00
eabdullin deleted branch agent-fix/a10-20260519-190920 2026-05-19 19:09:51 +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/glibc#2
No description provided.