Skip to content

Commit 4b8a263

Browse files
committed
ci: skip long tests to speed up CI
This adds an `is-bottleneck` matrix flag for the following configurations: - Any compiler with MSan - Apple Clang + ASan - Apple Clang + UBSan and, for these entries, skips the AsciiDoc/HTML golden tests and self-doc test while still running all the other tests. This reduces the wall-clock time of the overall CI run by removing the heaviest tests.
1 parent 7cfaeda commit 4b8a263

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
mrdocs-ccflags: {{{ common-ccflags }}} {{{ mrdocs-flags }}}
9494
mrdocs-package-generators: {{#if (ieq os 'windows') }}7Z ZIP WIX{{else}}TGZ TXZ{{/if}}
9595
mrdocs-release-package-artifact: release-packages-{{{ lowercase os }}}
96+
is-bottleneck: {{#if (or msan (and (ieq compiler 'apple-clang') (or asan ubsan))) }}true{{/if}}
9697
output-file: matrix.json
9798
trace-commands: true
9899
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -599,6 +600,7 @@ jobs:
599600
install-prefix: .local
600601
extra-args: |
601602
-D MRDOCS_BUILD_DOCS=OFF
603+
-D MRDOCS_BUILD_TESTS=ON
602604
-D CMAKE_EXE_LINKER_FLAGS="${{ steps.rmatrix.outputs.common-ldflags }}"
603605
-D LLVM_ROOT="${{ steps.rmatrix.outputs.llvm-path }}"
604606
-D jerryscript_ROOT="${{ steps.rmatrix.outputs.third-party-dir }}/jerryscript/install"
@@ -609,14 +611,20 @@ jobs:
609611
-D boost_describe_ROOT="${{ steps.rmatrix.outputs.third-party-dir }}/boost_describe/install"
610612
${{ runner.os == 'Windows' && '-D LibXml2_ROOT=../third-party/libxml2/install' || '' }}
611613
export-compile-commands: true
612-
run-tests: true
614+
run-tests: ${{ !matrix.is-bottleneck }}
615+
configure-tests-flag: ${{ matrix.is-bottleneck && 'MRDOCS_RUN_ALL_TESTS' || 'BUILD_TESTING' }}
613616
install: true
614617
package: ${{ matrix.is-main }}
615618
package-dir: packages
616619
package-generators: ${{ matrix.mrdocs-package-generators }}
617620
package-artifact: false
618621
ctest-timeout: 9000
619622

623+
- name: Reduced Tests (for CI Bottleneck Configs)
624+
if: matrix.is-bottleneck
625+
working-directory: build
626+
run: |
627+
ctest --output-on-failure --timeout 9000 --exclude-regex "mrdocs-golden-tests-(html|adoc)|mrdocs-self-doc"
620628
- name: Check YAML schema
621629
run: |
622630
# Find python

0 commit comments

Comments
 (0)