Skip to content

Conversation

dkg
Copy link
Contributor

@dkg dkg commented Oct 18, 2025

In debian's build daemon architecture, some machines are heavily congested (especially for more obscure ports with lower-resourced machines)), and a build can be delayed at any point.

If a build happens to be paused for more than a minute at the wrong time, this test can fail, as it did here, on the sparc64 architecture:

https://buildd.debian.org/status/fetch.php?pkg=rnp&arch=sparc64&ver=0.18.0-4&stamp=1760765792&raw=0

The failure was that the certificate showed as "EXPIRED" instead of "EXPIRES".

This fix isn't a complete fix -- test_set_expires will still fail on some extremely slow machines, for example if the build is delayed by 10 hours at the wrong moment, the subsequent test will fail.

But this should significantly reduce the frequency of build failures.

In debian's build daemon architecture, some machines are heavily
congested (especially for more obscure ports with lower-resourced
machines)), and a build can be delayed at any point.

If a build happens to be paused for more than a minute at the wrong
time, this test can fail, as it did here, on the sparc64 architecture:

https://buildd.debian.org/status/fetch.php?pkg=rnp&arch=sparc64&ver=0.18.0-4&stamp=1760765792&raw=0

The failure was that the certificate showed as "EXPIRED" instead of
"EXPIRES".

This fix isn't a complete fix -- test_set_expires will still fail on
some extremely slow machines, for example if the build is delayed by
10 hours at the wrong moment, the subsequent test will fail.

But this should significantly reduce the frequency of build failures.
@codecov
Copy link

codecov bot commented Oct 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.46%. Comparing base (bf89f0b) to head (0dcd825).

Additional details and impacted files
@@             Coverage Diff              @@
##           release/0.x    #2368   +/-   ##
============================================
  Coverage        85.46%   85.46%           
============================================
  Files              126      126           
  Lines            22710    22710           
============================================
  Hits             19408    19408           
  Misses            3302     3302           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ronaldtse ronaldtse requested a review from Copilot October 22, 2025 09:10
Copy link

@Copilot 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

This PR addresses intermittent test failures on slow or congested CI systems by making the test assertion more flexible regarding certificate expiration status messages.

  • Modifies the regex pattern in test_set_expire to accept both "EXPIRES" and "EXPIRED" status messages

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@ronaldtse ronaldtse requested a review from ni4 October 22, 2025 09:11
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.

1 participant