Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump packages (by Jakub) #1

Merged
merged 28 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
1bd6c32
Resign Jakub comits
jaroslav-fedor-swi Oct 3, 2024
9539537
Remove asan from build-and-test.yaml
jakub-racek-swi Oct 7, 2024
0135936
Downgrade macos to 12
jaroslav-fedor-swi Oct 7, 2024
397760f
Try macos 14
jaroslav-fedor-swi Oct 7, 2024
ce3eff0
Disable brew link in CI
jaroslav-fedor-swi Oct 7, 2024
7ad72dc
Another link disabled
jaroslav-fedor-swi Oct 7, 2024
43fc79a
Fix memory size
jaroslav-fedor-swi Oct 7, 2024
ef68c23
Pin podman version
jaroslav-fedor-swi Oct 7, 2024
b86917d
Move tests to ubuntu
jaroslav-fedor-swi Oct 7, 2024
2f0cbed
Disable build steps while debugging CI
jaroslav-fedor-swi Oct 7, 2024
9e7c42b
Use ubuntu-20
jaroslav-fedor-swi Oct 7, 2024
e72ebfd
Bump to ubuntu 22.04
jaroslav-fedor-swi Oct 7, 2024
8ae8cb6
Bump to ubuntu 22.04
jaroslav-fedor-swi Oct 7, 2024
5e87c56
No need to install podman on ubuntu
jaroslav-fedor-swi Oct 7, 2024
a2f8fdd
Install podman on macos-12
jaroslav-fedor-swi Oct 7, 2024
9b74842
Podman intel instead of arm
jaroslav-fedor-swi Oct 7, 2024
a4aee7d
Add podman link
jaroslav-fedor-swi Oct 7, 2024
2248dc2
Try simple brew install
jaroslav-fedor-swi Oct 7, 2024
49be182
Brew does not support mac-12
jaroslav-fedor-swi Oct 7, 2024
5516eb2
Enable rootful
jaroslav-fedor-swi Oct 8, 2024
1265b70
Try ubuntu for kernel-header-test
jaroslav-fedor-swi Oct 8, 2024
938c718
Enable registry for images to be pushed
jaroslav-fedor-swi Oct 8, 2024
0c71a9f
Instal vagrant + virtualbox
jaroslav-fedor-swi Oct 8, 2024
ba7335a
Remove old centos + debian
jaroslav-fedor-swi Oct 8, 2024
eb06fa2
Remove centos
jaroslav-fedor-swi Oct 8, 2024
aa3e219
Enable rest of builds
jaroslav-fedor-swi Oct 8, 2024
fe8a417
Disable ASAN
jaroslav-fedor-swi Oct 8, 2024
f0c282c
Rename step to make rules happy
jaroslav-fedor-swi Oct 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
113 changes: 42 additions & 71 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
paths:

env:
BENV_IMAGE: quay.io/splunko11ytest/network-explorer-debug/build-env
BENV_IMAGE: public.ecr.aws/u7d6c4a3/solarwinds-opentelemetry-network:benv-exp

concurrency:
group: build-and-test-${{ github.event.pull_request_number || github.ref }}
Expand Down Expand Up @@ -190,33 +190,33 @@ jobs:
$BENV_IMAGE \
./build.sh unit_tests test

build-run-unit-tests-with-asan-and-debug-flags:
name: build-run-unit-tests-with-asan-and-debug-flags
runs-on: ubuntu-20.04
needs: [clang-format-check]
steps:
- name: Check out the codebase
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: build unit tests with asan and debug flags on then run all tests
run: |
docker pull $BENV_IMAGE
git submodule update --init --recursive
docker run -t \
--rm \
--mount "type=bind,source=/var/run/docker.sock,destination=/var/run/docker.sock" \
--mount "type=bind,source=$(git rev-parse --show-toplevel),destination=/root/src,readonly" \
--env EBPF_NET_SRC_ROOT=/root/src \
--env ARGS="--output-on-failure --repeat until-pass:3" \
--env SPDLOG_LEVEL="trace" \
$BENV_IMAGE \
./build.sh --debug --asan unit_tests test
# build-run-unit-tests-with-asan-and-debug-flags:
# name: build-run-unit-tests-with-asan-and-debug-flags
# runs-on: ubuntu-20.04
# needs: [clang-format-check]
# steps:
# - name: Check out the codebase
# uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - name: build unit tests with asan and debug flags on then run all tests
# run: |
# docker pull $BENV_IMAGE
# git submodule update --init --recursive
# docker run -t \
# --rm \
# --mount "type=bind,source=/var/run/docker.sock,destination=/var/run/docker.sock" \
# --mount "type=bind,source=$(git rev-parse --show-toplevel),destination=/root/src,readonly" \
# --env EBPF_NET_SRC_ROOT=/root/src \
# --env ARGS="--output-on-failure --repeat until-pass:3" \
# --env SPDLOG_LEVEL="trace" \
# $BENV_IMAGE \
# ./build.sh --debug --asan unit_tests test

run-kernel-header-tests:
name: run-kernel-header-tests
needs: [clang-format-check]
runs-on: macos-12
runs-on: ubuntu-24.04
env:
EBPF_NET_SRC_ROOT: ${{ github.workspace }}
steps:
Expand Down Expand Up @@ -251,31 +251,16 @@ jobs:
- name: Run kernel header tests on multiple linux distributions
id: run-kernel-header-tests
if: steps.changes.outputs.kernel == 'true' || steps.changes.outputs.github == 'true'
run: |
sudo spctl --add /usr/local/bin/brew
# These following 4 lines are added to overcome brew link failures seen while executing brew update.
rm /usr/local/bin/2to3*
rm /usr/local/bin/idle*
rm /usr/local/bin/pydoc*
rm /usr/local/bin/python3*
brew update
brew install podman
sudo spctl --add /usr/local/bin/podman
podman machine init --rootful --cpus 3 --disk-size 14 --memory 12384
podman machine start
podman pull $BENV_IMAGE

podman machine ssh 'cat > /etc/containers/registries.conf.d/localhost.conf' <<EOF
[[registry]]
location = "localhost:5000"
insecure = true
EOF
podman machine ssh systemctl restart podman
podman container run -dt -p 5000:5000 --name registry docker.io/library/registry:2
podman info
run: |
# Install vagrant
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt install vagrant virtualbox


git submodule update --init --recursive

podman run -t --rm \
docker run -d -p 5000:5000 --name registry docker.io/library/registry:2
docker run -t --rm \
--mount type=bind,source=$PWD,destination=/root/src,readonly \
--mount type=bind,source=/var/run/docker.sock,destination=/var/run/docker.sock \
--env EBPF_NET_SRC_ROOT=/root/src \
Expand All @@ -292,7 +277,7 @@ jobs:
run-kernel-collector-tests:
name: run-kernel-collector-tests
needs: [clang-format-check]
runs-on: macos-12
runs-on: ubuntu-24.04
env:
EBPF_NET_SRC_ROOT: ${{ github.workspace }}
steps:
Expand Down Expand Up @@ -328,30 +313,16 @@ jobs:
id: run-kernel-collector-test
if: steps.changes.outputs.kernel == 'true' || steps.changes.outputs.github == 'true'
run: |
sudo spctl --add /usr/local/bin/brew
# These following 4 lines are added to overcome brew link failures seen while executing brew update.
rm /usr/local/bin/2to3*
rm /usr/local/bin/idle*
rm /usr/local/bin/pydoc*
rm /usr/local/bin/python3*
brew update
brew install podman
sudo spctl --add /usr/local/bin/podman
podman machine init --rootful --cpus 3 --disk-size 14 --memory 12348
podman machine start
podman pull $BENV_IMAGE

podman machine ssh 'cat > /etc/containers/registries.conf.d/localhost.conf' <<EOF
[[registry]]
location = "localhost:5000"
insecure = true
EOF
podman machine ssh systemctl restart podman
podman container run -dt -p 5000:5000 --name registry docker.io/library/registry:2
podman info
# Install vagrant
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt update && sudo apt install vagrant virtualbox

docker run -dt -p 5000:5000 --name registry docker.io/library/registry:2

git submodule update --init --recursive

podman run -t --rm \
docker run -t --rm \
--mount type=bind,source=$PWD,destination=/root/src,readonly \
--mount type=bind,source=/var/run/docker.sock,destination=/var/run/docker.sock \
--env EBPF_NET_SRC_ROOT=/root/src \
Expand Down
3 changes: 3 additions & 0 deletions cmake/civetweb.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,8 @@ target_compile_definitions(

target_include_directories(civetweb PUBLIC ${CIVETWEB_INCLUDE_DIR})

find_library(LIBDL dl)
target_link_libraries(civetweb PRIVATE ${LIBDL})

add_library(civetweb-interface INTERFACE)
target_include_directories(civetweb-interface INTERFACE ${CIVETWEB_INCLUDE_DIR})
3 changes: 2 additions & 1 deletion cmake/protobuf.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ function (build_protobuf NAME)
list(
APPEND
PROTOBUF_ARGS
--go_out="plugins=grpc:${GO_PATH_SRC}"
--go_out="${GO_PATH_SRC}"
--go-grpc_out="${GO_PATH_SRC}"
)

add_dependencies(
Expand Down
1 change: 1 addition & 0 deletions collector/k8s/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ target_link_libraries(
static-executable
gRPC::grpc++_unsecure
gRPC::grpc_unsecure
dl
)

set_target_properties(k8s-relay PROPERTIES LINK_SEARCH_START_STATIC 1)
Expand Down
25 changes: 13 additions & 12 deletions collector/k8s/go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
module ebpf.net/collector

go 1.20
go 1.21

toolchain go1.23.1

require (
google.golang.org/grpc v1.53.0
google.golang.org/protobuf v1.28.1
google.golang.org/grpc v1.66.1
k8s.io/api v0.26.1
k8s.io/apimachinery v0.26.1
k8s.io/client-go v0.26.1
Expand All @@ -18,24 +19,24 @@ require (
github.com/go-openapi/jsonreference v0.20.0 // indirect
github.com/go-openapi/swag v0.19.14 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/gnostic v0.5.7-v3refs // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/gofuzz v1.1.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mailru/easyjson v0.7.6 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
golang.org/x/net v0.7.0 // indirect
golang.org/x/oauth2 v0.4.0 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/term v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/oauth2 v0.22.0 // indirect
golang.org/x/sys v0.24.0 // indirect
golang.org/x/term v0.23.0 // indirect
golang.org/x/text v0.17.0 // indirect
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
Loading
Loading