Skip to content

Commit b82f596

Browse files
committed
WIP: [presets] Introduce slimmer preset for lldb sanitizer testing
Add a new "buildbot_incremental,lldb_asan_ubsan" preset. This differs from the existing preset used to do sanitized lldb testing on ci.swift.org, "buildbot_incremental_asan_ubsan,tools=RDA,stdlib=RDA", in the following ways: - It builds the swift benchmarks, with an unoptimized benchmark driver. This is to enable stepper testing on CI. For more context, see: swiftlang/llvm-project#2059. - It does not build a sanitized clang or swift. This can save a large amount of time, and make reports from oss-lldb-asan bots more useful. This is still WIP pending more testing. Note: A dry run for the existing buildbot_incremental_asan_ubsan preset does not apply '--skip-build-benchmarks': ``` ./swift/utils/build-script -n --preset "buildbot_incremental_asan_ubsan,tools=RDA,stdlib=RDA" ``` So I'm not yet sure where that comes from. Perhaps the oss-lldb-asan-osx bot is using a different preset? rdar://69589638
1 parent 08612ff commit b82f596

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

utils/build-presets.ini

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,47 @@ skip-test-watchos
486486
enable-asan
487487
enable-ubsan
488488

489+
[preset: buildbot_incremental,lldb_asan_ubsan]
490+
mixin-preset=buildbot_incremental_base
491+
492+
build-subdir=buildbot_incremental_lldb_asan_ubsan
493+
494+
# Build a sanitized lldb. Don't build a sanitized clang/swift.
495+
lldb
496+
lldb-extra-cmake-args=-DLLVM_USE_SANITIZER=Address;Undefined
497+
498+
# Build Release with debug info, so that we can symbolicate backtraces.
499+
release-debuginfo
500+
assertions
501+
502+
# We need to build an unoptimized swift benchmark driver for stepper testing.
503+
# Ditto for the swift stdlib. (LLDB doesn't support stepping through optimized
504+
# swift code yet.)
505+
extra-cmake-options=-DSWIFT_BENCHMARK_UNOPTIMIZED_DRIVER:BOOL=1
506+
debug-swift-stdlib
507+
508+
# Disable non-x86 building/testing.
509+
skip-build-ios
510+
skip-test-ios
511+
skip-build-tvos
512+
skip-test-tvos
513+
skip-build-watchos
514+
skip-test-watchos
515+
stdlib-deployment-targets=macosx-x86_64
516+
swift-primary-variant-sdk=OSX
517+
swift-primary-variant-arch=x86_64
518+
skip-test-swift
519+
skip-test-swiftpm
520+
skip-test-swift-driver
521+
skip-test-llbuild
522+
skip-test-cmark
523+
skip-test-playgroundsupport
524+
skip-test-swiftsyntax
525+
skip-test-skstresstester
526+
skip-test-swiftevolve
527+
indexstore-db=0
528+
sourcekit-lsp=0
529+
489530
[preset: buildbot_incremental_asan,tools=DA,stdlib=RDA]
490531
mixin-preset=buildbot_incremental_base_all_platforms
491532

0 commit comments

Comments
 (0)