mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-10 04:50:31 -04:00
chore: skip slow tests for additional cross-compiled builds
This commit is contained in:
parent
846300baf4
commit
a1b945cce4
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -292,16 +292,19 @@ jobs:
|
|||||||
build_dist: alpine
|
build_dist: alpine
|
||||||
build_type: clang-relsize-lto-ninja-static
|
build_type: clang-relsize-lto-ninja-static
|
||||||
cross_arch: riscv64
|
cross_arch: riscv64
|
||||||
|
skip_slow_tests: true
|
||||||
|
|
||||||
- build_arch: amd64
|
- build_arch: amd64
|
||||||
build_dist: alpine
|
build_dist: alpine
|
||||||
build_type: clang-release-ninja-static
|
build_type: clang-release-ninja-static
|
||||||
cross_arch: riscv64
|
cross_arch: riscv64
|
||||||
|
skip_slow_tests: true
|
||||||
|
|
||||||
- build_arch: amd64
|
- build_arch: amd64
|
||||||
build_dist: alpine
|
build_dist: alpine
|
||||||
build_type: gcc-release-ninja-static
|
build_type: gcc-release-ninja-static
|
||||||
cross_arch: riscv64
|
cross_arch: riscv64
|
||||||
|
skip_slow_tests: true
|
||||||
|
|
||||||
- build_arch: amd64
|
- build_arch: amd64
|
||||||
build_dist: alpine
|
build_dist: alpine
|
||||||
@ -312,16 +315,19 @@ jobs:
|
|||||||
build_dist: alpine
|
build_dist: alpine
|
||||||
build_type: clang-relsize-lto-ninja-static
|
build_type: clang-relsize-lto-ninja-static
|
||||||
cross_arch: i386
|
cross_arch: i386
|
||||||
|
skip_slow_tests: true
|
||||||
|
|
||||||
- build_arch: amd64
|
- build_arch: amd64
|
||||||
build_dist: alpine
|
build_dist: alpine
|
||||||
build_type: clang-release-ninja-static
|
build_type: clang-release-ninja-static
|
||||||
cross_arch: i386
|
cross_arch: i386
|
||||||
|
skip_slow_tests: true
|
||||||
|
|
||||||
- build_arch: amd64
|
- build_arch: amd64
|
||||||
build_dist: alpine
|
build_dist: alpine
|
||||||
build_type: gcc-release-ninja-static
|
build_type: gcc-release-ninja-static
|
||||||
cross_arch: i386
|
cross_arch: i386
|
||||||
|
skip_slow_tests: true
|
||||||
|
|
||||||
- build_arch: amd64
|
- build_arch: amd64
|
||||||
build_dist: alpine
|
build_dist: alpine
|
||||||
@ -332,11 +338,13 @@ jobs:
|
|||||||
build_dist: alpine
|
build_dist: alpine
|
||||||
build_type: clang-relsize-lto-ninja-static
|
build_type: clang-relsize-lto-ninja-static
|
||||||
cross_arch: arm
|
cross_arch: arm
|
||||||
|
skip_slow_tests: true
|
||||||
|
|
||||||
- build_arch: amd64
|
- build_arch: amd64
|
||||||
build_dist: alpine
|
build_dist: alpine
|
||||||
build_type: clang-release-ninja-static
|
build_type: clang-release-ninja-static
|
||||||
cross_arch: arm
|
cross_arch: arm
|
||||||
|
skip_slow_tests: true
|
||||||
|
|
||||||
######### fails: static_assert(std::atomic<bool>::is_always_lock_free);
|
######### fails: static_assert(std::atomic<bool>::is_always_lock_free);
|
||||||
# - build_arch: amd64
|
# - build_arch: amd64
|
||||||
@ -355,6 +363,7 @@ jobs:
|
|||||||
build_arch: ${{ matrix.build_arch }}
|
build_arch: ${{ matrix.build_arch }}
|
||||||
build_dist: ${{ matrix.build_dist }}
|
build_dist: ${{ matrix.build_dist }}
|
||||||
cross_arch: ${{ matrix.cross_arch }}
|
cross_arch: ${{ matrix.cross_arch }}
|
||||||
|
skip_slow_tests: ${{ matrix.skip_slow_tests || false }}
|
||||||
build_from_tarball: true
|
build_from_tarball: true
|
||||||
upload_coverage: ${{ matrix.build_type == 'clang-debug-coverage-ninja' }}
|
upload_coverage: ${{ matrix.build_type == 'clang-debug-coverage-ninja' }}
|
||||||
upload_artifacts: ${{ endsWith(matrix.build_type, '-static') }}
|
upload_artifacts: ${{ endsWith(matrix.build_type, '-static') }}
|
||||||
|
5
.github/workflows/docker-run-build.yml
vendored
5
.github/workflows/docker-run-build.yml
vendored
@ -29,6 +29,10 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
skip_slow_tests:
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@ -72,6 +76,7 @@ jobs:
|
|||||||
--mount type=bind,source=${HOME}/github-local,target=/local \
|
--mount type=bind,source=${HOME}/github-local,target=/local \
|
||||||
--mount type=bind,source=/mnt/opensource/artifacts/dwarfs,target=/artifacts \
|
--mount type=bind,source=/mnt/opensource/artifacts/dwarfs,target=/artifacts \
|
||||||
${{ inputs.build_from_tarball && '--env BUILD_FROM_TARBALL=1' || '' }} \
|
${{ inputs.build_from_tarball && '--env BUILD_FROM_TARBALL=1' || '' }} \
|
||||||
|
${{ inputs.skip_slow_tests && '--env DWARFS_SKIP_SLOW_TESTS=1' || '' }} \
|
||||||
--env BUILD_TYPE=${{ inputs.build_type }} \
|
--env BUILD_TYPE=${{ inputs.build_type }} \
|
||||||
--env BUILD_ARCH=${{ inputs.build_arch }} \
|
--env BUILD_ARCH=${{ inputs.build_arch }} \
|
||||||
--env CROSS_ARCH=${{ inputs.cross_arch }} \
|
--env CROSS_ARCH=${{ inputs.cross_arch }} \
|
||||||
|
@ -136,7 +136,7 @@ def main():
|
|||||||
if args.ninja and step.get("name") == "Run Build":
|
if args.ninja and step.get("name") == "Run Build":
|
||||||
run_id = job.get("run_id", 0)
|
run_id = job.get("run_id", 0)
|
||||||
# get arch, dist, config from "linux (arm64v8, alpine, clang-release-ninja-static) / docker-build"
|
# get arch, dist, config from "linux (arm64v8, alpine, clang-release-ninja-static) / docker-build"
|
||||||
m = re.match(r"linux \(([^,]+), ([^,]+), ([^,]+)(, ([^,]+))?\)", name)
|
m = re.match(r"linux \(([^,]+), ([^,]+), ([^,]+)(, ([^,]+))?(, true)?\)", name)
|
||||||
if m:
|
if m:
|
||||||
cross = m.group(5) if m.group(5) else ""
|
cross = m.group(5) if m.group(5) else ""
|
||||||
build_log_path = f"{args.log_base}/{run_id}/build-{m.group(1)},{cross},{m.group(2)},{m.group(3)}.log"
|
build_log_path = f"{args.log_base}/{run_id}/build-{m.group(1)},{cross},{m.group(2)},{m.group(3)}.log"
|
||||||
|
@ -476,6 +476,8 @@ block_merger_test(size_t const max_runs) {
|
|||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
TEST(block_merger, random) {
|
TEST(block_merger, random) {
|
||||||
|
DWARFS_SLOW_TEST();
|
||||||
|
|
||||||
using merger_type = internal::multi_queue_block_merger<size_t, block>;
|
using merger_type = internal::multi_queue_block_merger<size_t, block>;
|
||||||
|
|
||||||
auto max_runs = skip_slow_tests() ? max_runs_regular_quick : max_runs_regular;
|
auto max_runs = skip_slow_tests() ? max_runs_regular_quick : max_runs_regular;
|
||||||
@ -487,6 +489,8 @@ TEST(block_merger, random) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TEST(block_merger, random_sized) {
|
TEST(block_merger, random_sized) {
|
||||||
|
DWARFS_SLOW_TEST();
|
||||||
|
|
||||||
using merger_type =
|
using merger_type =
|
||||||
internal::multi_queue_block_merger<size_t, sized_block,
|
internal::multi_queue_block_merger<size_t, sized_block,
|
||||||
sized_block_merger_policy>;
|
sized_block_merger_policy>;
|
||||||
@ -500,6 +504,8 @@ TEST(block_merger, random_sized) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TEST(block_merger, random_sized_partial) {
|
TEST(block_merger, random_sized_partial) {
|
||||||
|
DWARFS_SLOW_TEST();
|
||||||
|
|
||||||
using merger_type =
|
using merger_type =
|
||||||
internal::multi_queue_block_merger<size_t, sized_block,
|
internal::multi_queue_block_merger<size_t, sized_block,
|
||||||
sized_block_merger_policy>;
|
sized_block_merger_policy>;
|
||||||
|
@ -2990,6 +2990,8 @@ TEST(mkdwarfs_test, map_file_error) {
|
|||||||
class map_file_error_test : public testing::TestWithParam<char const*> {};
|
class map_file_error_test : public testing::TestWithParam<char const*> {};
|
||||||
|
|
||||||
TEST_P(map_file_error_test, delayed) {
|
TEST_P(map_file_error_test, delayed) {
|
||||||
|
DWARFS_SLOW_TEST();
|
||||||
|
|
||||||
#if defined(__linux__) && defined(__i386__)
|
#if defined(__linux__) && defined(__i386__)
|
||||||
GTEST_SKIP() << "this test is flaky on i386 Linux (SIGPIPE)";
|
GTEST_SKIP() << "this test is flaky on i386 Linux (SIGPIPE)";
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user