Skip to content
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

ci: use a v -prod self task, before v test-self to reduce more the CI times in the common case #23062

Closed
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
2 changes: 2 additions & 0 deletions .github/workflows/alpine.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ ls -lat

./v test-cleancode

./v -prod self

./v test-self

./v build-vbinaries
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
./cmd/tools/test_if_v_test_system_works
- name: All code is formatted
run: ./v test-cleancode
- name: Recompile V with -prod, to speed up the rest
run: ./v -prod self
- name: Self tests
run: |
./v -cg cmd\tools\vtest-self.v
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/docker_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ jobs:
run: CC=gcc make
- name: All code is formatted
run: VJOBS=1 ./v test-cleancode
- name: Recompile V with -prod, to speed up the rest
run: ./v -prod self
- name: Run only essential tests
run: VTEST_JUST_ESSENTIAL=1 ./v test-self

Expand All @@ -75,5 +77,7 @@ jobs:
./cmd/tools/test_if_v_test_system_works
- name: All code is formatted
run: ./v test-cleancode
- name: Recompile V with -prod, to speed up the rest
run: ./v -prod self
- name: Test V fixed tests
run: ./v test-self vlib
8 changes: 8 additions & 0 deletions .github/workflows/linux_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ jobs:
echo $VFLAGS
v cmd/tools/test_if_v_test_system_works.v
./cmd/tools/test_if_v_test_system_works
- name: Recompile V with -prod, to speed up the rest
run: v -prod self
- name: Test pure V math module
run: v -exclude @vlib/math/*.c.v test vlib/math/
- name: Self tests
Expand Down Expand Up @@ -161,6 +163,8 @@ jobs:
echo $VFLAGS
v cmd/tools/test_if_v_test_system_works.v
./cmd/tools/test_if_v_test_system_works
- name: Recompile V with -prod, to speed up the rest
run: v -prod self
- name: Test pure V math module
run: v -exclude @vlib/math/*.c.v test vlib/math/
- name: Self tests
Expand Down Expand Up @@ -261,6 +265,8 @@ jobs:
v cmd/tools/test_if_v_test_system_works.v
./cmd/tools/test_if_v_test_system_works

- name: Recompile V with -prod, to speed up the rest
run: v -prod self
- name: Test pure V math module
run: v -exclude @vlib/math/*.c.v test vlib/math/
- name: Self tests
Expand Down Expand Up @@ -331,6 +337,8 @@ jobs:
# - uses: actions/checkout@v4
# - name: Install dependencies for examples and tools
# run: v retry -- sudo apt install --quiet -y musl musl-tools libssl-dev sqlite3 libsqlite3-dev valgrind
# - name: Recompile V with -prod, to speed up the rest
# run: v -prod self
# - name: Recompile V with -cg
# run: v -cg -o v cmd/v
# # - name: Test v binaries
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/periodic_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ jobs:
- name: Build V (Windows)
if: runner.os == 'Windows'
run: ./make.bat -msvc && ./v -o v2.exe cmd/v && ./v2 -showcc -o v.exe cmd/v && ./v doctor
- name: Recompile V with -prod, to speed up the rest
run: ./v -prod self
- name: Test
run: ./v -d network test-self vlib/net
10 changes: 9 additions & 1 deletion .github/workflows/tools_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
run: make -j4 && ./v -showcc -o v cmd/v && ./v doctor
- name: Code in cmd/ is formatted
run: ./v fmt -verify cmd/
- name: Recompile V with -prod, to speed up the rest
run: ./v -prod self
- name: Test
run: ./v test-self cmd
- name: Test (-cstrict)
Expand Down Expand Up @@ -71,7 +73,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build V
run: make -j4 && ./v -showcc -o v cmd/v && ./v doctor
run: make && ./v -showcc -o v cmd/v && ./v doctor
- name: Recompile V with -prod, to speed up the rest
run: ./v -prod self
- name: Test
run: ./v test-self cmd
- name: Test (-cstrict)
Expand All @@ -89,6 +93,8 @@ jobs:
- uses: actions/checkout@v4
- name: Build V
run: ./make.bat -${{ matrix.cc }} && ./v -o v2.exe cmd/v && ./v2 -showcc -o v.exe cmd/v && ./v doctor
- name: Recompile V with -prod, to speed up the rest
run: ./v -prod self
- name: Test
run: ./v test-self cmd
- name: Test (-cstrict)
Expand Down Expand Up @@ -117,6 +123,8 @@ jobs:
run: |
./v cmd/tools/test_if_v_test_system_works.v
./cmd/tools/test_if_v_test_system_works
- name: Recompile V with -prod, to speed up the rest
run: ./v -prod self
- name: Test
run: ./v test-self cmd
- name: Test (-cstrict)
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/windows_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:
echo $VFLAGS
v cmd/tools/test_if_v_test_system_works.v
./cmd/tools/test_if_v_test_system_works
- name: Recompile V with -prod, to speed up the rest
run: v -prod self
- name: Test pure V math module
run: v -exclude @vlib/math/*.c.v test vlib/math/
- name: Self tests
Expand Down Expand Up @@ -110,6 +112,8 @@ jobs:
echo $VFLAGS
v cmd/tools/test_if_v_test_system_works.v
./cmd/tools/test_if_v_test_system_works
- name: Recompile V with -prod, to speed up the rest
run: v -prod self
- name: Test pure V math module
run: v -exclude @vlib/math/*.c.v test vlib/math/
- name: Self tests
Expand Down Expand Up @@ -160,6 +164,8 @@ jobs:
run: |
v cmd/tools/test_if_v_test_system_works.v
.\cmd\tools\test_if_v_test_system_works.exe
- name: Recompile V with -prod, to speed up the rest
run: v -prod self
- name: Verify `v vlib/v/gen/c/coutput_test.v` works
run: v vlib/v/gen/c/coutput_test.v
- name: Make sure running TCC64 instead of TCC32
Expand Down Expand Up @@ -200,7 +206,8 @@ jobs:
# run: |
# v cmd/tools/test_if_v_test_system_works.v
# .\cmd\tools\test_if_v_test_system_works.exe
#
# - name: Recompile V with -prod, to speed up the rest
# run: v -prod self
# - name: Verify `v vlib/v/gen/c/coutput_test.v` works
# run: |
# v vlib/v/gen/c/coutput_test.v
Expand Down
Loading