Commit graph

1133 commits

Author SHA1 Message Date
Anton-4
7758b8d686
retry on timeout
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-12-16 18:28:44 +01:00
Anton-4
4708a1f52f
retry on gateway timeout
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-12-16 18:26:27 +01:00
Anton-4
f3f80d2a2c
retry on downloadToFile error
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-12-16 18:18:18 +01:00
Anton-4
43dd3d9ed0
Add 'Timeout' for retries
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-12-16 12:23:20 +01:00
Anton-4
27baa11f11
don't ask to report issue for old compiler (#8683)
* dont report issue old compiler

* Increase timeout

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

---------

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-12-15 17:01:43 +01:00
Anton-4
6fabcdeb0e
retry on connectTcp flaky (#8652)
Cleared roc cache at C:\Users\runneradmin\AppData\Roaming\Roc Build succeeded! test +- tests_summary    +- run test fx_platform_test 35/36 passed, 1 failed error: 'fx_platform_test.test.external platform memory alignment regression' failed: Run failed with exit code 3 STDOUT:  STDERR: thread 2760 panic: reached unreachable code C:\a\_temp\0f24a2ca-ec71-410b-9a5b-1091de9378c7\zig-aarch64-windows-0.15.2\lib\std\fs\Dir.zig:1642:35: 0x7ff65697cb67 in makeOpenDirAccessMaskW (roc_zcu.obj)         .OBJECT_PATH_NOT_FOUND => return error.FileNotFound,                                   ^ C:\a\_temp\0f24a2ca-ec71-410b-9a5b-1091de9378c7\zig-aarch64-windows-0.15.2\lib\std\fs\Dir.zig:1574:21: 0x7ff6567c91b7 in openDirW (roc_zcu.obj)         else => |e| return e,                     ^ C:\a\_temp\0f24a2ca-ec71-410b-9a5b-1091de9378c7\zig-aarch64-windows-0.15.2\lib\std\fs\Dir.zig:1448:13: 0x7ff6565e253b in openDir (roc_zcu.obj)             return self.openDirW(sub_path_w.span().ptr, args);             ^ C:\a\_temp\0f24a2ca-ec71-410b-9a5b-1091de9378c7\zig-aarch64-windows-0.15.2\lib\std\net.zig:937:39: 0x7ff656b14e57 in getAddressList (roc_zcu.obj)                 .WSAHOST_NOT_FOUND => return error.UnknownHostName,                                       ^ C:\a\_temp\0f24a2ca-ec71-410b-9a5b-1091de9378c7\zig-aarch64-windows-0.15.2\lib\std\net.zig:837:18: 0x7ff656d79307 in tcpConnectToHost (roc_zcu.obj)     const list = try getAddressList(allocator, name, port);                  ^ C:\a\_temp\0f24a2ca-ec71-410b-9a5b-1091de9378c7\zig-aarch64-windows-0.15.2\lib\std\http\Client.zig:1441:34: 0x7ff656d2b843 in connectTcpOptions (roc_zcu.obj)         error.UnknownHostName => return error.UnknownHostName,                                  ^ C:\a\_temp\0f24a2ca-ec71-410b-9a5b-1091de9378c7\zig-aarch64-windows-0.15.2\lib\std\http\Client.zig:1408:5: 0x7ff656d2bbdb in connectTcp (roc_zcu.obj)     return connectTcpOptions(client, .{ .host = host, .port = port, .protocol = protocol });     ^ C:\a\_temp\0f24a2ca-ec71-410b-9a5b-1091de9378c7\zig-aarch64-windows-0.15.2\lib\std\http\Client.zig:1583:14: 0x7ff656cbfb57 in connect (roc_zcu.obj)     } orelse return client.connectTcp(host, port, protocol);              ^ C:\a\_temp\0f24a2ca-ec71-410b-9a5b-1091de9378c7\zig-aarch64-windows-0.15.2\lib\std\http\Client.zig:1699:18: 0x7ff656c1785f in request (roc_zcu.obj)         break :c try client.connect(host_name, uriPort(uri, protocol), protocol);                  ^ C:\a\_temp\0f24a2ca-ec71-410b-9a5b-1091de9378c7\zig-aarch64-windows-0.15.2\lib\std\http\Client.zig:1789:15: 0x7ff656b15adf in fetch (roc_zcu.obj)     var req = try request(client, method, uri, .{               ^ C:\a\_temp\0f24a2ca-ec71-410b-9a5b-1091de9378c7\zig-aarch64-windows-0.15.2\lib\std\debug.zig:559:14: 0x7ff656564ac7 in assert (roc_zcu.obj)     if (!ok) unreachable; // assertion failure              ^ C:\a\_temp\0f24a2ca-ec71-410b-9a5b-1091de9378c7\zig-aarch64-windows-0.15.2\lib\std\os\windows.zig:596:11: 0x7ff6565673bf in CloseHandle (roc_zcu.obj)     assert(ntdll.NtClose(hObject) == .SUCCESS);           ^ C:\a\_temp\0f24a2ca-ec71-410b-9a5b-1091de9378c7\zig-aarch64-windows-0.15.2\lib\std\fs\File.zig:204:28: 0x7ff65656e1db in close (roc_zcu.obj)         windows.CloseHandle(self.handle);                            ^ C:\a\roc\roc\src\unbundle\download.zig:249:23: 0x7ff6569c052b in downloadToFile (roc_zcu.obj)             file.close();                       ^ C:\a\roc\roc\src\unbundle\download.zig:134:45: 0x7ff656817ddb in downloadAndExtract (roc_zcu.obj)     const temp_filename = try downloadToFile(allocator, url, extract_dir, base58_hash, &temp_filename_buf);                                             ^ C:\a\roc\roc\src\cli\main.zig:2994:40: 0x7ff65664157f in resolveUrlPlatform (roc_zcu.obj)             download.downloadAndExtract(&gpa_copy, url, new_package_dir) catch |download_err| {                                        ^ C:\a\roc\roc\src\cli\main.zig:2890:34: 0x7ff6566480b7 in resolvePlatformSpecToPaths (roc_zcu.obj)         return resolveUrlPlatform(allocs, platform_spec);                                  ^ C:\a\roc\roc\src\cli\main.zig:972:54: 0x7ff656645b67 in rocRun (roc_zcu.obj)     const platform_paths = resolvePlatformSpecToPaths(allocs, platform_spec, app_dir) catch |err| {                                                      ^ C:\a\roc\roc\src\cli\main.zig:739:23: 0x7ff6567c42b3 in mainArgs (roc_zcu.obj)             try rocRun(allocs, run_args);                       ^ C:\a\roc\roc\src\cli\main.zig:678:13: 0x7ff6567c5923 in main (roc_zcu.obj)     mainArgs(&allocs, args) catch {             ^ C:\a\_temp\0f24a2ca-ec71-410b-9a5b-1091de9378c7\zig-aarch64-windows-0.15.2\lib\std\start.zig:602:28: 0x7ff6567c5efb in main (roc_zcu.obj)     return callMainWithArgs(@as(usize, @intCast(c_argc)), @as([*][*:0]u8, @ptrCast(c_argv)), envp);                            ^ C:\a\_temp\0f24a2ca-ec71-410b-9a5b-1091de9378c7\zig-aarch64-windows-0.15.2\lib\libc\mingw\crt\crtexe.c:259:0: 0x7ff65701a2bb in __tmainCRTStartup (crt2.obj)     mainret = _tmain (argc, argv, envp);  C:\a\_temp\0f24a2ca-ec71-410b-9a5b-1091de9378c7\zig-aarch64-windows-0.15.2\lib\libc\mingw\crt\crtexe.c:179:0: 0x7ff65701a327 in mainCRTStartup (crt2.obj)   ret = __tmainCRTStartup ();  ???:?:?: 0x7ffbb394873f in ??? (KERNEL32.DLL) ???:?:?: 0x7ffbb6ae4463 in ??? (ntdll.dll)  C:\a\roc\roc\src\cli\test\fx_platform_test.zig:69:17: 0x7ff65e775a4f in checkSuccess (fx_platform_test_zcu.obj)                 return error.RunFailed;                 ^ C:\a\roc\roc\src\cli\test\fx_platform_test.zig:1163:5: 0x7ff65e780943 in test.external platform memory alignment regression (fx_platform_test_zcu.obj)     try checkSuccess(run_result);     ^ error: while executing test 'fx_test_specs.test.find by path works', the following test command failed: "C:\\Users\\runneradmin\\AppData\\Local\\zig\\o\\47d06347fb2b8bb1799a7b19156ede3f\\fx_platform_test.exe" "--cache-dir=C:\\Users\\runneradmin\\AppData\\Local\\zig" --seed=0x59c23868 --listen=-  Build Summary: 86/89 steps succeeded; 1 failed; 1908/1912 tests passed; 3 skipped; 1 failed test transitive failure +- tests_summary transitive failure    +- run test fx_platform_test 35/36 passed, 1 failed  error: the following build command failed with exit code 1: C:\Users\runneradmin\AppData\Local\zig\o\8f4b00b4a8d55e5b952be7182a09f3b9\build.exe C:\a\_temp\0f24a2ca-ec71-410b-9a5b-1091de9378c7\zig-aarch64-windows-0.15.2\zig.exe C:\a\_temp\0f24a2ca-ec71-410b-9a5b-1091de9378c7\zig-aarch64-windows-0.15.2\lib C:\a\roc\roc C:\Users\runneradmin\AppData\Local\zig C:\Users\runneradmin\AppData\Local\zig --seed 0x59c23868 -Z96370e066f7f6be0 test -Dfuzz -Dsystem-afl=false

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-12-12 19:16:11 +01:00
Luke Boswell
17b87a954f
refactor to use common runner for test platforms 2025-12-09 11:06:04 +11:00
Luke Boswell
5c6350336d
WIP - adding more reporting, restore glibc support 2025-12-09 09:51:47 +11:00
Luke Boswell
bb8d1d221b
cross-compilation changes, remove glibc, simplify test runner and CI 2025-12-08 12:51:19 +11:00
Luke Boswell
433aca7548
Merge remote-tracking branch 'remote/main' into roc-build 2025-12-08 11:37:35 +11:00
Luke Boswell
7298682f25
Merge remote-tracking branch 'remote/main' into fx-behvaiour-tests 2025-12-08 10:19:15 +11:00
Richard Feldman
ed95a91257
musl only 2025-12-07 17:29:47 -05:00
Richard Feldman
c116e986ef
Fix valgrind error 2025-12-07 15:25:32 -05:00
Luke Boswell
5473853fb5
add required package for valgrind 2025-12-05 02:30:23 +11:00
Luke Boswell
25e6832643
merge remote, improve fx test runner 2025-12-04 10:42:44 +11:00
Anton-4
0a11193943
Add missing fx tests (#8556)
* add missing fx tests

* cleanup
2025-12-03 18:00:32 +01:00
Luke Boswell
de31b1808b
changes to cross-compilation for CI 2025-12-03 17:26:20 +11:00
Richard Feldman
ada586b9a3
Check formatting on CI 2025-12-02 21:50:54 -05:00
Luke Boswell
dbdb091a9d
delete app stub 2025-12-02 22:06:50 +11:00
Anton-4
c0dda7f9d6
ubuntu 22 run fx_platform tests (#8496)
* filter just fx_platform

* debug prints

* fmt, skip some tests

* just check matching CPU arch

* back to normal ci_zig.yml
2025-11-29 13:33:15 +01:00
Anton-4
15fabf1ca4
fix permissions + no old CI 2025-11-27 22:27:33 +01:00
Anton-4
9abf5c7c26
comment out valgrind fx app tests for now 2025-11-27 20:44:23 +01:00
Anton-4
cf5bb467d9
more valgrind tests 2025-11-27 20:42:29 +01:00
Anton-4
7e2cf43929
--verbose snapshots
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-11-27 11:51:13 +01:00
Anton-4
587c532102
use valgrind 3.26 (#8460)
try latest valgrind with snap
2025-11-26 21:19:36 +01:00
Anton-4
c442c8a088
valgrind wrapper (#8454)
This was the only way I could prevent this warning being spammed thousands of times.
2025-11-26 19:38:06 +01:00
Anton-4
a49a3a3fe0
fix Str.is_empty repl test (#8422)
* fix Str.is_empty repl

* retry on 503

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

---------

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-11-24 16:54:41 +01:00
Richard Feldman
7987ac2c27
Move to zig_lints.zig 2025-11-22 14:49:09 -05:00
Anton-4
15b4fc893e
cleanup addMainExe (#8403)
* cleanup addMainExe

* retry on 503

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

---------

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-11-21 12:26:22 +01:00
Anton-4
9fafa499e6
fix bad path on check error (#8398)
* fix bad path on check error

* CI ignore .rules changes

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

---------

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-11-19 19:09:29 +01:00
Anton-4
988ceab26d
use retry action everywhere (#8399) 2025-11-19 19:08:49 +01:00
Anton-4
10fb170c2e
Check all defined tests are actually run + fixes (#8375)
* initial check wiring script

* use wiring script + fixes

* add assertNoErrors

* test fixes

* add wiring check exception

* Add check_test_wiring.zig to CI manager filters

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

---------

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-11-11 18:54:17 +01:00
Anton-4
e1df3bea79
use same Dcpu flag as releases (#8357)
* use same Dcpu flag as releases

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* macos x64 fixes

* fix test-playground

Restored the playground WASM builtin loader to use the proven field-by-field ModuleEnv deserialization logic (matching the runtime loader) so pointer relocation, imports, and identifier lookups are reconstructed correctly inside WASM instead of tripping the error.TrapUnreachable immediately after loadCompiledModule.

* make it DRY

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* better comments

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* empty string does not work

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* final flag fix

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* Remove unused artifact names 

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

---------

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-11-08 14:43:51 +01:00
Anton-4
e07fa32145
nix fixes 2025-10-31 13:17:11 +01:00
Anton-4
265c51c00d
Merge branch 'main' into more-cli-binary-tests 2025-10-31 10:16:57 +01:00
Anton-4
9b3ae56612
make roc binary available to nix tests
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-10-31 10:06:19 +01:00
Richard Feldman
9110659b16
Add hint for when CI fails after origin/main merge 2025-10-26 09:52:43 -04:00
Anton-4
5cf8f44884
Merge branch 'main' into fix-segfault-bench 2025-10-25 10:31:34 +02:00
Anton-4
d380801160
test build ReleaseFast 2025-10-24 19:57:52 +02:00
Richard Feldman
955779c281
Add test-cli build step to run CLI tests 2025-10-23 22:31:07 -04:00
Anton-4
0a9703ffda
normal CI triggers 2025-10-22 17:20:40 +02:00
Anton-4
f7b5aa7538
Merge branch 'main' into test-released-archives 2025-10-22 17:02:00 +02:00
Anton-4
20ff5ffd82
CI tests with ReleaseFast too 2025-10-22 15:32:48 +02:00
Anton-4
615a0bfaa0
Merge branch 'main' of github.com:roc-lang/roc into test-released-archives 2025-10-21 15:10:15 +02:00
Richard Feldman
7bed6e5a8d
Merge pull request #8302 from roc-lang/import-builtins
Import builtins from .roc files
2025-10-20 21:48:14 -04:00
Anton-4
d422174274
add test for releases 2025-10-20 19:42:31 +02:00
Anton-4
505119fb3f
back to normal CI triggers 2025-10-20 15:28:43 +02:00
Anton-4
10b48f6f45
fix ilammy action 2025-10-20 15:03:45 +02:00
Anton-4
595034a723
add workflow new compiler nightly 2025-10-20 13:23:41 +02:00
Richard Feldman
6706a068f0
Merge origin/main - upgrade to Zig 0.15.2
- Resolved conflicts preserving BuiltinTypes architecture
- Updated ArrayList to array_list.Managed for Zig 0.15.2
- Updated Io.Writer API for Zig 0.15.2
- Kept Bool special-case handling in render_helpers
- Kept builtin module loading in all affected files
2025-10-19 14:58:53 -04:00