Commit graph

607 commits

Author SHA1 Message Date
cfc8aee1a6
a lot of test code, plus a one line ".deinit()" fix
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 7m39s
2025-08-25 14:14:15 -07:00
214c580db4
get failing live request under unit test 2025-08-25 13:07:46 -07:00
2fab8ac0b8
add note regarding 0.15.1 status
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 7m43s
2025-08-25 11:08:48 -07:00
ffdd31d7b0
upgrade example to 0.15.1
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 7m51s
2025-08-25 10:39:29 -07:00
e29829f2a0
fix failing s3 test
Some checks failed
AWS-Zig Build / build-zig-amd64-host (push) Failing after 6m25s
Not quite sure the problem I saw earlier in aws.zig, but the data
entering that switch prong is []const u8, so it is fine for what we are
doing
2025-08-25 10:00:50 -07:00
74704506d8
update tests for zig 0.15.1
Some checks failed
AWS-Zig Build / build-zig-amd64-host (push) Failing after 1m41s
This removes the need to spin up a web server for each test, instead,
mocking the necessary methods to do everything in line. This will make
the tests much more resilient, and with the remaining WriterGate changes
expected in zig 0.16, I suspect the mocking will be unnecessary in the
next release.

There are several test issues that remain:

* Two skipped tests in signature verification. This is the most
  concerning of the remaining issues
* Serialization of [][]const u8 was probably broken in zig 0.14.1, but
  the new version has surfaced this issue. Warning messages are being
  sent, and this needs to be tracked down
* One of the tests is failing as S3 storage tier extra header is not
  being offered. I'm not sure what in the upgrade might have changed
  this behavior, but this needs to be investigated
2025-08-24 15:56:36 -07:00
1e8756cc9a
fix runtime panics, set tests to skip for now 2025-08-23 13:34:36 -07:00
b126ec25e8
fix aws.zig tests 2025-08-23 10:56:21 -07:00
b2ce163b6f
fix aws.zig and url.zig tests, simplify url testing and skip 1 test for now 2025-08-23 10:45:35 -07:00
90c5efcace
clean up all the basic things 2025-08-23 09:44:34 -07:00
0a0933e38f
move test suite to its own file 2025-08-23 09:20:22 -07:00
1170ba99fc
fix most test compilation errors 2025-08-23 08:48:32 -07:00
8d399cb8a6
zig build compiles using zig 0.15.1
Some checks failed
AWS-Zig Build / build-zig-amd64-host (push) Failing after 2m27s
2025-08-22 18:00:34 -07:00
5334cc3bfe
writer needs to be a constant to the pointer of the writer field 2025-08-22 13:30:09 -07:00
53ac60c875
don't forget to flush! 2025-08-22 12:52:57 -07:00
5541742db3
update README to reflect new zig
Some checks failed
AWS-Zig Build / build-zig-amd64-host (push) Failing after 1m10s
2025-08-22 11:47:02 -07:00
b865285b24
update codegen to 0.15.1 2025-08-22 11:23:26 -07:00
9ed9c9b447
update dependencies 2025-08-22 11:22:58 -07:00
20d7d5766b
begin 0.15.1 upgrade - CI and dev tooling 2025-08-22 11:22:24 -07:00
47d34153b7
move mise to dot file 2025-08-22 07:54:37 -07:00
545130f2c7
Merge branch 'zig-develop' 2025-08-22 07:52:44 -07:00
369818e31e
add zls to mise 2025-08-22 07:52:30 -07:00
66637f43c0
disable zig mach build/update readme
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 7m55s
2025-08-20 16:30:20 -07:00
Simon Hartcher
3979d32a1d fix(json): need to write null when structure is null
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 7m53s
2025-06-05 13:47:37 +10:00
Simon Hartcher
6e775e20bb refactor: handle unsupported shape types explicitly 2025-06-05 11:10:19 +10:00
Simon Hartcher
d60ce20305 refactor: simplify switches using inline 2025-06-05 11:05:54 +10:00
Simon Hartcher
90d1091b66 chore: cleanup debug code 2025-06-05 10:56:28 +10:00
Simon Hartcher
4a6c84e0ae refactor: reorganise modules and methods 2025-06-05 10:54:10 +10:00
Simon Hartcher
9d1d8f26c9 chore: add comment to explain fix 2025-06-04 15:59:00 +10:00
Simon Hartcher
045150964b fix: handle structures with no members 2025-06-04 15:56:02 +10:00
Simon Hartcher
7aeb43a8c6 chore: code cleanup 2025-06-04 15:09:23 +10:00
Simon Hartcher
895918c1a9 chore: remove commented code 2025-06-04 15:01:31 +10:00
Simon Hartcher
af0d4d92b3 refactor: rewrite json stringification to write json directly 2025-06-04 14:58:16 +10:00
Simon Hartcher
c893a7cb31 chore: remove set (not used) 2025-06-04 13:03:12 +10:00
Simon Hartcher
2cd581f27f refactor: rename 2025-06-04 13:00:21 +10:00
Simon Hartcher
7233b87efc refactor: extract all json writing functions 2025-06-04 12:58:21 +10:00
Simon Hartcher
8a9d571c8e refactor: extract writeStructureMemberJson function 2025-06-04 12:43:11 +10:00
Simon Hartcher
36a894d776 build: disable zlint pre-commit hook for now 2025-06-04 12:35:58 +10:00
Simon Hartcher
e43b827576 chore: remove old stringify code 2025-06-04 12:35:32 +10:00
Simon Hartcher
60f1863557 chore: fix broken tests 2025-06-04 12:26:34 +10:00
Simon Hartcher
ee16fcf6cb chore: zlint auto fix 2025-06-04 10:59:57 +10:00
Simon Hartcher
7908c13bb4 build: add mise + pre-commit hooks 2025-06-04 10:59:08 +10:00
Simon Hartcher
489581ead2 feat: optional lists and maps to json 2025-06-04 10:50:38 +10:00
Simon Hartcher
9bc13d932a feat: add jsonStringify method to request objects 2025-06-03 10:37:10 +10:00
Simon Hartcher
9b673b0ff3 fix: map to json 2025-06-03 10:07:25 +10:00
Simon Hartcher
db0dde50e5 fix: singular kvp type 2025-06-03 10:07:25 +10:00
Simon Hartcher
a4d4da348f fix: checking if member is required 2025-06-03 10:07:25 +10:00
Simon Hartcher
d2ba0af842 feat: adds toJson function to request objects that converts to a json Value 2025-06-03 10:07:25 +10:00
Simon Hartcher
13a926af70 refactor(codegen): improve type generation 2025-06-03 10:07:25 +10:00
bc18fcca75
Merge branch 'handle-empty-filenames'
All checks were successful
AWS-Zig Build / build-zig-amd64-host (push) Successful in 7m52s
2025-05-29 14:54:55 -07:00