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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ jobs:
set -- $BAZEL_CONFIG $BB_ARGS
mkdir -p "$RUNNER_TEMP/exec-log"
# shellcheck disable=SC2086
bazel test --noshow_progress --nocache_test_results --flaky_test_attempts=2 --test_output=all "--execution_log_compact_file=$RUNNER_TEMP/exec-log/launch-smoke.log" "$@" -- //tools/testing:preflight_smoke_test //cli/env:bootstrap_test //cc/tests/fixtures/hello:hello_test //powershell/tests/fixtures/hello:hello_test //zig/tests/fixtures/zig_app/... //dart/tests/fixtures/dart_app/... //dart/tests/fixtures/runtime:all //dart/private/tools:all //zig/tests/fixtures/hello:all //julia/tests/fixtures/hello:all //julia/tests/fixtures/julia_app/... //julia/private/tools/... -//julia/tests/fixtures/hello:hello_standalone_output_test -//julia/tests/fixtures/hello:relocate_test -//julia/private/tools/lint/... -//julia/private/tools/jet/... 2>&1 | tee "$RUNNER_TEMP/launch-smoke.log"
bazel test --noshow_progress --nocache_test_results --flaky_test_attempts=2 --test_output=all "--execution_log_compact_file=$RUNNER_TEMP/exec-log/launch-smoke.log" "$@" -- //tools/testing:preflight_smoke_test //cli/env:bootstrap_test //cc/tests/fixtures/hello:hello_test //powershell/tests/fixtures/hello:hello_test //zig/tests/fixtures/zig_app/... //dart/tests/fixtures/dart_app/... //dart/tests/fixtures/runtime:all //dart/private/tools:all //zig/tests/fixtures/hello:all //julia/tests/fixtures/hello:all //julia/tests/fixtures/julia_app/... //julia/private/tools/... -//julia/tests/fixtures/hello:relocate_test -//julia/private/tools/lint/... -//julia/private/tools/jet/... 2>&1 | tee "$RUNNER_TEMP/launch-smoke.log"
- name: Check the upload holds no secret
id: scan-exec-log
if: always()
Expand Down Expand Up @@ -751,7 +751,7 @@ jobs:
(while sleep 30; do echo "resources: $(free -m | sed -n 2,3p | tr -s ' \n' ' ') | $(df -h / /mnt | tail -2 | tr -s ' \n' ' ')"; done) &
fi
# shellcheck disable=SC2086
bazel test --noshow_progress --nocache_test_results --flaky_test_attempts=2 --test_output=errors --skip_incompatible_explicit_targets "--execution_log_compact_file=$RUNNER_TEMP/exec-log/launch-heavy.log" "$@" //julia/tests/fixtures/hello:hello_standalone_output_test //julia/tests/fixtures/hello:relocate_test //julia/private/tools/lint/... //julia/private/tools/jet/... 2>&1 | tee "$RUNNER_TEMP/launch-heavy.log"
bazel test --noshow_progress --nocache_test_results --flaky_test_attempts=2 --test_output=errors --skip_incompatible_explicit_targets "--execution_log_compact_file=$RUNNER_TEMP/exec-log/launch-heavy.log" "$@" //julia/tests/fixtures/hello:relocate_test //julia/private/tools/lint/... //julia/private/tools/jet/... 2>&1 | tee "$RUNNER_TEMP/launch-heavy.log"
- name: Check the upload holds no secret
id: scan-exec-log
if: always()
Expand Down
32 changes: 32 additions & 0 deletions cc/tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ gcc_unsupported_tests(name = "gcc_unsupported_test")

cc_toolchain_test(
name = "gcc_hello_test",
size = "small",
compiler = "gcc",
tags = ["row:cc_gcc"],
target_compatible_with = [
Expand All @@ -293,6 +294,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "gcc_hello_lib_test",
size = "small",
compiler = "gcc",
tags = ["row:cc_gcc"],
target_compatible_with = [
Expand All @@ -304,6 +306,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "gcc_hello_c_test",
size = "small",
compiler = "gcc",
tags = ["row:cc_gcc"],
target_compatible_with = [
Expand All @@ -315,6 +318,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "gcc_shared_test",
size = "small",
compiler = "gcc",
tags = ["row:cc_gcc"],
target_compatible_with = [
Expand All @@ -326,6 +330,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "gcc_dynamic_libstdcxx_test",
size = "small",
compiler = "gcc",
extra_features = ["dynamic_libstdcxx"],
target_compatible_with = [
Expand All @@ -337,6 +342,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "gcc_asan_test",
size = "small",
compiler = "gcc",
extra_features = ["asan"],
tags = [
Expand All @@ -352,6 +358,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "gcc_ubsan_test",
size = "small",
compiler = "gcc",
extra_features = ["ubsan"],
tags = [
Expand All @@ -367,6 +374,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "gcc_tsan_test",
size = "small",
compiler = "gcc",
extra_features = ["tsan"],
tags = ["no-coverage"],
Expand All @@ -379,6 +387,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "llvm_asan_test",
size = "small",
compiler = "llvm",
llvm_sanitizers = ["asan"],
tags = ["no-coverage"],
Expand All @@ -392,6 +401,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "llvm_ubsan_test",
size = "small",
compiler = "llvm",
llvm_sanitizers = ["ubsan"],
tags = ["no-coverage"],
Expand All @@ -405,6 +415,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "llvm_tsan_test",
size = "small",
compiler = "llvm",
llvm_sanitizers = ["tsan"],
tags = ["no-coverage"],
Expand All @@ -418,6 +429,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "xcode_asan_test",
size = "small",
compiler = "llvm",
extra_features = ["asan"],
tags = ["no-coverage"],
Expand All @@ -430,6 +442,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "xcode_ubsan_test",
size = "small",
compiler = "llvm",
extra_features = ["ubsan"],
tags = ["no-coverage"],
Expand All @@ -442,6 +455,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "xcode_tsan_test",
size = "small",
compiler = "llvm",
extra_features = ["tsan"],
tags = ["no-coverage"],
Expand All @@ -454,6 +468,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "gcc_arm64_hello_test",
size = "small",
compiler = "gcc",
tags = ["row:cc_gcc"],
target_compatible_with = [
Expand All @@ -465,6 +480,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "gcc_arm64_hello_c_test",
size = "small",
compiler = "gcc",
tags = ["row:cc_gcc"],
target_compatible_with = [
Expand All @@ -476,6 +492,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "gcc_arm64_shared_test",
size = "small",
compiler = "gcc",
tags = ["row:cc_gcc"],
target_compatible_with = [
Expand All @@ -487,6 +504,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "gcc_arm64_dynamic_libstdcxx_test",
size = "small",
compiler = "gcc",
extra_features = ["dynamic_libstdcxx"],
tags = ["row:cc_gcc"],
Expand All @@ -499,6 +517,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "gcc_arm64_asan_test",
size = "small",
compiler = "gcc",
extra_features = ["asan"],
tags = [
Expand All @@ -514,6 +533,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "gcc_arm64_ubsan_test",
size = "small",
compiler = "gcc",
extra_features = ["ubsan"],
tags = [
Expand Down Expand Up @@ -542,6 +562,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "msvc_hello_test",
size = "small",
compiler = "msvc",
tags = ["row:cc_msvc"],
target_compatible_with = [
Expand All @@ -553,6 +574,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "msvc_hello_lib_test",
size = "small",
compiler = "msvc",
tags = ["row:cc_msvc"],
target_compatible_with = [
Expand All @@ -564,6 +586,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "msvc_hello_c_test",
size = "small",
compiler = "msvc",
tags = ["row:cc_msvc"],
target_compatible_with = [
Expand All @@ -575,6 +598,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "msvc_shared_test",
size = "small",
compiler = "msvc",
tags = ["row:cc_msvc"],
target_compatible_with = [
Expand All @@ -586,6 +610,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "msvc_c_test",
size = "small",
compiler = "msvc",
tags = ["row:cc_msvc"],
target_compatible_with = [
Expand All @@ -597,6 +622,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "msvc_spaced_test",
size = "small",
compiler = "msvc",
tags = ["row:cc_msvc"],
target_compatible_with = [
Expand All @@ -608,6 +634,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "msvc_shared_dbg_test",
size = "small",
compilation_mode = "dbg",
compiler = "msvc",
tags = ["row:cc_msvc"],
Expand All @@ -620,6 +647,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "msvc_shared_opt_test",
size = "small",
compilation_mode = "opt",
compiler = "msvc",
tags = ["row:cc_msvc"],
Expand All @@ -632,6 +660,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "msvc_static_crt_test",
size = "small",
compiler = "msvc",
extra_features = [
"-dynamic_link_msvcrt",
Expand All @@ -647,6 +676,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "msvc_arm64_hello_test",
size = "small",
compiler = "msvc",
tags = ["row:cc_msvc"],
target_compatible_with = [
Expand All @@ -658,6 +688,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "msvc_arm64_hello_c_test",
size = "small",
compiler = "msvc",
target_compatible_with = [
"@platforms//os:windows",
Expand All @@ -668,6 +699,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "msvc_arm64_shared_test",
size = "small",
compiler = "msvc",
target_compatible_with = [
"@platforms//os:windows",
Expand Down
1 change: 1 addition & 0 deletions cli/adopt/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ rust_test(
"DX_REPO_BAZEL_WRAPPER": "$(rootpath //tools:bazel)",
"DX_SHELLCHECK": "$(rootpath @dx_tools//:shellcheck)",
},
shard_count = 2,
visibility = VIS_CLI + [
"//core/modules:__pkg__",
"//tools/ci:__pkg__",
Expand Down
2 changes: 1 addition & 1 deletion cli/cli/src/exec/error_boundary_launcher_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ impl Consumer {
hang_up(reader.into_inner(), &probe);
fs::write(self.base.join("bazel.log.gate"), "").expect("gate");
let output = child.wait_with_output().expect("dx stops");
drop(done.send(()));
done.send(()).unwrap_or_default();
drop(dx_os_sys::process::signal(-pgid, SIGKILL));
Outcome {
status: output.status,
Expand Down
12 changes: 7 additions & 5 deletions cli/cli/src/test_support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ mod tests {
let (sender, settled) = std::sync::mpsc::channel();
let waiter = dir.clone();
let settler = std::thread::spawn(move || {
drop(sender.send(settles_within(
&waiter,
1,
std::time::Duration::from_secs(30),
)));
sender
.send(settles_within(
&waiter,
1,
std::time::Duration::from_secs(30),
))
.unwrap_or_default();
});
assert!(settled.try_recv().is_err(), "settled while still held");
drop(held);
Expand Down
12 changes: 9 additions & 3 deletions cli/plan/src/slots_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,16 @@ fn a_remote_gate_skips_admission_that_holds_a_local_gate() {
let (extra, extra_err, _) = take_gate(&remote);
assert_eq!((base.index, extra.index), (0, 1));
assert_eq!((base_err.as_str(), extra_err.as_str()), ("", ""));
assert!(!remote_dir.join("admitted").exists(), "remote gate ran admission");
assert!(
!remote_dir.join("admitted").exists(),
"remote gate ran admission"
);
let local_dir = scratch.path().join("local");
let (_slot, _, _) = take_gate(&gate(&local_dir, false));
assert!(local_dir.join("admitted").is_file(), "local gate skipped admission");
assert!(
local_dir.join("admitted").is_file(),
"local gate skipped admission"
);
}

#[test]
Expand Down Expand Up @@ -2288,7 +2294,7 @@ fn a_waiter_polls_while_it_waits_and_stops_once_it_takes_the_slot() {
&mut |_, _| {},
&mut || {
seen.fetch_add(1, std::sync::atomic::Ordering::SeqCst);
drop(polled.send(()));
polled.send(()).unwrap_or_default();
},
&mut |_, _| {},
)
Expand Down
6 changes: 6 additions & 0 deletions cuda/tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ failure_test(

cc_toolchain_test(
name = "msvc_saxpy_device_code_test",
size = "small",
compiler = "msvc",
target_compatible_with = [
"@platforms//os:windows",
Expand All @@ -475,6 +476,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "msvc_rdc_output_test",
size = "small",
compiler = "msvc",
target_compatible_with = [
"@platforms//os:windows",
Expand All @@ -485,6 +487,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "msvc_saxpy_gpu_unavailable_test",
size = "small",
compiler = "msvc",
target_compatible_with = [
"@platforms//os:windows",
Expand All @@ -495,6 +498,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "msvc_gpu_guard_test",
size = "small",
compiler = "msvc",
target_compatible_with = [
"@platforms//os:windows",
Expand All @@ -505,6 +509,7 @@ cc_toolchain_test(

cc_toolchain_test(
name = "msvc_rdc_device_link_hermetic_test",
size = "small",
compiler = "msvc",
target_compatible_with = [
"@platforms//os:windows",
Expand All @@ -525,6 +530,7 @@ test_suite(

cc_toolchain_test(
name = "msvc_hermetic_toolchain_test",
size = "small",
compiler = "msvc",
target_compatible_with = [
"@platforms//os:windows",
Expand Down
Loading
Loading