Skip to content

workaround(nbd): mark tls tests as expected failures due to expired certs#16736

Open
christopherco wants to merge 1 commit intotomls/base/mainfrom
chrco/fix-nbd-tls
Open

workaround(nbd): mark tls tests as expected failures due to expired certs#16736
christopherco wants to merge 1 commit intotomls/base/mainfrom
chrco/fix-nbd-tls

Conversation

@christopherco
Copy link
Copy Markdown
Collaborator

@christopherco christopherco commented Apr 18, 2026

The nbd 3.25 test suite ships pre-built TLS certificates that were generated on 2016-04-19 with a 10-year expiration, meaning they expired on 2026-04-17. This causes the tls and tlshuge tests to fail with 'Error in the certificate' from GnuTLS.

Upstream fixed this in nbd 3.27.0 (commit 58b356b, 'Update certificate expiry dates') with certs valid until 2033, but 3.25 (used on f43) was not updated.

Add an overlay to pass XFAIL_TESTS='tls tlshuge' as a make variable override so these tests are treated as expected failures rather than blocking the build.

Fixes: AB#18940

Tracking item for proper upstream fix: AB#18854

…erts

The nbd 3.25 test suite ships pre-built TLS certificates that were
generated on 2016-04-19 with a 10-year expiration, meaning they expired
on 2026-04-17. This causes the tls and tlshuge tests to fail with
'Error in the certificate' from GnuTLS.

Upstream fixed this in nbd 3.27.0 (commit 58b356b, 'Update certificate
expiry dates') with certs valid until 2033, but 3.25 (used on f43) was
not updated.

Add an overlay to pass XFAIL_TESTS='tls tlshuge' as a make variable
override so these tests are treated as expected failures rather than
blocking the build.
@christopherco christopherco marked this pull request as ready for review April 18, 2026 16:30
Copilot AI review requested due to automatic review settings April 18, 2026 16:30
Copy link
Copy Markdown
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

Adds an Azure Linux component override for nbd to prevent build failures caused by expired TLS test certificates in the upstream 3.25 test suite by treating tls/tlshuge as expected failures during %check.

Changes:

  • Introduce base/comps/nbd/nbd.comp.toml with a %check overlay that appends XFAIL_TESTS="tls tlshuge" to make check.
  • Remove the bare [components.nbd] entry from base/comps/components.toml to avoid duplicate component tables now that a dedicated .comp.toml exists.

Reviewed changes

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

File Description
base/comps/nbd/nbd.comp.toml New component overlay that modifies %check to mark TLS-related tests as XFAIL due to expired bundled certs.
base/comps/components.toml Removes inline nbd component entry since the component is now defined in a dedicated file included via **/*.comp.toml.

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

Comment thread base/comps/nbd/nbd.comp.toml
Comment thread base/comps/nbd/nbd.comp.toml
@christopherco
Copy link
Copy Markdown
Collaborator Author

Work item for more durable fix -> https://dev.azure.com/mariner-org/mariner/_workitems/edit/18854

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