From 079dfa8cfda4549fbb0f543f956fb9ee4a555ca2 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 21 Apr 2022 13:04:17 -0400 Subject: [PATCH 1/3] Add FreeBSD build and test using Cirrus-CI Cirrus-CI is a hosted CI service that supports FreeBSD, Linux, macOS, and Winodws. Add a .cirrus.yml to provide CI coverage on pull requests for FreeBSD 12.4 and 13.2. --- .cirrus.yml | 23 +++++++++++++++++++ ...3-09-05-21-42-54.gh-issue-91960.abClTs.rst | 1 + 2 files changed, 24 insertions(+) create mode 100644 .cirrus.yml create mode 100644 Misc/NEWS.d/next/Tests/2023-09-05-21-42-54.gh-issue-91960.abClTs.rst diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 00000000000000..ad6b0affb99761 --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,23 @@ +freebsd_task: + freebsd_instance: + matrix: + - image: freebsd-13-2-release-amd64 + # Turn off TCP and UDP blackhole. It is not enabled by default in FreeBSD, + # but it is in the FreeBSD GCE images as used by Cirrus-CI. It causes even + # local local connections to fail with ETIMEDOUT instead of ECONNREFUSED. + # For more information see https://reviews.freebsd.org/D41751 and + # https://github.com/cirruslabs/cirrus-ci-docs/issues/483. + sysctl_script: + - sysctl net.inet.tcp.blackhole=0 + - sysctl net.inet.udp.blackhole=0 + build_script: + - mkdir build + - cd build + - ../configure + - make -j$(sysctl -n hw.ncpu) + pythoninfo_script: + - cd build && make pythoninfo + test_script: + - cd build + # dtrace fails to build on FreeBSD - see gh-73263 + - make buildbottest TESTOPTS="-j0 -x test_dtrace" diff --git a/Misc/NEWS.d/next/Tests/2023-09-05-21-42-54.gh-issue-91960.abClTs.rst b/Misc/NEWS.d/next/Tests/2023-09-05-21-42-54.gh-issue-91960.abClTs.rst new file mode 100644 index 00000000000000..f63e0874499193 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2023-09-05-21-42-54.gh-issue-91960.abClTs.rst @@ -0,0 +1 @@ +FreeBSD 13.2 CI coverage for pull requests is now provided by Cirrus-CI (a hosted CI service that supports Linux, macOS, Windows, and FreeBSD). From 7fd0af78aae6f41f0fb2820a6a71ad11d62864d2 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 6 Sep 2023 04:41:18 +0200 Subject: [PATCH 2/3] Update .cirrus.yml --- .cirrus.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index ad6b0affb99761..accc6d3e5d6e14 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -13,7 +13,7 @@ freebsd_task: build_script: - mkdir build - cd build - - ../configure + - ../configure --with-pydebug - make -j$(sysctl -n hw.ncpu) pythoninfo_script: - cd build && make pythoninfo From 02d6224792b853e0a123b001974aa88e7b07c0bb Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 6 Sep 2023 05:03:51 +0200 Subject: [PATCH 3/3] Update .cirrus.yml --- .cirrus.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index accc6d3e5d6e14..823b1f921d66d1 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -20,4 +20,4 @@ freebsd_task: test_script: - cd build # dtrace fails to build on FreeBSD - see gh-73263 - - make buildbottest TESTOPTS="-j0 -x test_dtrace" + - make buildbottest TESTOPTS="-j0 -x test_dtrace --timeout=600"