Merge remote-tracking branch 'origin/topic/timw/bifs-tocount-zam-baseline'

* origin/topic/timw/bifs-tocount-zam-baseline:
  CI: Add release-build ZAM task for baseline checks during PRs
  Fix language/assert btest baselines for to_count/to_int changes
  Update the bifs.to_count baseline for ZAM
This commit is contained in:
Arne Welzel 2025-03-04 12:06:24 +01:00
commit 3bec357ace
6 changed files with 24 additions and 6 deletions

View file

@ -276,6 +276,20 @@ ubuntu24_task:
<< : *RESOURCES_TEMPLATE
<< : *CI_TEMPLATE
# Same as above, but running the ZAM tests instead of the regular tests.
ubuntu24_zam_task:
container:
# Ubuntu 24.04 EOL: Jun 2029
dockerfile: ci/ubuntu-24.04/Dockerfile
<< : *RESOURCES_TEMPLATE
<< : *CI_TEMPLATE
env:
ZEEK_CI_SKIP_UNIT_TESTS: 1
ZEEK_CI_SKIP_EXTERNAL_BTESTS: 1
ZEEK_CI_BTEST_EXTRA_ARGS: -a zam
# Use a lower number of jobs due to OOM issues with ZAM tasks
ZEEK_CI_BTEST_JOBS: 3
# Same as above, but using Clang and libc++
ubuntu24_clang_libcpp_task:
container:

View file

@ -1,4 +1,4 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
error in <...>/to_count.zeek, line 8: bad conversion to count (int_to_count(-2) and -2)
error in <...>/to_count.zeek, line 20: bad conversion to count (to_count() and )
error in <...>/to_count.zeek, line 25: bad conversion to count (to_count(not a count) and not a count)
error in <...>/to_count.zeek, line 20: bad conversion to count (to_count(, 10) and )
error in <...>/to_count.zeek, line 29: bad conversion to count (to_count(not a count, 10) and not a count)

View file

@ -8,6 +8,10 @@
18446744073709551611
205
206
172
35
195
195
0
123
9223372036854775808 and 9223372036854775808 are the same

View file

@ -1,3 +1,3 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
error in <...>/assert.zeek, line 3: assertion failure: (coerce to_count("42") to double) == 42.5 (always failing)
error in <...>/assert.zeek, line 3: assertion failure: (coerce to_count("42", 10) to double) == 42.5 (always failing)
fatal error: errors occurred while initializing

View file

@ -1,4 +1,4 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
assertion_failure, to_count("5") == 4, 5 is not 4
assertion_failure, to_count("5", 10) == 4, 5 is not 4
assert <...>/assert-hook.zeek:21
zeek_init <none>:0

View file

@ -1,7 +1,7 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
f, lambda_<10820400278317158366>: function() : void
ZAM-code lambda_<10820400278317158366>
g, lambda_<9730512750166342063>: function() : void
ZAM-code lambda_<9730512750166342063>
g, lambda_<16208386833253569415>: function() : void
ZAM-code lambda_<16208386833253569415>
test_function, test_function: function() : void
ZAM-code test_function