Skip to content

Commit 6d9580f

Browse files
authored
Merge branch 'master' into http2_http3
2 parents cc86884 + 1b7486a commit 6d9580f

689 files changed

Lines changed: 26362 additions & 13923 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.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module main
2+
3+
import os
4+
5+
fn show_release_tag_for(now string) string {
6+
script_path := os.join_path(os.dir(@FILE), 'workflows', 'show_manual_release_cmd.vsh')
7+
cmd := 'V_RELEASE_TAG_NOW="${now}" ${os.quoted_path(@VEXE)} run ${os.quoted_path(script_path)}'
8+
res := os.execute(cmd)
9+
assert res.exit_code == 0, res.output
10+
for line in res.output.split_into_lines() {
11+
if line.contains('current release_tag: ') {
12+
return line.all_after('current release_tag: ')
13+
}
14+
}
15+
panic('missing release tag in output:\n${res.output}')
16+
}
17+
18+
fn test_show_manual_release_cmd_uses_iso_week_year() {
19+
test_cases := {
20+
'2025-12-28 00:00:00': 'weekly.2025.52'
21+
'2025-12-29 00:00:00': 'weekly.2026.01'
22+
'2025-12-31 00:00:00': 'weekly.2026.01'
23+
'2026-01-01 00:00:00': 'weekly.2026.01'
24+
'2026-01-04 00:00:00': 'weekly.2026.01'
25+
'2026-01-05 00:00:00': 'weekly.2026.02'
26+
}
27+
for input, expected in test_cases {
28+
assert show_release_tag_for(input) == expected
29+
}
30+
}

.github/workflows/compile_v_with_vtcc.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@ show "Clone vtcc"
1313
.github/workflows/retry.sh git clone https://github.com/felipensp/vtcc --branch stable --quiet vtcc/
1414
du -s vtcc/
1515
## TODO: just `./v vtcc`, later will cause V, to detect the compiler as tcc (which it is), and add `-fwrapv`, which causes the vtcc compiler to panic currently
16-
show "Patch vtcc: fix int(0x8000_0000) overflow (felipensp/vtcc#6 / vlang/v#26853)"
16+
show "Patch vtcc: fix int(0x8000_0000) overflow (felipensp/vtcc#7 / vlang/v#26853)"
1717
## 0x8000_0000 = 2147483648 overflows V's int (max 2147483647).
18-
## This causes a V warning (soon: hard error) and TCC rejects the generated C.
19-
sed -i 's/const shf_private = int(0x8000_0000)/const shf_private = u32(0x8000_0000)/' vtcc/src/tccelf.v
18+
## V warns now and will make this a hard error soon; TCC then rejects the generated C.
19+
## Use -2147483648 (INT_MIN) — same bit pattern in two's complement, keeps type as int,
20+
## so no cascading type changes needed in new_section/new_symtab/struct Section.
21+
## Remove this patch once felipensp/vtcc#7 is merged into the stable branch.
22+
sed -i 's/const shf_private = int(0x8000_0000)/const shf_private = -2147483648/' vtcc/src/tccelf.v
2023

2124
show "Compile vtcc"
2225
cd vtcc/

.github/workflows/cross_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
run: |
113113
echo %VFLAGS%
114114
echo $VFLAGS
115-
.\make.bat -msvc
115+
.\makev.bat -msvc
116116
- name: TODO v_win.c can be compiled and run with -os windows
117117
run: |
118118
.\v.exe -os windows -cc msvc -showcc -o v2.exe cmd\v

.github/workflows/debug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
run: |
1515
echo %VFLAGS%
1616
echo $VFLAGS
17-
.\make.bat -msvc
17+
.\makev.bat -msvc
1818
.\v.exe -cflags /WX self
1919
- name: Install dependencies
2020
run: |

.github/workflows/more_extensive_but_slower_tests_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: make -j4 && ./v symlink
3636
- name: Build V (Windows)
3737
if: runner.os == 'Windows'
38-
run: ./make.bat && ./v symlink
38+
run: ./makev.bat && ./v symlink
3939

4040
- name: Run additional crypto tests
4141
run: |

.github/workflows/paths_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
dir
105105
cd 'path with some $punctuation, and some spaces'
106106
dir
107-
.\make.bat -tcc
107+
.\makev.bat -tcc
108108
- name: v doctor
109109
run: |
110110
cd 'path with some $punctuation, and some spaces'

.github/workflows/periodic_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ jobs:
3535
run: make -j4 && ./v -showcc -o v cmd/v && ./v doctor
3636
- name: Build V (Windows)
3737
if: runner.os == 'Windows'
38-
run: ./make.bat -msvc && ./v -o v2.exe cmd/v && ./v2 -showcc -o v.exe cmd/v && ./v doctor
38+
run: ./makev.bat -msvc && ./v -o v2.exe cmd/v && ./v2 -showcc -o v.exe cmd/v && ./v doctor
3939
- name: Test
4040
run: ./v -d network -silent test-self vlib/net

.github/workflows/release_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- name: Compile release binaries (Windows)
6767
if: runner.os == 'Windows'
6868
run: |
69-
./make.bat -msvc
69+
./makev.bat -msvc
7070
./v -prod -cc msvc -o cmd/vprod.exe cmd/v
7171
./v -prod -cc msvc cmd/tools/vup.v
7272
./v -prod -cc msvc cmd/tools/vdoctor.v

.github/workflows/run_sanitizers_undefined.suppressions

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,6 @@ function:picoev__Picoev_set_timeout
138138
function:picoev__Picoev_update_events
139139
function:picoev__test_if_all_file_descriptors_are_properly_initialized
140140

141-
function:vweb__tests__vweb_test_server__App_index
142-
function:vweb__tests__vweb_test_server__start_in_background
143-
function:vweb__RoutePair_test_param
144141
function:veb__RoutePair_test_param
145142
function:veb__test_load_files_translations
146143

.github/workflows/sanitized_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ jobs:
200200
run: |
201201
echo %VFLAGS%
202202
echo $VFLAGS
203-
.\make.bat -msvc
203+
.\makev.bat -msvc
204204
.\v.exe self
205205
- name: V doctor
206206
run: .\v.exe doctor

0 commit comments

Comments
 (0)