Skip to content

Commit 1cfb0d8

Browse files
committed
Add "embedding tests" to buildkite configuration
1 parent 456efd4 commit 1cfb0d8

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.buildkite/embedding.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# These steps should only run on `sandbox.jl` machines, not `docker`-isolated ones
2+
# since we need nestable sandboxing. The rootfs images being used here are built from
3+
# the `.buildkite/rootfs_images/llvm-passes.jl` file.
4+
agents:
5+
queue: "julia"
6+
# Only run on `sandbox.jl` machines (not `docker`-isolated ones) since we need nestable sandboxing
7+
sandbox.jl: "true"
8+
os: "linux"
9+
10+
steps:
11+
- label: "Run embedding tests"
12+
key: embedding
13+
plugins:
14+
- JuliaCI/julia#v1:
15+
version: 1.6
16+
- staticfloat/sandbox#v1:
17+
rootfs_url: https://github.com/JuliaCI/rootfs-images/releases/download/v1/llvm-passes.tar.gz
18+
rootfs_treehash: "f3ed53f159e8f13edfba8b20ebdb8ece73c1b8a8"
19+
uid: 1000
20+
gid: 1000
21+
commands: |
22+
prefix="/tmp/prefix"
23+
echo "+++ Build julia, deploy to $${prefix}"
24+
make -j$${JULIA_NUM_CORES} JULIA_PRECOMPILE=0 prefix=$${prefix} install
25+
26+
embedding_output="/tmp/embedding-test"
27+
echo "+++ Run embedding tests, deploy to $${embedding_output}""
28+
mkdir -p "$${embedding_output}"
29+
make -j$${JULIA_NUM_CORES} -C test/embedding JULIA="$${prefix}/bin/julia" BIN="$${embedding_output}"
30+
31+
timeout_in_minutes: 60

.buildkite/pipeline.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
steps:
1515
- label: ":buildkite: Launch unsigned pipelines"
1616
commands: |
17+
buildkite-agent pipeline upload .buildkite/whitespace.yml
1718
buildkite-agent pipeline upload .buildkite/llvm_passes.yml
19+
buildkite-agent pipeline upload .buildkite/embedding.yml
1820
agents:
1921
queue: julia

0 commit comments

Comments
 (0)