Title: test_logging: rollover tests fail on FreeBSD16 · Issue #162515 · python/cpython · GitHub
Open Graph Title: test_logging: rollover tests fail on FreeBSD16 · Issue #162515 · python/cpython
X Title: test_logging: rollover tests fail on FreeBSD16 · Issue #162515 · python/cpython
Description: Bug report First failing build: https://buildbot.python.org/#/builders/1857/builds/1300 0:14:45 load avg: 2.62 mem: 91.0 MiB [1/1/1] test_logging failed (3 failures) Re-running test_logging in verbose mode (matching: test_compute_rollove...
Open Graph Description: Bug report First failing build: https://buildbot.python.org/#/builders/1857/builds/1300 0:14:45 load avg: 2.62 mem: 91.0 MiB [1/1/1] test_logging failed (3 failures) Re-running test_logging in verb...
X Description: Bug report First failing build: https://buildbot.python.org/#/builders/1857/builds/1300 0:14:45 load avg: 2.62 mem: 91.0 MiB [1/1/1] test_logging failed (3 failures) Re-running test_logging in verb...
Opengraph URL: https://github.com/python/cpython/issues/162515
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_logging: rollover tests fail on FreeBSD16","articleBody":"### Bug report\n\nFirst failing build: https://buildbot.python.org/#/builders/1857/builds/1300\n\n```pytb\n0:14:45 load avg: 2.62 mem: 91.0 MiB [1/1/1] test_logging failed (3 failures)\nRe-running test_logging in verbose mode (matching: test_compute_rollover_W6_local, test_compute_rollover_W6_local_interval, test_rollover_delayed_dst)\ntest_compute_rollover_W6_local (test.test_logging.TimedRotatingFileHandlerTest.test_compute_rollover_W6_local) ... FAIL\nWarning -- Unraisable exception\nException ignored while finalizing file \u003c_io.FileIO name='/tmp/test_python_fytgriaa/test_logging-2-p5zcq3ak.log' mode='ab' closefd=True>:\nTraceback (most recent call last):\n File \"/home/buildbot/buildarea/3.x.opsec-fbsd16/build/Lib/unittest/case.py\", line 690, in run\n with outcome.testPartExecutor(self):\n ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^\nResourceWarning: unclosed file \u003c_io.TextIOWrapper name='/tmp/test_python_fytgriaa/test_logging-2-p5zcq3ak.log' mode='a' encoding='utf-8'>\ntest_compute_rollover_W6_local_interval (test.test_logging.TimedRotatingFileHandlerTest.test_compute_rollover_W6_local_interval) ... FAIL\nWarning -- Unraisable exception\nException ignored while finalizing file \u003c_io.FileIO name='/tmp/test_python_fytgriaa/test_logging-2-7ie4uyl3.log' mode='ab' closefd=True>:\nTraceback (most recent call last):\n File \"/home/buildbot/buildarea/3.x.opsec-fbsd16/build/Lib/unittest/case.py\", line 690, in run\n with outcome.testPartExecutor(self):\n ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^\nResourceWarning: unclosed file \u003c_io.TextIOWrapper name='/tmp/test_python_fytgriaa/test_logging-2-7ie4uyl3.log' mode='a' encoding='utf-8'>\ntest_rollover_delayed_dst (test.test_logging.TimedRotatingFileHandlerTest.test_rollover_delayed_dst) ... \n test_rollover_delayed_dst (test.test_logging.TimedRotatingFileHandlerTest.test_rollover_delayed_dst) (when='W6', atTime=None, utc=False) ... FAIL\n\n======================================================================\nFAIL: test_compute_rollover_W6_local (test.est_logging.TimedRotatingFileHandlerTest.test_compute_rollover_W6_local)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/buildbot/buildarea/3.x.opsec-fbsd16/build/Lib/test/support/__init__.py\", line 1256, in inner\n return func(*args, **kwds)\n File \"/home/buildbot/buildarea/3.x.opsec-fbsd16/build/Lib/test/test_logging.py\", line 7382, in test_compute_rollover_W6_local\n test(DT(2012, 3, 4, 23, 59, 59), DT(2012, 3, 5, 0, 0))\n ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/buildbot/buildarea/3.x.opsec-fbsd16/build/Lib/test/test_logging.py\", line 7377, in test\n self.assertEqual(diff, 0, datetime.timedelta(seconds=diff))\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: 172800.0 != 0 : 2 days, 0:00:00\n\n======================================================================\nFAIL: test_compute_rollover_W6_local_interval (test.test_logging.TimedRotatingFileHandlerTest.test_compute_rollover_W6_local_interval)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/buildbot/buildarea/3.x.opsec-fbsd16/build/Lib/test/support/__init__.py\", line 1256, in inner\n return func(*args, **kwds)\n File \"/home/buildbot/buildarea/3.x.opsec-fbsd16/build/Lib/test/test_logging.py\", line 7559, in test_compute_rollover_W6_local_interval\n test(DT(2012, 2, 19, 23, 59, 59), DT(2012, 3, 5, 0, 0))\n ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/buildbot/buildarea/3.x.opsec-fbsd16/build/Lib/test/test_logging.py\", line 7554, in test\n self.assertEqual(diff, 0, datetime.timedelta(seconds=diff))\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: 172800.0 != 0 : 2 days, 0:00:00\n\n======================================================================\nFAIL: test_rollover_delayed_dst (test.test_logging.TimedRotatingFileHandlerTest.test_rollover_delayed_dst) (when='W6', atTime=None, utc=False)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/buildbot/buildarea/3.x.opsec-fbsd16/build/Lib/test/test_logging.py\", line 6797, in test_rollover_delayed_dst\n self.assert_rollover_contents(\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^\n when, timestamps, expected, atTime=at_time, utc=utc)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/buildbot/buildarea/3.x.opsec-fbsd16/build/Lib/test/test_logging.py\", line 6746, in assert_rollover_contents\n self.assertEqual(actual, expected)\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^\nAssertionError: {'': ['1', '2'], '.2026-10-21': ['0']} != {'.2026-10-19': ['0'], '.2026-10-26': ['1'], '': ['2']}\n- {'': ['1', '2'], '.2026-10-21': ['0']}\n+ {'': ['2'], '.2026-10-19': ['0'], '.2026-10-26': ['1']}\n\n----------------------------------------------------------------------\nRan 3 tests in 0.083s\n\nFAILED (failures=3)\ntest test_logging failed\n1 test failed again:\n test_logging\n```\n\nIt seems like the FreeBSD 16 was upgraded in build 1300.\n\nSignificant differences on test.pythoninfo between build 1298 (success) and build 1300 (fail):\n\n```diff\n-lzma.LZMA_VERSION: 5.8.3\n-lzma.lzma_version: 5.8.3\n+lzma.LZMA_VERSION: 5.8.4\n+lzma.lzma_version: 5.8.4\n\n-os.uname: os.uname_result(sysname='FreeBSD', nodename='py16bb.opsec.eu', release='16.0-CURRENT', version='FreeBSD 16.0-CURRENT main-n287972-4c03feacd171 GENERIC', machine='amd64')\n+os.uname: os.uname_result(sysname='FreeBSD', nodename='py16bb.opsec.eu', release='16.0-CURRENT', version='FreeBSD 16.0-CURRENT main-n291503-2cc3f14701c9 GENERIC', machine='amd64')\n\n resource.RLIMIT_KQUEUES: (9223372036854775807, 9223372036854775807)\n-resource.RLIMIT_MEMLOCK: (65536, 65536)\n+resource.RLIMIT_MEMLOCK: (262144, 262144)\n\n-ssl.OPENSSL_API_VERSION_INFO: ssl.OPENSSL_VERSION_INFO(major=3, minor=5, fix=0, patch=7, status=0)\n-ssl.OPENSSL_VERSION: OpenSSL 3.5.7 9 Jun 2026\n-ssl.OPENSSL_VERSION_INFO: ssl.OPENSSL_VERSION_INFO(major=3, minor=5, fix=0, patch=7, status=0)\n+ssl.OPENSSL_API_VERSION_INFO: ssl.OPENSSL_VERSION_INFO(major=3, minor=5, fix=0, patch=9, status=0)\n+ssl.OPENSSL_VERSION: OpenSSL 3.5.9 29 Sep 2026\n+ssl.OPENSSL_VERSION_INFO: ssl.OPENSSL_VERSION_INFO(major=3, minor=5, fix=0, patch=9, status=0)\n\n-system.uptime: 16 days, 21:42:12\n+system.uptime: 0:06:58\n\n-zlib.ZLIB_VERSION: 1.3.2\n-zlib.zlib_version: 1.3.2\n+zlib.ZLIB_VERSION: 1.4\n+zlib.zlib_version: 1.4\n```\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nOther","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2026-11-23T23:37:55Z","url":"https://github.com/python/cpython/issues/162515"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dbbbc0f6-6de7-e1fd-42d7-dfded2acf179 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE74:1188C0:F75100:148EEC5:6B064C0D |
| html-safe-nonce | d8b70383c41c16d3f07f562e8db7786f22254883166d716122f1c215caff931a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTc0OjExODhDMDpGNzUxMDA6MTQ4RUVDNTo2QjA2NEMwRCIsInZpc2l0b3JfaWQiOiI4ODA3NzQ1NTM2NTY1NTk1MTQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a207c282241ddaf4e58cc944ecdc7b01547b474325a6245abb5dce5335462fed |
| hovercard-subject-tag | issue:6571128936 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/162515/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4c6f9076e41ea47269ac571f4aeec3644d64764ff63e8714a3810a1a82f1bea7/python/cpython/issues/162515 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4c6f9076e41ea47269ac571f4aeec3644d64764ff63e8714a3810a1a82f1bea7/python/cpython/issues/162515 |
| og:image:alt | Bug report First failing build: https://buildbot.python.org/#/builders/1857/builds/1300 0:14:45 load avg: 2.62 mem: 91.0 MiB [1/1/1] test_logging failed (3 failures) Re-running test_logging in verb... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 772b6997ca4daa0428dd49a25d76052e765555ae560fe9c88517eb828bbd861e |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f1f9a08f7c769a37f1dfc18ad43d463c222a7eea |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width