]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0195: CI: test-suite gets killed for taking too long v9.2.0195
authorChristian Brabandt <cb@256bit.org>
Wed, 18 Mar 2026 20:47:45 +0000 (20:47 +0000)
committerChristian Brabandt <cb@256bit.org>
Wed, 18 Mar 2026 20:51:12 +0000 (20:51 +0000)
Problem:  test_codestyle.vim takes too much time and takes more than
          90s, this contributes to the overall time for all runners and
Solution: Create a dedicated 'make codestyle' target in the testdir
          Makefiles. Remove test_codestyle from the main test list.
          Update GitHub CI to run this check as a separate step
          in the 'normal' features build.
          Increase CI timeout to 45 minutes.

fixes: #19740

Signed-off-by: Christian Brabandt <cb@256bit.org>
.github/workflows/ci.yml
src/testdir/Make_all.mak
src/testdir/Make_mvc.mak
src/testdir/Makefile
src/version.c

index a8948eed9a6f040615ca352bc03f6600764e4a8e..cdfe56c278b1bce26262ee44e5bdebe772757e53 100644 (file)
@@ -84,7 +84,7 @@ jobs:
             architecture: arm64
           - features: normal
             compiler: gcc
-            extra: [vimtags, proto, preproc_indent, encoding]
+            extra: [vimtags, proto, preproc_indent, encoding, codestyle]
           - features: huge
             compiler: gcc
             extra: [no_x11_wl]
@@ -335,7 +335,7 @@ jobs:
           fi
 
       - name: Test
-        timeout-minutes: 30
+        timeout-minutes: 45
         run: |
           make ${SHADOWOPT} ${TEST}
 
@@ -370,6 +370,11 @@ jobs:
             true
           )
 
+      - name: Check Source Code style
+        if: contains(matrix.extra, 'codestyle')
+        run: |
+          make -C src/testdir codestyle
+
       - name: Check preprocessor indent
         if: contains(matrix.extra, 'preproc_indent')
         run: |
index 07bea0702a709bbe2ff019fc6c5b55d334da6eeb..28a5ec663a9f8e860d47686786366e0b8d69ab59 100644 (file)
@@ -112,7 +112,6 @@ NEW_TESTS = \
        test_cmdline \
        test_cmdmods \
        test_cmdwin \
-       test_codestyle \
        test_command_count \
        test_comments \
        test_comparators \
@@ -406,7 +405,6 @@ NEW_TESTS_RES = \
        test_cmdline.res \
        test_cmdmods.res \
        test_cmdwin.res \
-       test_codestyle.res \
        test_command_count.res \
        test_comments.res \
        test_comparators.res \
index 41ecce716585bc460dec8fae0085d0c523cc4a00..5b492d7dc3a8bc5c9e854ddccc49e66b2f942ee3 100644 (file)
@@ -41,6 +41,15 @@ tiny:        nolog tinytests report
 
 benchmark: $(SCRIPTS_BENCH)
 
+codestyle:
+       -@ if exist test_codestyle.res $(RM) test_codestyle.res
+       -@ if exist test.log $(RM) test.log
+       -@ if exist messages $(RM) messages
+       -@ if exist starttime $(RM) starttime
+       @ $(MAKE) -lf Make_mvc.mak VIMPROG=$(VIMPROG) test_codestyle.res
+       @ type messages
+       @ if exist test.log exit 1
+
 report:
        @ rem without the +eval feature test_result.log is a copy of test.log
        @ if exist test.log ( $(CP) test.log test_result.log > nul ) \
index 7c39b47e6dfbe9dc3c757bd90045c7cce5a06af5..2e1d900b8850919ec73527ce5ab09a700fca0b77 100644 (file)
@@ -74,6 +74,14 @@ $(NEW_TESTS):
                exit 1; \
        fi
 
+codestyle:
+       rm -f test_codestyle.res $(CLEANUP_FILES)
+       @MAKEFLAGS=--no-print-directory $(MAKE) -f Makefile test_codestyle.res VIMPROG=$(VIMPROG) XXDPROG=$(XXDPROG) SCRIPTSOURCE=$(SCRIPTSOURCE)
+       @cat messages
+       @if test -f test.log; then \
+               exit 1; \
+       fi
+
 # Run only tests specific for Vim9 script
 test_vim9:
        rm -f test_vim9_*.res $(CLEANUP_FILES)
index acccc10a5b17cb57eb77d082ca5b891628af8059..4a23daa867a9cfd8547823a881d00b7700312450 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    195,
 /**/
     194,
 /**/