From 2de271ab37085ad7cc3da3c20dd77570df4b3963 Mon Sep 17 00:00:00 2001 From: Nikolay Sivko Date: Wed, 5 Aug 2026 12:58:45 -0300 Subject: [PATCH] remove the Vagrant-based eBPF test setup --- ebpftracer/Makefile | 35 ++++------------------------------- ebpftracer/Vagrantfile | 37 ------------------------------------- 2 files changed, 4 insertions(+), 68 deletions(-) delete mode 100644 ebpftracer/Vagrantfile diff --git a/ebpftracer/Makefile b/ebpftracer/Makefile index a6b2ec7f..5e9c1f6e 100644 --- a/ebpftracer/Makefile +++ b/ebpftracer/Makefile @@ -5,34 +5,7 @@ build: docker run --rm --name ebpftracer ebpftracer cat /tmp/ebpf/ebpf.go > ./ebpf.go @echo -test: test_vm1 test_vm2 test_vm3 test_vm4 test_vm5 - -define test_in_vm - @echo ===TESTING IN $(1)=== - vagrant ssh $(1) -c "uname -r && cd /tmp/src && sudo VM=$(1) go test -p 1 -count 1 -v ./ebpftracer/..." - @echo -endef - -test_vm1: - $(call test_in_vm,ubuntu1810) - -test_vm2: - $(call test_in_vm,ubuntu2004) - -test_vm3: - $(call test_in_vm,ubuntu2010) - -test_vm4: - $(call test_in_vm,ubuntu2110) - -test_vm5: - $(call test_in_vm,ubuntu2204) - -vms_start: - vagrant up - -vms_stop: - vagrant suspend - -vms_delete: - vagrant destroy +# the tracer tests load eBPF programs, so they need root on a Linux host and +# are skipped unless VM is set +test: + sudo VM=1 go test -p 1 -count 1 -v ./... diff --git a/ebpftracer/Vagrantfile b/ebpftracer/Vagrantfile deleted file mode 100644 index c9530465..00000000 --- a/ebpftracer/Vagrantfile +++ /dev/null @@ -1,37 +0,0 @@ -$script = <<-SCRIPT -sudo apt update && sudo apt -y install gcc cgroup-tools -sudo snap install go --channel=1.19/stable --classic - -# prevent unexpected `systemd-udevd` processes from appearing -systemctl stop systemd-udevd.service systemd-udevd-control.socket systemd-udevd-kernel.socket - -sudo swapoff -a -sudo sysctl vm.overcommit_memory=1 -SCRIPT - -Vagrant.configure("2") do |config| - config.vm.provider "virtualbox" do |v| - v.memory = 1024 - v.cpus = 2 - end - - config.vm.provision "shell", inline: $script - config.vm.box_check_update = false - config.vm.synced_folder "..", "/tmp/src" - - config.vm.define "ubuntu1810" do |c| - c.vm.box = "generic/ubuntu1810" - end - config.vm.define "ubuntu2004" do |c| - c.vm.box = "generic/ubuntu2004" - end - config.vm.define "ubuntu2010" do |c| - c.vm.box = "generic/ubuntu2010" - end - config.vm.define "ubuntu2110" do |c| - c.vm.box = "generic/ubuntu2110" - end - config.vm.define "ubuntu2204" do |c| - c.vm.box = "generic/ubuntu2204" - end -end