-
-
Notifications
You must be signed in to change notification settings - Fork 270
[druntime-test]: Fix glibc-aarch64 skipped tests #4971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
e29d8c3
c84b652
d1f74c9
4d2dd8d
0f40c47
305909f
2f6c206
e5c33a1
1ae7808
85cc74b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,12 @@ ifdef IN_LDC | |
include ../../../../dmd/osmodel.mak | ||
endif | ||
|
||
ifeq ($(OS),linux) | ||
# FIXME: detect musl libc robustly; just checking Alpine Linux' apk tool for now | ||
ifeq (1,$(shell which apk &>/dev/null && echo 1)) | ||
IS_MUSL:=1 | ||
ifndef IS_MUSL # LDC defines it externally | ||
ifeq ($(OS),linux) | ||
# FIXME: detect musl libc robustly; just checking Alpine Linux' apk tool for now | ||
ifeq (1,$(shell which apk >/dev/null 2>&1 && echo 1)) | ||
IS_MUSL := 1 | ||
endif | ||
endif | ||
endif | ||
|
||
|
@@ -65,6 +67,33 @@ endif | |
ifeq ($(OS),windows) | ||
TESTS+=winstack | ||
endif | ||
|
||
ifdef IN_LDC | ||
ifeq ($(OS)-$(ARCH),linux-aarch64) | ||
# This hits the "should never happen" default branch in the | ||
# rt.dwarfeh._d_throw_exception:399 unwind switch statement. | ||
# The value is 0xf7fe7fb8 which is complete garbage. | ||
TESTS := $(filter-out memoryerror_null_call,$(TESTS)) | ||
kinke marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
# The aarch64 github runners fail but it works locally | ||
TESTS := $(filter-out memoryerror_%,$(TESTS)) | ||
endif | ||
|
||
ifeq ($(OS),linux) | ||
# These maybe fail with a shared runtime. | ||
# | ||
# CircleCI fails on x86_64, other CI and locally work. | ||
# aarch64 fails locally, shared-only is not tested in CI. | ||
# | ||
# The failure is caused by the backtrace call in | ||
# core.runtime.DefaultTraceInfo.this | ||
ifeq ($(BUILD_SHARED_LIBS),ON) | ||
TESTS := $(filter-out memoryerror_%,$(TESTS)) | ||
endif | ||
$(ROOT)/memoryerror_%: private extra_ldflags.d += -link-defaultlib-shared=false | ||
endif | ||
endif | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the most controversial part. Whenever something only failed for (some) CI systems, I've tried to remove the test on that CI platform only - which is doable for compiler and druntime/Phobos unittests, but the druntime integration tests with their Makefiles are unfortunately a PITA in that regard. Just so that the tests are all included in a normal test run. It might pay off to investigate further, incl. checking whether we can disable based on the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Adding something akin to: TESTS := $(filter-out $(LDC_SKIP_DRUNTIME_TESTS),$(TESTS)) in
Yeah, I agree that we shouldn't skip tests on all runners simply because 1 misbehaves. Yet debugging in online CI is a pretty miserable experience |
||
include ../common.mak | ||
|
||
$(ROOT)/line_trace.done: $(ROOT)/line_trace$(DOTEXE) | ||
|
Uh oh!
There was an error while loading. Please reload this page.