fix(autopatch): Updated the patch-git.lua git-log replace action to match the new upstream git_log_format_options call, adopting the #4

Merged
eabdullin merged 1 commit from agent-fix/a10-20261008-072304 into a10 2026-10-08 07:36:43 +00:00

Automated fix by autopatch agent.

Summary: Updated the patch-git.lua git-log replace action to match the new upstream git_log_format_options call, adopting the fix already present on a10s.

Root cause

Upstream patch-git.lua refactored the git log invocation:

  • Old: 'log --first-parent --no-decorate --no-renames --raw --pretty=fuller' .. ' --date=default > ' .. git_log_file)
  • New: 'log --raw ' .. git_log_format_options .. ' > ' .. git_log_file) (options moved into the git_log_format_options local)

The a10s reference config already targets the new form, so the same find/replace was copied to a10. The intent is unchanged: the generated git log is restricted to the upstream log_branch (inserted before > git_log_file), so AlmaLinux-specific commits are excluded from the changelog/release calculation.

All other a10-specific actions (x86_64_v2 target override, import UBI fallback parser, commented-out generate_files()) still apply. autopatch_validate_config passes and autopatch applies the full config cleanly to the c10 sources.

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 477, in execute
    process_lines(
  File "/root/autopatch-tool/src/actions_handler.py", line 238, in process_lines
    raise ActionNotAppliedError(
actions_handler.ActionNotAppliedError: Action 'ReplaceAction' was not applied successfully: No changes made for '["'log --first-parent --no-decorate --no-renames --raw --pretty=fuller'", ".. ' --date=default > ' .. git_log_file)"]' in /root/autopatch-tool/src/autopatch-glibc-0hv8l9k_/rpms-namespace/glibc/patch-git.lua

Package: glibc | Webhook branch: c10

Automated fix by autopatch agent. **Summary:** Updated the `patch-git.lua` git-log replace action to match the new upstream `git_log_format_options` call, adopting the fix already present on `a10s`. ### Root cause Upstream `patch-git.lua` refactored the git log invocation: - Old: `'log --first-parent --no-decorate --no-renames --raw --pretty=fuller' .. ' --date=default > ' .. git_log_file)` - New: `'log --raw ' .. git_log_format_options .. ' > ' .. git_log_file)` (options moved into the `git_log_format_options` local) The `a10s` reference config already targets the new form, so the same `find`/`replace` was copied to `a10`. The intent is unchanged: the generated git log is restricted to the upstream `log_branch` (inserted before `> git_log_file`), so AlmaLinux-specific commits are excluded from the changelog/release calculation. All other `a10`-specific actions (x86_64_v2 target override, `import UBI` fallback parser, commented-out `generate_files()`) still apply. `autopatch_validate_config` passes and `autopatch` applies the full config cleanly to the `c10` sources. ### 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 477, in execute process_lines( File "/root/autopatch-tool/src/actions_handler.py", line 238, in process_lines raise ActionNotAppliedError( actions_handler.ActionNotAppliedError: Action 'ReplaceAction' was not applied successfully: No changes made for '["'log --first-parent --no-decorate --no-renames --raw --pretty=fuller'", ".. ' --date=default > ' .. git_log_file)"]' in /root/autopatch-tool/src/autopatch-glibc-0hv8l9k_/rpms-namespace/glibc/patch-git.lua ``` --- Package: `glibc` | Webhook branch: `c10`
Updated the `patch-git.lua` git-log replace action to match the new upstream `git_log_format_options` call, adopting the fix already present on `a10s`.
eabdullin deleted branch agent-fix/a10-20261008-072304 2026-10-08 07:36:44 +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/glibc!4
No description provided.