Commit graph

226 commits

Author SHA1 Message Date
Arne Welzel
3284259561 Add zeek -V/--build-info
This adds a new utility called ci/collect-repo-info.py to produce a JSON
document that is then baked into the Zeek executable file. Further, when
creating a tarball via `make dist`, put a top-level repo-info.json file
in place that is picked when no .git directory exists.

Closes #1405
2023-02-13 12:23:29 +01:00
Arne Welzel
357bdc71ad cirrus/container: Polish, fix and automated pushing of images
* Add ci/find-current-version.sh to figure out versions of lts and
  feature branch based on repository state.

* Do not use ZEEK_IMAGE_REPO for the local images that
  are expected to exist.

* Only use IMAGE_NAME/IMAGE_TAG instead of the ARCH and MANIFEST
  versions that contained the very same values

* Support and push additional tags

  In addition to the lts and feature tags, also push the base version
  tags. 5.0 or 5.1 such that someone pulling zeek/zeek:5.0 will get
  the most recent available 5.0 patch release.
2023-02-13 12:08:53 +01:00
Tim Wojtulewicz
62e29b5e20 CI: Call 'brew install' for macOS to ensure we're using openssl@3 on all hosts 2023-02-09 20:44:56 -07:00
Tim Wojtulewicz
885ed71464 CI: Fix the ThreadSanitizer build 2023-02-06 09:47:46 -07:00
Arne Welzel
5510b2496a cirrus: Add docker_builder tasks to build and push images 2023-02-01 08:52:05 +01:00
Tim Wojtulewicz
b18a2aafa3 Remove comment about osx-sysroot [nomail] [skip ci] 2023-01-30 15:41:37 -07:00
Tim Wojtulewicz
b437ca13f4 Remove setting osx-sysroot on macOS CI builds 2023-01-30 11:57:34 -07:00
Tim Wojtulewicz
b522f6ea08 Fix CI benchmark script to properly urlencode arguments 2023-01-24 14:53:46 -07:00
Tim Wojtulewicz
991652f479 Use newer diff on Alpine for --strip-trailing-ci 2023-01-19 09:13:33 -07:00
Johanna Amann
12dd21cbe5 Remove outdated distributions from CI.
Fedora 35: CI folder was forgotten during removal

Opensuse Leap 15.3: EOL was 2022

Openssl-3: No longer necessary, since part of distributions (e.g. Ubuntu
22.10)
2023-01-18 14:42:54 +00:00
Tim Wojtulewicz
555f705e2d CI: drop macOS Big Sur, add macOS Ventura 2023-01-03 08:33:00 -07:00
Arne Welzel
c61fdc7866 ci/alpine: Use musl-fts-dev rather than fts-dev
With the release of alpine 3.17 (2022-11-22), the fts-dev package
was renamed to musl-fts-dev. Change it accordingly.

This is currently breaking CI in a fork of zeek/zeek. Suspect some
caching prevents it from breaking here currently.

Alpine 3.16 is still supported till 2024-05-23, but we're essentially
not doing CI testing for it anymore. Appears to be in line with the
comment in .cirrus.yml
2022-12-01 09:17:09 +01:00
Christian Kreibich
417ff10a0a CI: add Fedora 37 2022-11-27 19:33:52 -08:00
Josh Soref
f04e0f3ac4 spelling: organization
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2022-11-15 17:47:49 -05:00
Josh Soref
9c42b92a2b spelling: invalidate
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2022-11-15 17:47:36 -05:00
Tim Wojtulewicz
2bdc8dd3a4 Cirrus configuration for Windows builds 2022-11-09 18:16:13 +02:00
Tomer Lev
6307158b04 Updating dependencies in the dockerfile and removing redundant from conanfile.txt 2022-11-09 18:16:13 +02:00
Elad Solomon
27d0bbde0f Updated dockerfile for Windows 2022-11-09 18:15:34 +02:00
Elad Solomon
032f0587f4 Updated windows dockerfile 2022-11-09 18:15:34 +02:00
Tomer Lev
62e2f85d2f Manually patched 2 commits from zeek github
In case transport layer has zero length and we are ignoring checksums, calculate the length ourselvs. This happens due to protocol fragmantation
2022-11-09 18:15:34 +02:00
PIE Easy Start
b712f00b7e Adding CI files 2022-11-09 18:15:34 +02:00
Tim Wojtulewicz
d352ace4d2 Add conanfile for windows builds 2022-11-09 18:15:34 +02:00
Elad Solomon
235ec2565f Updated build script to keep build output 2022-11-09 18:15:33 +02:00
Elad Solomon
3a80b79497 Compile Zeek with MSVC
Allow Zeek to be embedded in another project
2022-11-09 18:15:30 +02:00
Tim Wojtulewicz
3fafe5c19f Merge remote-tracking branch 'origin/topic/johanna/ubuntu2210ci'
* origin/topic/johanna/ubuntu2210ci:
  Add Ubuntu 22.10 to ci
2022-11-03 08:56:43 -07:00
Johanna Amann
36484eaf34 Add Ubuntu 22.10 to ci 2022-11-03 10:08:12 +00:00
Tim Wojtulewicz
d442ea1bb9 egrep reported as obsolete by opensuse-tumbleweed builds 2022-10-27 11:48:43 -07:00
Tim Wojtulewicz
d8b31de1a2 Move fuzzer corpus files to another directory 2022-08-26 13:51:30 -07:00
Tim Wojtulewicz
a927c4a998 Switch macOS Monterey build to new m1-based VM 2022-08-25 12:54:12 -07:00
Tim Wojtulewicz
47bcd2cbeb GH-2258: Add skip decorator to DNS unit tests 2022-07-13 12:33:17 -07:00
Christian Kreibich
963b27f054 Add procps/procps-ng to several CI Docker images
It helps to have "ps" available for testing.
2022-07-09 00:52:44 -07:00
Christian Kreibich
39f98778e4 CI: Add OpenSUSE Tumbleweed 2022-07-05 16:21:47 -07:00
Christian Kreibich
2c263aa6c7 CI: drop Ubuntu 21.10, EOL 2022-07-14 2022-07-05 13:53:51 -07:00
Christian Kreibich
a2b73f3586 CI: drop Debian 9, EOL 2022-06-30 2022-07-05 13:53:36 -07:00
Christian Kreibich
bf9b1ebbbe Add helpers for syncing commit files with external testsuites
This provides "make sync-repos" to check out all locally available testsuites at
the commits indicated in their commit files, and "make sync-commits" to update
the commit files to the HEADs of the local testsuite repos.

Also adds the commit -> repo sync for the Makefile init target so initialization
always lands on the right version, and removes the corresponding explicit
checkout from the CI repo setup.
2022-06-28 13:20:14 -07:00
Johanna Amann
94e1d5786e CI: Add Fedora 36, remove Fedora 34 2022-06-21 18:06:00 +01:00
Johanna Amann
538e7977bc CI: Add OpenSuSE Leap 15.4, fix 15.3
15.3 included the wrong update repo in the Dockerfile
2022-06-15 09:43:00 +01:00
Johanna Amann
7a28b7458e CI: Add Ubuntu 22.04 (LTS Release, EOL 04/2027) 2022-06-14 09:37:53 +01:00
Tim Wojtulewicz
7bb5e196d7 Sort package names in Dockerfiles 2022-06-08 11:16:12 -07:00
Tim Wojtulewicz
d8df7e9b42 Dockerfile changes for consistency with Broker files 2022-06-03 14:57:21 -07:00
Tim Wojtulewicz
2977af93b5 Make some of the CI Dockerfiles more consistent 2022-06-03 14:28:48 -07:00
Robin Sommer
d99f041ac5
Add WebSocket support for exchanging events with external clients.
This exposes Broker's new WebSocket support in Zeek. To enable it,
call `Broker::listen_websocket()`. Zeek will then start listening on
port 9997 for incoming WebSocket connections.

See the Broker documentation for a description of the message format
expected over these WebSocket connections.
2022-06-02 10:31:52 +02:00
Tim Wojtulewicz
4f11a57159 Add DOCKERFILE_VERSION variable to all CI dockerfiles 2022-05-23 08:47:11 -07:00
Tim Wojtulewicz
b8f745ca84 Rework .cirrus.yml a bit to commonize some parts 2022-05-19 09:21:55 -07:00
Tim Wojtulewicz
d48a1b520f Enable ccache for Cirrus builds 2022-05-19 09:21:55 -07:00
Johanna Amann
4d66e4e16c Fix SSL tests on Centos Stream 9
SHA1 signatures are only allowed in the legacy policy. I have no idea
where this is documented - I found it in a patch for the OpenSSL source
package.

Also adding tar as a specific dependency, since we have a test that
requires it, and at least for me it was not present in a minimal
installation.

Fixes #2115
2022-05-19 15:00:12 +01:00
Tim Wojtulewicz
aaaca5d5a6 Merge remote-tracking branch 'origin/topic/bbannier/spicy'
* origin/topic/bbannier/spicy:
  Add NEWS item for new requirements due to default-enabled Spicy support.
  Include headers in binary dir before other headers.
  Increase memory in CI.
  Add tests for bundled Spicy infrastructure.
  Include spicy in build.
  Add `bare_mode` bif.
  Change test so included plugins can load notice framework.
  Do not log function arguments in test.
2022-05-17 08:50:33 -07:00
Tim Wojtulewicz
031036be9c Call pip using python -m flag during FreeBSD CI prep 2022-05-16 11:55:40 -07:00
Benjamin Bannier
95aff9a1e3 Include spicy in build. 2022-05-16 09:07:11 +02:00
Christian Kreibich
8e24f84857 CI update: add Ubuntu 21.10 2022-01-24 13:40:11 -08:00