zeek/ci
Arne Welzel 43fec1f2c8 ci/btest: Remove ZEEK_PROFILER_FILE from btest.cfg, set in ci/test.sh explicitly
The produced coverage files are of little use in current local workflows
and usually just end-up taking up disk space. ZEEK_PROFILER_FILE can be
set explicitly if there's a one-off need to produce these locally, too.
2023-12-15 15:23:52 +01:00
..
alpine CI: Force alpine image to rebuild 2023-08-23 11:12:19 -07:00
centos-7 CI: Install python3.8 on older distros 2023-08-23 09:49:36 -07:00
centos-stream-8 CI: Install python3.8 on older distros 2023-08-23 09:49:36 -07:00
centos-stream-9 Force refresh of all CI docker images 2023-08-01 12:18:59 -07:00
debian-10 Force refresh of all CI docker images 2023-08-01 12:18:59 -07:00
debian-11 Force refresh of all CI docker images 2023-08-01 12:18:59 -07:00
debian-12 Force refresh of all CI docker images 2023-08-01 12:18:59 -07:00
fedora-38 Force refresh of all CI docker images 2023-08-01 12:18:59 -07:00
fedora-39 CI: drop Fedora 37, add Fedora 39 2023-12-13 17:45:13 -08:00
freebsd Use ensurepip to install pip on FreeBSD 2023-02-22 13:27:20 -07:00
macos Install libmaxminddb in macOS CI 2023-10-26 14:47:59 +02:00
opensuse-leap-15.5 CI: Install missing packages on opensuse 2023-11-17 09:24:15 -07:00
opensuse-tumbleweed CI: Install missing packages on opensuse 2023-11-17 09:24:15 -07:00
ubuntu-20.04 Force refresh of all CI docker images 2023-08-01 12:18:59 -07:00
ubuntu-22.04 cirrus/ci: Add ubuntu22_spicy_task and ubuntu22_spicy_head_task 2023-09-26 19:45:07 +02:00
ubuntu-23.10 CI: Bump Ubuntu 23.04 to 23.10 2023-12-14 15:35:13 -08:00
windows Update c-ares in Windows conanfile 2023-11-03 11:11:15 -07:00
benchmark.sh ci/benchmark: Also send CIRRUS_TASK_NAME to benchmarker API 2023-09-25 13:50:50 +02:00
build.sh Remove comment about osx-sysroot [nomail] [skip ci] 2023-01-30 15:41:37 -07:00
collect-repo-info.py Move CMake template files to separate directory 2023-06-26 13:39:59 -07:00
common.sh Rework .cirrus.yml a bit to commonize some parts 2022-05-19 09:21:55 -07:00
container-images-tag-and-push.sh cirrus/container: Polish, fix and automated pushing of images 2023-02-13 12:08:53 +01:00
find-current-version.sh cirrus/container: Polish, fix and automated pushing of images 2023-02-13 12:08:53 +01:00
init-external-repos.sh CI: Use other base64 options on macOS Sonoma too 2023-11-06 11:29:44 -07:00
pre-build.sh cirrus/ci: Add pre_build_script mechanism 2023-09-26 19:37:32 +02:00
public-ecr-cleanup.sh ci: Add public-ecr-vacuum.sh 2023-05-05 12:11:09 +02:00
README spelling: organization 2022-11-15 17:47:49 -05:00
spicy-install-analyzers.sh cirrus/ci: Add ubuntu22_spicy_task and ubuntu22_spicy_head_task 2023-09-26 19:45:07 +02:00
test-fuzzers.sh Move fuzzer corpus files to another directory 2022-08-26 13:51:30 -07:00
test.sh ci/btest: Remove ZEEK_PROFILER_FILE from btest.cfg, set in ci/test.sh explicitly 2023-12-15 15:23:52 +01:00
tsan_suppressions.txt Suppress new tsan findings from Ubuntu 22 upgrade 2023-08-04 14:18:00 -07:00
update-zeekygen-docs.sh ci/update-zeekygen-docs.sh: Do output stderr by default 2023-10-11 15:18:36 +02:00
upload-coverage.sh Prevent non-master builds, add cirrus information to upload 2020-10-22 00:56:20 +00:00

=========================================
Continuous Integration Configuration Info
=========================================

The following pointers are aimed at maintainers to help describe a few points
about the Cirrus CI setup that may not be obvious/intuitive.

Private Test Suite
------------------

Access to the private test suite is available in CI tasks except in Pull
Requests from people that do not otherwise have write access to the zeek
repository on GitHub.  To configure this access for the
``zeek-testing-private`` repository, it uses a "deploy key" which is a single
purpose SSH key with read-only permissions.  Here's how it can be set up:

1. ``ssh-keygen -f cirrus-key``

2. Add contents of ``cirrus-key.pub`` as a new key on GitHub:
   https://github.com/zeek/zeek-testing-private/settings/keys

3. Generate a new Organization-Level Secured Variable in Cirrus CI settings at
   https://cirrus-ci.com/settings/github/zeek.  The value of the secured
   variable is the base64-encoded private key, and can be obtained from the
   output of the command: ``base64 cirrus-key``.

4. Take the ``ENCRYPTED[...]``` string generated by Cirrus and use that as the
   value of ``ZEEK_TESTING_PRIVATE_SSH_KEY`` in ``.cirrus.yml``

5. Delete the local key: ``rm cirrus-key*``

6. Commit/push the changes.

Email Notifications
-------------------

Cirrus CI doesn't feature any way to perform email notifications on failures,
so that is instead handled by a separate GitHub Action:

  https://github.com/zeek/ci-email-action

The configuration of that GitHub Action is typical: it's the
``.github/workflows/ci-notification.yml`` file, which sets SMTP/mail info
via secrets stored in GitHub for the Zeek organization:

  https://github.com/organizations/zeek/settings/secrets

The particular values used for those are currently from the Zeek project's AWS
Simple Email Service configuration.