fix(autopatch): Replaced broken 'export GOAMD64=v3' action with '%global goamd64 v3' macro replacement, adapting the a10s reference conf #4

Merged
eabdullin merged 1 commits from agent-fix/a10-20260601-050203 into a10 2026-06-01 08:20:38 +00:00
Owner

Automated fix by autopatch agent.

Summary: Replaced broken 'export GOAMD64=v3' action with '%global goamd64 v3' macro replacement, adapting the a10s reference config fix for the a10 branch.

Root cause

The c10 spec was updated to use '%global goamd64 v3' / '%global goppc64 power9' macros instead of literal 'export GOAMD64=v3' statements. The old config tried to find the literal export string (which no longer exists), causing ActionNotAppliedError. The fix (taken from the a10s reference branch) replaces the '%global goamd64 v3' block with an '%ifarch x86_64_v2' conditional, and also removes the now-obsolete '%build' sed-command action. The CFLAGS action was retained with count=1 (only one occurrence of GOAMD64=v3 exists in the spec).

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 '['export GOAMD64=v3']' in /root/autopatch-tool/src/rpms-namespace/golang/golang.spec

Package: golang | Webhook branch: c10

Automated fix by autopatch agent. **Summary:** Replaced broken 'export GOAMD64=v3' action with '%global goamd64 v3' macro replacement, adapting the a10s reference config fix for the a10 branch. ### Root cause The c10 spec was updated to use '%global goamd64 v3' / '%global goppc64 power9' macros instead of literal 'export GOAMD64=v3' statements. The old config tried to find the literal export string (which no longer exists), causing ActionNotAppliedError. The fix (taken from the a10s reference branch) replaces the '%global goamd64 v3' block with an '%ifarch x86_64_v2' conditional, and also removes the now-obsolete '%build' sed-command action. The CFLAGS action was retained with count=1 (only one occurrence of GOAMD64=v3 exists in the spec). ### 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 '['export GOAMD64=v3']' in /root/autopatch-tool/src/rpms-namespace/golang/golang.spec ``` --- Package: `golang` | Webhook branch: `c10`
eabdullin added 1 commit 2026-06-01 05:02:04 +00:00
Replaced broken 'export GOAMD64=v3' action with '%global goamd64 v3' macro replacement, adapting the a10s reference config fix for the a10 branch.
eabdullin merged commit c29ffaade6 into a10 2026-06-01 08:20:38 +00:00
eabdullin deleted branch agent-fix/a10-20260601-050203 2026-06-01 08:20:38 +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/golang#4
No description provided.