]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-91960: Add FreeBSD build and test using Cirrus-CI (#91961)
authorEd Maste <emaste@freebsd.org>
Wed, 6 Sep 2023 14:57:40 +0000 (10:57 -0400)
committerGitHub <noreply@github.com>
Wed, 6 Sep 2023 14:57:40 +0000 (16:57 +0200)
Cirrus-CI is a hosted CI service that supports FreeBSD, Linux, macOS,
and Windows.  Add a .cirrus.yml configuration file to provide CI coverage
on pull requests for FreeBSD 13.2.

Co-authored-by: Victor Stinner <vstinner@python.org>
.cirrus.yml [new file with mode: 0644]
Misc/NEWS.d/next/Tests/2023-09-05-21-42-54.gh-issue-91960.abClTs.rst [new file with mode: 0644]

diff --git a/.cirrus.yml b/.cirrus.yml
new file mode 100644 (file)
index 0000000..823b1f9
--- /dev/null
@@ -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 --with-pydebug
+    - 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 --timeout=600"
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 (file)
index 0000000..f63e087
--- /dev/null
@@ -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).