Skip to content

Test Fix: flakiness fix (hopefully) for ocsp-stapling scripts#10049

Open
sebastian-carpenter wants to merge 1 commit intowolfSSL:masterfrom
sebastian-carpenter:ocsp-stapling-unflaky
Open

Test Fix: flakiness fix (hopefully) for ocsp-stapling scripts#10049
sebastian-carpenter wants to merge 1 commit intowolfSSL:masterfrom
sebastian-carpenter:ocsp-stapling-unflaky

Conversation

@sebastian-carpenter
Copy link
Contributor

Description

scripts/ocsp-stapling* tends to fail randomly. This seems to be either failures to get a port or (more probably) the ready file is not written/checked.

Added probing to test if port has been opened by process.

Added missing readyfile checks.

Added ready file creation when using udp.

Testing

Ran the ocsp-stapling tests. They seem to work fine but the issue itself is hard to reproduce. We will see if this fixes it.

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@sebastian-carpenter sebastian-carpenter self-assigned this Mar 23, 2026
Copilot AI review requested due to automatic review settings March 23, 2026 18:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reduces flakiness in OCSP stapling test scripts by replacing fixed sleeps with readiness probes (port-open checks and ready-file creation/waits), including improved handling for UDP-ready-file creation.

Changes:

  • Add wait_for_port() polling to ensure OpenSSL OCSP responders have actually opened their listening ports before continuing.
  • Replace several fixed sleep delays with wait_for_readyFile (and add missing ready-file cleanup in a few DTLS cases).
  • Create the server “ready file” during UDP accept paths to support readiness signaling for DTLS runs.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
wolfssl/test.h Create ready-file during UDP accept path; fix typo in comment.
scripts/ocsp-stapling_tls13multi.test Add port readiness probing for multiple OCSP responders; use ready-file wait instead of sleeps.
scripts/ocsp-stapling2.test Add port readiness probing; increase OpenSSL server wait timeout; use ready-file wait instead of sleeps.
scripts/ocsp-stapling.test Add port readiness probing; increase OpenSSL server wait timeout; remove sleeps in favor of ready-file waits.
scripts/ocsp-stapling-with-wolfssl-responder.test Replace sleeps with wait_for_readyFile in more places.
scripts/ocsp-stapling-with-ca-as-responder.test Add port readiness probing for OpenSSL OCSP responder startup.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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