fix(autopatch): Removed 6 obsolete race-detection actions (already applied upstream in c10 spec) from config.yaml, keeping only the 3 x8 #2

Merged
eabdullin merged 1 commits from agent-fix/a10-20260424-163302 into a10 2026-04-27 08:53:19 +00:00
Owner

Automated fix by autopatch agent.

Summary: Removed 6 obsolete race-detection actions (already applied upstream in c10 spec) from config.yaml, keeping only the 3 x86_64_v2/GOAMD64 actions that still need to be applied.

Root cause

The c10 spec for golang was updated upstream to already include all race-detection changes: %global race 1, %ifarch riscv64/%global race 0/%endif, and all %if %{race} wrappers around %package race, the tsan build block, go install -race std, %exclude syso lines, and %files race. The config.yaml still had a find string looking for an %ifarch aarch64/%bcond_without ignore_tests/%else/%bcond_with ignore_tests/%endif block that no longer exists in the spec (it was replaced upstream by direct %global race definitions). Additionally, 5 other race-wrapping actions were also already applied in the spec. The fix removes all 6 obsolete actions, leaving only the 3 actions for x86_64_v2 GOAMD64 support (go.env sed before %build, CFLAGS tsan with GOAMD64=v2 fallback, and export GOAMD64=v3 conditional), which are still correctly needed and applied successfully.

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 '['%ifarch aarch64', '%bcond_without ignore_tests', '%else', '%bcond_with ignore_tests', '%endif']' in /root/autopatch-tool/src/rpms-namespace/golang/golang.spec

Package: golang | Webhook branch: c10

Automated fix by autopatch agent. **Summary:** Removed 6 obsolete race-detection actions (already applied upstream in c10 spec) from config.yaml, keeping only the 3 x86_64_v2/GOAMD64 actions that still need to be applied. ### Root cause The c10 spec for golang was updated upstream to already include all race-detection changes: `%global race 1`, `%ifarch riscv64/%global race 0/%endif`, and all `%if %{race}` wrappers around %package race, the tsan build block, `go install -race std`, %exclude syso lines, and %files race. The config.yaml still had a `find` string looking for an `%ifarch aarch64/%bcond_without ignore_tests/%else/%bcond_with ignore_tests/%endif` block that no longer exists in the spec (it was replaced upstream by direct %global race definitions). Additionally, 5 other race-wrapping actions were also already applied in the spec. The fix removes all 6 obsolete actions, leaving only the 3 actions for x86_64_v2 GOAMD64 support (go.env sed before %build, CFLAGS tsan with GOAMD64=v2 fallback, and export GOAMD64=v3 conditional), which are still correctly needed and applied successfully. ### 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 '['%ifarch aarch64', '%bcond_without ignore_tests', '%else', '%bcond_with ignore_tests', '%endif']' in /root/autopatch-tool/src/rpms-namespace/golang/golang.spec ``` --- Package: `golang` | Webhook branch: `c10`
eabdullin added 1 commit 2026-04-24 16:33:04 +00:00
Removed 6 obsolete race-detection actions (already applied upstream in c10 spec) from config.yaml, keeping only the 3 x86_64_v2/GOAMD64 actions that still need to be applied.
eabdullin merged commit ba7187359e into a10 2026-04-27 08:53:19 +00:00
eabdullin deleted branch agent-fix/a10-20260424-163302 2026-04-27 08:53:19 +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#2
No description provided.