Skip to content

Commit 862a3a4

Browse files
committed
Add thinpool detection if not specified
Signed-off-by: Amory Hoste <[email protected]>
1 parent b62820a commit 862a3a4

19 files changed

+117
-41
lines changed

.github/workflows/cri_test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ jobs:
5454
- name: Setup firecracker-containerd
5555
run: ./scripts/setup_firecracker_containerd.sh
5656

57+
- name: Add rsync # TODO: add dependencies to vHive
58+
run: |
59+
sudo apt update
60+
sudo apt install rsync -y
61+
5762
- name: Build
5863
run: go build
5964

.github/workflows/nightly_tests.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ jobs:
3131
sudo apt update
3232
sudo apt install git -y
3333
34+
- name: Add rsync # TODO: add dependencies to vHive
35+
run: |
36+
sudo apt update
37+
sudo apt install rsync -y
38+
3439
- name: Check out code into the Go module directory
3540
uses: actions/checkout@v3
3641
with:
@@ -55,7 +60,7 @@ jobs:
5560
strategy:
5661
fail-fast: false
5762
matrix:
58-
vhive_args: ["-dbg", "-dbg -snapshots", "-dbg -snapshots -upf"]
63+
vhive_args: ["-dbg", "-dbg -snapshots", "-dbg -snapshots -upf", "-dbg -snapshots -fulllocal"]
5964
env:
6065
GITHUB_RUN_ID: ${{ github.run_id }}
6166
GITHUB_JOB: ${{ github.job }}
@@ -83,6 +88,11 @@ jobs:
8388
- name: Setup firecracker-containerd
8489
run: ./scripts/setup_firecracker_containerd.sh
8590

91+
- name: Add rsync # TODO: add dependencies to vHive
92+
run: |
93+
sudo apt update
94+
sudo apt install rsync -y
95+
8696
- name: Build
8797
run: go build
8898

.github/workflows/unit_tests.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
fail-fast: false
2828
matrix:
29-
module: [taps, misc, profile]
29+
module: [taps, misc, profile, devmapper, networking, snapshotting, ctriface/image]
3030
steps:
3131

3232
- name: Set up Go 1.18
@@ -48,6 +48,11 @@ jobs:
4848
- name: Install PMU tools
4949
run: ./scripts/install_pmutools.sh
5050

51+
- name: Add rsync # TODO: add dependencies to vHive
52+
run: |
53+
sudo apt update
54+
sudo apt install rsync -y
55+
5156
- name: Build
5257
run: go build -race -v -a ./...
5358

@@ -84,6 +89,11 @@ jobs:
8489
- name: Pull binaries
8590
run: ./scripts/setup_firecracker_containerd.sh
8691

92+
- name: Add rsync # TODO: add dependencies to vHive
93+
run: |
94+
sudo apt update
95+
sudo apt install rsync -y
96+
8797
- name: Build
8898
run: go build -race -v -a ./...
8999

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:b3d8525300d6ce747c63847f0f688d56d61be927648f19a86abee2e8f1e9e0e4
3-
size 26534379
2+
oid sha256:2621670b622850e209a25b189c7f7f6f9b4cc3b2e161f28a1f98072e70452cc8
3+
size 23910923

bin/firecracker

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:d42ddb2c3d970d6a234e0d3f92980e085fc04a9ae17e29e05bb4ca73debfe0b8
2+
oid sha256:59c71f6e860d67c87f3d76cedebd0b72cb0dda3918dbae8a1f9a6cc7d57672dd
33
size 4016240

bin/firecracker-containerd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:17da34088e3c544328545e39037110bb1ab2c09543e9f25614d5425ea90793ad
3-
size 47224352
2+
oid sha256:b46f59950e1c760c243a1aa1ce52c017a06fc847cb6fa4b9ac81ebe535118856
3+
size 43720504

bin/firecracker-ctr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:d61c35b77178fbabc4c996f4e2411f565b6974ef40773b68d465db17e725bb99
3-
size 34510472
2+
oid sha256:78efef1c7049ca2735e29f9cba3782ea4fdfd6433fa9805076818f03150f01eb
3+
size 32104096

bin/jailer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:80284269eb8b44483b84a527bf7f4012932d94410e32bd20e4d25d09303336ea
2+
oid sha256:28614cb54e9b0a959822da0018c81d7de000c4cd2253de026e1c4b4689f3d236
33
size 3072784

cri/firecracker/coordinator.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,10 @@ func (c *coordinator) orchCreateSnapshot(ctx context.Context, funcInst *FuncInst
316316
// TODO: StopVM does not work for fullLocal snapshots without resuming. Might be the same for offloaded since
317317
// those are never stopped
318318
if c.isFullLocal {
319-
_, err = c.orch.ResumeVM(ctx, funcInst.vmID)
319+
if _, err := c.orch.ResumeVM(ctx, funcInst.vmID); err != nil {
320+
funcInst.logger.WithError(err).Error("failed to resume VM")
321+
return err
322+
}
320323
}
321324

322325
if err := c.snapshotManager.CommitSnapshot(id); err != nil {

ctriface/bench_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func TestBenchmarkStart(t *testing.T) {
5959
orch := NewOrchestrator(
6060
"devmapper",
6161
"",
62-
"fc-dev-thinpool",
62+
"",
6363
"",
6464
10,
6565
WithTestModeOn(true),

0 commit comments

Comments
 (0)