Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion .github/buildomat/jobs/build-interop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#: "=/work/testbed.tar.gz",
#: "=/work/dhcp-server",
#: ]
#:

set -x
set -e
Expand Down
30 changes: 30 additions & 0 deletions .github/buildomat/jobs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
#: from_output = "/work/release/ddmadm"
#:
#: [[publish]]
#: series = "release"
#: name = "falcon-lab"
#: from_output = "/work/release/falcon-lab"
#:
#: [[publish]]
#: series = "debug"
#: name = "ddmd"
#: from_output = "/work/debug/ddmd"
Expand All @@ -29,6 +34,26 @@
#: name = "ddmadm"
#: from_output = "/work/debug/ddmadm"
#:
#: [[publish]]
#: series = "debug"
#: name = "mgd"
#: from_output = "/work/debug/mgd"
#:
#: [[publish]]
#: series = "debug"
#: name = "mgadm"
#: from_output = "/work/debug/mgadm"
#:
#: [[publish]]
#: series = "release"
#: name = "mgd"
#: from_output = "/work/release/mgd"
#:
#: [[publish]]
#: series = "release"
#: name = "mgadm"
#: from_output = "/work/release/mgadm"
#:

set -o errexit
set -o pipefail
Expand All @@ -41,6 +66,7 @@ rustc --version
banner "check"
cargo fmt -- --check
cargo clippy --all-targets -- --deny warnings
cargo xtask openapi check

banner "build"
ptime -m cargo build
Expand All @@ -51,4 +77,8 @@ do
mkdir -p /work/$x
cp target/$x/ddmd /work/$x/ddmd
cp target/$x/ddmadm /work/$x/ddmadm
cp target/$x/mgd /work/$x/mgd
cp target/$x/mgadm /work/$x/mgadm
done

cp target/release/falcon-lab /work/release/falcon-lab
58 changes: 58 additions & 0 deletions .github/buildomat/jobs/falcon-lab.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#!/bin/bash
#:
#: name = "falcon"
#: variety = "basic"
#: target = "lab-2.0-gimlet"
#: skip_clone = true
#:
#: [dependencies.build-interop]
#: job = "build-interop"
#:
#: [dependencies.build]
#: job = "build"
#:

set -x
set -e

banner 'zpool'

# pick the largest disk available
DISK=$(pfexec diskinfo -pH | sort -k8 -n -r | head -1 | awk '{print $2}')
export DISK
pfexec zpool create -o ashift=12 -f cpool "$DISK"
pfexec zfs create -o mountpoint=/ci cpool/ci

if [[ $(curl -s http://catacomb.eng.oxide.computer:12346/trim-me) =~ "true" ]]; then
pfexec zpool trim cpool
while [[ ! $(zpool status -t cpool) =~ "100%" ]]; do sleep 10; done
fi

pfexec chown "$UID" /ci
cd /ci
export FALCON_DATASET="cpool/falcon"

banner 'setup'

cp /input/build-interop/work/dhcp-server .
cp /input/build/work/release/falcon-lab .
cp /input/build/work/release/mgd .
cp /input/build/work/release/ddmd .

chmod +x dhcp-server falcon-lab mgd ddmd

mkdir -p cargo-bay
mv mgd cargo-bay/
mv ddmd cargo-bay/

export EXT_INTERFACE=${EXT_INTERFACE:-igb0}

first=$(bmat address ls -f extra -Ho first)
last=$(bmat address ls -f extra -Ho last)
gw=$(bmat address ls -f extra -Ho gateway)
server=$(ipadm show-addr "$EXT_INTERFACE"/dhcp -po ADDR | sed 's#/.*##g')
pfexec ./dhcp-server "$first" "$last" "$gw" "$server" &> /work/dhcp-server.log &

RUST_LOG=debug pfexec ./falcon-lab run \
--dendrite-commit 0c2ab6c341bf9e3802c688961b3bc687b941a144 \
trio-unnumbered
3 changes: 2 additions & 1 deletion .github/buildomat/jobs/test-interop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
#: output_rules = [
#: "/work/*",
#: ]
#
#: enable = false
#:
#: [dependencies.build-interop]
#: job = "build-interop"
#:
#: [dependencies.image]
#: job = "image"
#:

set -x
set -e
Expand Down
Loading