Skip to content

Fix race condition in hostap CI tests#10348

Merged
douzzer merged 1 commit intowolfSSL:masterfrom
Frauschi:hostap_fix
Apr 29, 2026
Merged

Fix race condition in hostap CI tests#10348
douzzer merged 1 commit intowolfSSL:masterfrom
Frauschi:hostap_fix

Conversation

@Frauschi
Copy link
Copy Markdown
Contributor

Fix flaky hostap-vm cache restore failures

The hwsim test jobs were intermittently failing at the kernel cache restore step with Failed to restore cache entry. Exiting as fail-on-cache-miss is set. Input key: hostap-linux-v6.12.

Root cause: the UML kernel binary was being passed from build_uml_linux to hostap_test via the GitHub Actions cache (hostap-linux-v6.12). When two PRs ran the workflow concurrently, both build_uml_linux jobs raced on the same cache key — the loser's post-step logged Unable to reserve cache with key hostap-linux-v6.12, another job may be creating this cache, and its hostap_test started a few seconds later before the winner had finished uploading, hitting a cache miss and erroring out due to fail-on-cache-miss: true.

Fix: hand the kernel between jobs as a workflow artifact (scoped to the run, no cross-run key contention) instead of via the cache. The cross-run hostap-linux-v6.12 cache is kept so repeat runs still skip the kernel rebuild; it just isn't the inter-job transport anymore. Artifact size is ~5 MB compressed with 1-day retention, so storage/bandwidth impact is negligible.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 29, 2026

MemBrowse Memory Report

No memory changes detected for:

@Frauschi Frauschi force-pushed the hostap_fix branch 2 times, most recently from bb5b926 to f2788ad Compare April 29, 2026 11:50
@douzzer douzzer merged commit 468ee9e into wolfSSL:master Apr 29, 2026
439 of 442 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants