## TL;DR

OpenTofu - The "Run e2e test for darwin_amd64" job seems to be failing on the same spot fairly frequently in recent runs after merges. If you hit the same flaky failure in your own CI on Apple Silicon runners, switch the job to darwin_arm64 instead of emulating amd64.

## Steps

1. OpenTofu's darwin_amd64 e2e CI job failing at the same spot after merges: the maintainer traced it to x86 emulation delays (running darwin_amd64 tests on arm64 runners) rather than a real product bug. If you hit the same flaky failure in your own CI on Apple Silicon runners, switch the job to darwin_arm64 instead of emulating amd64.

## When to use

You are seeing this: OpenTofu's darwin_amd64 e2e CI job failing at the same spot after merges: the maintainer traced it to x86 emulation delays (running darwin_amd64 tests on arm64 runners) rather than a real product bug. Use this skill when you run into "Darwin e2e test failure in CI".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Sources

- https://github.com/opentofu/opentofu/issues/2043
