Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,19 @@ jobs:
sudo mount -t hugetlbfs none /mnt/hugepages
echo 128 | sudo tee /proc/sys/vm/nr_hugepages

- name: Enable NBD
run: |
sudo modprobe nbd nbds_max=256

- name: Disable inotify watching of change events for NBD devices
run: |
echo 'ACTION=="add|change", KERNEL=="nbd*", OPTIONS:="nowatch"' | sudo tee /etc/udev/rules.d/97-nbd-device.rules
sudo udevadm control --reload-rules
sudo udevadm trigger

- name: Run tests
working-directory: ${{ matrix.package }}
run: go test -v ${{ matrix.test_path }}
run: sudo go test -v ${{ matrix.test_path }}

validate-iac:
name: Validate terraform
Expand Down
4 changes: 0 additions & 4 deletions packages/orchestrator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ build-and-upload/template-manager: build upload/template-manager
mock:
sudo TEMPLATE_BUCKET_NAME=$(TEMPLATE_BUCKET_NAME) CONSUL_TOKEN=$(CONSUL_TOKEN) NODE_ID="testclient" go run cmd/mock-sandbox/mock.go -template 5wzg6c91u51yaebviysf -build "f0370054-b669-eeee-b33b-573d5287c6ef" -alive 1 -count 2

.PHONY: mock-nbd
mock-nbd:
sudo go run -gcflags=all="-N -l" cmd/mock-nbd/mock.go

.PHONY: mock-snapshot
mock-snapshot:
sudo TEMPLATE_BUCKET_NAME=$(TEMPLATE_BUCKET_NAME) CONSUL_TOKEN=$(CONSUL_TOKEN) NODE_ID="testclient" go run cmd/mock-snapshot/mock.go -template 5wzg6c91u51yaebviysf -build "f0370054-b669-4d7e-b33b-573d5287c6ef" -alive 1 -count 1
Expand Down
202 changes: 0 additions & 202 deletions packages/orchestrator/cmd/mock-nbd/mock.go

This file was deleted.

Loading