Skip to content

Commit 2bafdf6

Browse files
committed
Merge branch 'master' into move-str-beyond-cgen
2 parents 76e60fb + 24e9f68 commit 2bafdf6

128 files changed

Lines changed: 3023 additions & 1523 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/download_full_toml_test_suites.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@
22

33
set -ex
44

5-
rm -rf vlib/toml/tests/testdata/burntsushi vlib/toml/tests/testdata/iarna vlib/toml/tests/testdata/alexcrichton vlib/toml/tests/testdata/large_toml_file_test.toml
5+
rm -rf vlib/toml/tests/testdata/iarna vlib/toml/tests/testdata/toml_rs vlib/toml/tests/testdata/toml_lang vlib/toml/tests/testdata/large_toml_file_test.toml
66

77
./v retry -- ./v download -o vlib/toml/tests/testdata/large_toml_file_test.toml https://gist.githubusercontent.com/Larpon/89b0e3d94c6903851ff15559e5df7a05/raw/62a1f87a4e37bf157f2e0bfb32d85d840c98e422/large_toml_file_test.toml
88

99
./v retry -- git clone -n https://github.com/iarna/toml-spec-tests.git vlib/toml/tests/testdata/iarna
1010
git -C vlib/toml/tests/testdata/iarna checkout 1880b1a
1111

12-
./v retry -- git clone -n https://github.com/toml-lang/toml-test.git vlib/toml/tests/testdata/burntsushi
13-
git -C vlib/toml/tests/testdata/burntsushi checkout f30c716
12+
./v retry -- git clone -n https://github.com/toml-lang/toml-test.git vlib/toml/tests/testdata/toml_lang
13+
git -C vlib/toml/tests/testdata/toml_lang checkout 8bb8d9c
1414

15-
./v retry -- git clone -n https://github.com/toml-rs/toml.git vlib/toml/tests/testdata/alexcrichton
16-
git -C vlib/toml/tests/testdata/alexcrichton reset --hard 499e8c4
15+
# A few history notes of toml-rs (previously alexcrichton):
16+
# commit 7f5472c the test-suite dir moves to the crates/ sub-directory
17+
# commit 8461f7c *a lot* of test files are removed in *hope* that they are covered by the compliance test suite (assumed to be BurntSushi/toml-test, later toml-lang/toml-test)
18+
# commit 9bd454c the last known good commit we can test against
19+
./v retry -- git clone -n https://github.com/toml-rs/toml.git vlib/toml/tests/testdata/toml_rs
20+
git -C vlib/toml/tests/testdata/toml_rs reset --hard 9bd454c

.github/workflows/freebsd_ci.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
- uses: actions/checkout@v6
3131
- name: Tests on FreeBSD with tcc
3232
id: tests-freebsd-tcc
33-
uses: cross-platform-actions/action@v0.30.0
33+
uses: cross-platform-actions/action@v0.32.0
3434
with:
3535
operating_system: freebsd
36-
version: '14.3'
36+
version: '15.0'
3737
memory: 4G
3838
shell: sh
3939
sync_files: runner-to-vm
@@ -46,9 +46,9 @@ jobs:
4646
git config --global --add safe.directory .
4747
gmake
4848
sudo ./v symlink
49-
export VTEST_SHOW_LONGEST_BY_RUNTIME=10
50-
export VTEST_SHOW_LONGEST_BY_COMPTIME=10
51-
export VTEST_SHOW_LONGEST_BY_TOTALTIME=10
49+
export VTEST_SHOW_LONGEST_BY_RUNTIME=3
50+
export VTEST_SHOW_LONGEST_BY_COMPTIME=3
51+
export VTEST_SHOW_LONGEST_BY_TOTALTIME=3
5252
export VFLAGS='-cc tcc -no-retry-compilation'
5353
./v run ci/freebsd_ci.vsh all
5454
@@ -59,10 +59,10 @@ jobs:
5959
- uses: actions/checkout@v6
6060
- name: Tests on FreeBSD with clang
6161
id: tests-freebsd-clang
62-
uses: cross-platform-actions/action@v0.30.0
62+
uses: cross-platform-actions/action@v0.32.0
6363
with:
6464
operating_system: freebsd
65-
version: '14.3'
65+
version: '15.0'
6666
memory: 4G
6767
shell: sh
6868
sync_files: runner-to-vm
@@ -75,9 +75,9 @@ jobs:
7575
git config --global --add safe.directory .
7676
gmake
7777
sudo ./v symlink
78-
export VTEST_SHOW_LONGEST_BY_RUNTIME=10
79-
export VTEST_SHOW_LONGEST_BY_COMPTIME=10
80-
export VTEST_SHOW_LONGEST_BY_TOTALTIME=10
78+
export VTEST_SHOW_LONGEST_BY_RUNTIME=3
79+
export VTEST_SHOW_LONGEST_BY_COMPTIME=3
80+
export VTEST_SHOW_LONGEST_BY_TOTALTIME=3
8181
export VFLAGS='-cc clang'
8282
./v run ci/freebsd_ci.vsh all
8383
@@ -88,10 +88,10 @@ jobs:
8888
- uses: actions/checkout@v6
8989
- name: Tests on FreeBSD with gcc
9090
id: tests-freebsd-gcc
91-
uses: cross-platform-actions/action@v0.30.0
91+
uses: cross-platform-actions/action@v0.32.0
9292
with:
9393
operating_system: freebsd
94-
version: '14.3'
94+
version: '15.0'
9595
memory: 4G
9696
shell: sh
9797
sync_files: runner-to-vm
@@ -104,8 +104,8 @@ jobs:
104104
git config --global --add safe.directory .
105105
gmake
106106
sudo ./v symlink
107-
export VTEST_SHOW_LONGEST_BY_RUNTIME=10
108-
export VTEST_SHOW_LONGEST_BY_COMPTIME=10
109-
export VTEST_SHOW_LONGEST_BY_TOTALTIME=10
107+
export VTEST_SHOW_LONGEST_BY_RUNTIME=3
108+
export VTEST_SHOW_LONGEST_BY_COMPTIME=3
109+
export VTEST_SHOW_LONGEST_BY_TOTALTIME=3
110110
export VFLAGS='-cc gcc'
111111
./v run ci/freebsd_ci.vsh all

.github/workflows/linux_ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
timeout-minutes: 121
2828
env:
2929
VFLAGS: -cc tcc -no-retry-compilation
30-
VTEST_SHOW_LONGEST_BY_RUNTIME: 20
31-
VTEST_SHOW_LONGEST_BY_COMPTIME: 20
32-
VTEST_SHOW_LONGEST_BY_TOTALTIME: 20
30+
VTEST_SHOW_LONGEST_BY_RUNTIME: 3
31+
VTEST_SHOW_LONGEST_BY_COMPTIME: 3
32+
VTEST_SHOW_LONGEST_BY_TOTALTIME: 3
3333
steps:
3434
- uses: actions/checkout@v6
3535
- name: Build v
@@ -85,9 +85,9 @@ jobs:
8585
runs-on: ubuntu-24.04
8686
timeout-minutes: 121
8787
env:
88-
VTEST_SHOW_LONGEST_BY_RUNTIME: 20
89-
VTEST_SHOW_LONGEST_BY_COMPTIME: 20
90-
VTEST_SHOW_LONGEST_BY_TOTALTIME: 20
88+
VTEST_SHOW_LONGEST_BY_RUNTIME: 3
89+
VTEST_SHOW_LONGEST_BY_COMPTIME: 3
90+
VTEST_SHOW_LONGEST_BY_TOTALTIME: 3
9191
steps:
9292
- uses: actions/checkout@v6
9393
- name: Build V
@@ -142,9 +142,9 @@ jobs:
142142
timeout-minutes: 121
143143
env:
144144
VFLAGS: -cc clang
145-
VTEST_SHOW_LONGEST_BY_RUNTIME: 20
146-
VTEST_SHOW_LONGEST_BY_COMPTIME: 20
147-
VTEST_SHOW_LONGEST_BY_TOTALTIME: 20
145+
VTEST_SHOW_LONGEST_BY_RUNTIME: 3
146+
VTEST_SHOW_LONGEST_BY_COMPTIME: 3
147+
VTEST_SHOW_LONGEST_BY_TOTALTIME: 3
148148
steps:
149149
- uses: actions/checkout@v6
150150
- name: Build V

.github/workflows/macos_ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
timeout-minutes: 121
3131
env:
3232
VFLAGS: -cc clang
33-
VTEST_SHOW_LONGEST_BY_RUNTIME: 20
34-
VTEST_SHOW_LONGEST_BY_COMPTIME: 20
35-
VTEST_SHOW_LONGEST_BY_TOTALTIME: 20
33+
VTEST_SHOW_LONGEST_BY_RUNTIME: 3
34+
VTEST_SHOW_LONGEST_BY_COMPTIME: 3
35+
VTEST_SHOW_LONGEST_BY_TOTALTIME: 3
3636
steps:
3737
- uses: actions/checkout@v6
3838
- name: Build V

.github/workflows/openbsd_ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- uses: actions/checkout@v6
3131
- name: Tests on OpenBSD with tcc
3232
id: tests-openbsd-tcc
33-
uses: cross-platform-actions/action@v0.30.0
33+
uses: cross-platform-actions/action@v0.32.0
3434
with:
3535
operating_system: openbsd
3636
version: '7.8'
@@ -46,9 +46,9 @@ jobs:
4646
git config --global --add safe.directory .
4747
gmake
4848
sudo ./v symlink
49-
export VTEST_SHOW_LONGEST_BY_RUNTIME=10
50-
export VTEST_SHOW_LONGEST_BY_COMPTIME=10
51-
export VTEST_SHOW_LONGEST_BY_TOTALTIME=10
49+
export VTEST_SHOW_LONGEST_BY_RUNTIME=3
50+
export VTEST_SHOW_LONGEST_BY_COMPTIME=3
51+
export VTEST_SHOW_LONGEST_BY_TOTALTIME=3
5252
export VFLAGS='-cc tcc -no-retry-compilation'
5353
./v run ci/openbsd_ci.vsh all
5454
@@ -59,7 +59,7 @@ jobs:
5959
- uses: actions/checkout@v6
6060
- name: Tests on OpenBSD with clang
6161
id: tests-openbsd-clang
62-
uses: cross-platform-actions/action@v0.30.0
62+
uses: cross-platform-actions/action@v0.32.0
6363
with:
6464
operating_system: openbsd
6565
version: '7.8'
@@ -75,8 +75,8 @@ jobs:
7575
git config --global --add safe.directory .
7676
gmake
7777
sudo ./v symlink
78-
export VTEST_SHOW_LONGEST_BY_RUNTIME=10
79-
export VTEST_SHOW_LONGEST_BY_COMPTIME=10
80-
export VTEST_SHOW_LONGEST_BY_TOTALTIME=10
78+
export VTEST_SHOW_LONGEST_BY_RUNTIME=3
79+
export VTEST_SHOW_LONGEST_BY_COMPTIME=3
80+
export VTEST_SHOW_LONGEST_BY_TOTALTIME=3
8181
export VFLAGS='-cc clang'
8282
./v run ci/openbsd_ci.vsh all

.github/workflows/riscv64_linux_ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@ jobs:
5050
file ./v
5151
ls -la ./v
5252
./v test vlib/builtin vlib/os vlib/encoding/binary
53+
./v test vlib/v/slow_tests/assembly
5354
VTEST_ONLY=closure ./v test vlib/v/tests

.github/workflows/sanitized_ci.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ jobs:
8585
VJOBS: 1
8686
UBSAN_OPTIONS: print_stacktrace=1:halt_on_error=1:print_suppressions=0:suppressions=/home/runner/work/v/v/.github/workflows/run_sanitizers_undefined.suppressions
8787
VNATIVE_SKIP_LIBC_VV: 1
88-
VTEST_SHOW_LONGEST_BY_RUNTIME: 20
89-
VTEST_SHOW_LONGEST_BY_COMPTIME: 20
90-
VTEST_SHOW_LONGEST_BY_TOTALTIME: 20
88+
VTEST_SHOW_LONGEST_BY_RUNTIME: 3
89+
VTEST_SHOW_LONGEST_BY_COMPTIME: 3
90+
VTEST_SHOW_LONGEST_BY_TOTALTIME: 3
9191
steps:
9292
- uses: actions/checkout@v6
9393
- name: Build V
@@ -118,9 +118,9 @@ jobs:
118118
VJOBS: 1
119119
UBSAN_OPTIONS: print_stacktrace=1:halt_on_error=1:print_suppressions=0:suppressions=/home/runner/work/v/v/.github/workflows/run_sanitizers_undefined.suppressions
120120
VNATIVE_SKIP_LIBC_VV: 1
121-
VTEST_SHOW_LONGEST_BY_RUNTIME: 20
122-
VTEST_SHOW_LONGEST_BY_COMPTIME: 20
123-
VTEST_SHOW_LONGEST_BY_TOTALTIME: 20
121+
VTEST_SHOW_LONGEST_BY_RUNTIME: 3
122+
VTEST_SHOW_LONGEST_BY_COMPTIME: 3
123+
VTEST_SHOW_LONGEST_BY_TOTALTIME: 3
124124
steps:
125125
- uses: actions/checkout@v6
126126
- name: Build V
@@ -151,9 +151,9 @@ jobs:
151151
ASAN_OPTIONS: detect_leaks=1
152152
LSAN_OPTIONS: max_leaks=1:print_suppressions=0:suppressions=/home/runner/work/v/v/.github/workflows/run_sanitizers_leak.suppressions
153153
VNATIVE_SKIP_LIBC_VV: 1
154-
VTEST_SHOW_LONGEST_BY_RUNTIME: 20
155-
VTEST_SHOW_LONGEST_BY_COMPTIME: 20
156-
VTEST_SHOW_LONGEST_BY_TOTALTIME: 20
154+
VTEST_SHOW_LONGEST_BY_RUNTIME: 3
155+
VTEST_SHOW_LONGEST_BY_COMPTIME: 3
156+
VTEST_SHOW_LONGEST_BY_TOTALTIME: 3
157157
steps:
158158
- uses: actions/checkout@v6
159159
- name: Build V
@@ -185,9 +185,9 @@ jobs:
185185
VFLAGS: -cc msvc
186186
VJOBS: 1
187187
VNATIVE_SKIP_LIBC_VV: 1
188-
VTEST_SHOW_LONGEST_BY_RUNTIME: 20
189-
VTEST_SHOW_LONGEST_BY_COMPTIME: 20
190-
VTEST_SHOW_LONGEST_BY_TOTALTIME: 20
188+
VTEST_SHOW_LONGEST_BY_RUNTIME: 3
189+
VTEST_SHOW_LONGEST_BY_COMPTIME: 3
190+
VTEST_SHOW_LONGEST_BY_TOTALTIME: 3
191191
steps:
192192
- uses: actions/checkout@v6
193193
- name: Build
@@ -214,9 +214,9 @@ jobs:
214214
ASAN_OPTIONS: detect_leaks=1
215215
LSAN_OPTIONS: max_leaks=1:print_suppressions=0:suppressions=/home/runner/work/v/v/.github/workflows/run_sanitizers_leak.suppressions
216216
VNATIVE_SKIP_LIBC_VV: 1
217-
VTEST_SHOW_LONGEST_BY_RUNTIME: 20
218-
VTEST_SHOW_LONGEST_BY_COMPTIME: 20
219-
VTEST_SHOW_LONGEST_BY_TOTALTIME: 20
217+
VTEST_SHOW_LONGEST_BY_RUNTIME: 3
218+
VTEST_SHOW_LONGEST_BY_COMPTIME: 3
219+
VTEST_SHOW_LONGEST_BY_TOTALTIME: 3
220220
steps:
221221
- uses: actions/checkout@v6
222222
- name: Build V
@@ -248,9 +248,9 @@ jobs:
248248
VFLAGS: -cc clang -gc none -cflags -fno-omit-frame-pointer
249249
VJOBS: 1
250250
VNATIVE_SKIP_LIBC_VV: 1
251-
VTEST_SHOW_LONGEST_BY_RUNTIME: 20
252-
VTEST_SHOW_LONGEST_BY_COMPTIME: 20
253-
VTEST_SHOW_LONGEST_BY_TOTALTIME: 20
251+
VTEST_SHOW_LONGEST_BY_RUNTIME: 3
252+
VTEST_SHOW_LONGEST_BY_COMPTIME: 3
253+
VTEST_SHOW_LONGEST_BY_TOTALTIME: 3
254254
steps:
255255
- uses: actions/checkout@v6
256256
- name: Build V
@@ -283,9 +283,9 @@ jobs:
283283
VJOBS: 1
284284
LSAN_OPTIONS: detect_leaks=0
285285
VNATIVE_SKIP_LIBC_VV: 1
286-
VTEST_SHOW_LONGEST_BY_RUNTIME: 20
287-
VTEST_SHOW_LONGEST_BY_COMPTIME: 20
288-
VTEST_SHOW_LONGEST_BY_TOTALTIME: 20
286+
VTEST_SHOW_LONGEST_BY_RUNTIME: 3
287+
VTEST_SHOW_LONGEST_BY_COMPTIME: 3
288+
VTEST_SHOW_LONGEST_BY_TOTALTIME: 3
289289
steps:
290290
- uses: actions/checkout@v6
291291
- name: Build V

.github/workflows/wasm_backend_ci.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ on:
1818
- 'vlib/v/preludes/**.v'
1919
- 'vlib/v/gen/wasm/**.v'
2020
- 'vlib/v/gen/wasm/tests/**.v'
21+
- 'vlib/v/gen/wasm/tests/**.vv'
22+
- 'vlib/v/gen/wasm/tests_decompile/**.v'
23+
- 'vlib/v/gen/wasm/tests_decompile/**.vv'
2124
- '**/wasm_backend_ci.yml'
2225
pull_request:
2326
paths:
@@ -36,6 +39,9 @@ on:
3639
- 'vlib/v/preludes/**.v'
3740
- 'vlib/v/gen/wasm/**.v'
3841
- 'vlib/v/gen/wasm/tests/**.v'
42+
- 'vlib/v/gen/wasm/tests/**.vv'
43+
- 'vlib/v/gen/wasm/tests_decompile/**.v'
44+
- 'vlib/v/gen/wasm/tests_decompile/**.vv'
3945
- '**/wasm_backend_ci.yml'
4046

4147
concurrency:
@@ -54,15 +60,26 @@ jobs:
5460
VTEST_ONLY: wasm
5561
steps:
5662
- uses: actions/checkout@v6
63+
5764
- name: Build V
5865
if: runner.os != 'Windows'
5966
run: make -j4
6067
- name: Build V (Windows)
6168
if: runner.os == 'Windows'
6269
run: ./make.bat
63-
- name: Build examples
64-
run: ./v -silent build-examples
70+
71+
- name: Install WABT to get wasm-decompile
72+
if: runner.os != 'Windows'
73+
run: ./v retry -- sudo apt install wabt
74+
6575
- name: Setup Wasmer
6676
uses: wasmerio/setup-wasmer@v3.1
77+
78+
- name: Prebuild the WASM backend
79+
run: ./v cmd/tools/builders/wasm_builder.v
80+
6781
- name: Test the WASM backend
68-
run: ./v -silent test vlib/v/gen/wasm/tests/
82+
run: ./v test vlib/v/gen/wasm/
83+
84+
- name: Build examples
85+
run: ./v build-examples

.github/workflows/windows_ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
timeout-minutes: 90
3030
env:
3131
VFLAGS: -cc gcc
32-
VTEST_SHOW_LONGEST_BY_RUNTIME: 20
33-
VTEST_SHOW_LONGEST_BY_COMPTIME: 20
34-
VTEST_SHOW_LONGEST_BY_TOTALTIME: 20
32+
VTEST_SHOW_LONGEST_BY_RUNTIME: 3
33+
VTEST_SHOW_LONGEST_BY_COMPTIME: 3
34+
VTEST_SHOW_LONGEST_BY_TOTALTIME: 3
3535
steps:
3636
- uses: actions/checkout@v6
3737
- name: Show tool versions
@@ -99,9 +99,9 @@ jobs:
9999
timeout-minutes: 60
100100
env:
101101
VFLAGS: -cc msvc
102-
VTEST_SHOW_LONGEST_BY_RUNTIME: 20
103-
VTEST_SHOW_LONGEST_BY_COMPTIME: 20
104-
VTEST_SHOW_LONGEST_BY_TOTALTIME: 20
102+
VTEST_SHOW_LONGEST_BY_RUNTIME: 3
103+
VTEST_SHOW_LONGEST_BY_COMPTIME: 3
104+
VTEST_SHOW_LONGEST_BY_TOTALTIME: 3
105105
steps:
106106
- uses: actions/checkout@v6
107107
- name: Build
@@ -148,9 +148,9 @@ jobs:
148148
timeout-minutes: 60
149149
env:
150150
VFLAGS: -cc tcc -no-retry-compilation
151-
VTEST_SHOW_LONGEST_BY_RUNTIME: 20
152-
VTEST_SHOW_LONGEST_BY_COMPTIME: 20
153-
VTEST_SHOW_LONGEST_BY_TOTALTIME: 20
151+
VTEST_SHOW_LONGEST_BY_RUNTIME: 3
152+
VTEST_SHOW_LONGEST_BY_COMPTIME: 3
153+
VTEST_SHOW_LONGEST_BY_TOTALTIME: 3
154154
steps:
155155
- uses: actions/checkout@v6
156156
- name: Build with make.bat -tcc

0 commit comments

Comments
 (0)