Skip to content

Commit e77bb61

Browse files
committed
Add FreeBSD testing
Note that we can't do bundle creation on FreeBSD, since our `lldb` can't read the core dump to figure out which libraries were loaded. So we just disallow `create_bundle` on FreeBSD.
1 parent 701cbd2 commit e77bb61

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.buildkite/pipeline.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,24 @@ steps:
214214
os: "macos"
215215
arch: "x86_64"
216216

217+
- label: ":freebsd: :boom: FreeBSD coredumps"
218+
plugins:
219+
- ".buildkite/plugins/coreupload":
220+
core_pattern: "**/*.core"
221+
compressor: "zstd"
222+
lldb_commands:
223+
- "bt"
224+
commands: |
225+
# Enable core dumping
226+
ulimit -c unlimited
227+
228+
# Create a sub-bash and kill it, then ignore its failure
229+
mkdir foo && cd foo
230+
bash -c 'kill -11 $$$$' || true
231+
agents:
232+
queue: "juliaecosystem"
233+
os: "freebsd"
234+
arch: "x86_64"
217235

218236
- wait: ~
219237

lib/common.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ if [[ ! -v "BUILDKITE_PLUGIN_COREUPLOAD_DEBUGGER" ]]; then
4040
fi
4141
fi
4242

43+
# If we're on FreeBSD, disable `CREATE_BUNDLE`:
44+
if [[ $(uname 2>/dev/null) == "FreeBSD" ]] && [[ "${CREATE_BUNDLE}" == "true" ]]; then
45+
die "Cannot use 'create_bundle: true' on FreeBSD!"
46+
fi
47+
48+
4349
# Check for compressor tools
4450
ensure_tool "tar" "needed to compress "
4551
if [[ "${COMPRESSOR}" == "zstd" ]]; then

0 commit comments

Comments
 (0)