be used in vcl_init{}/vcl_fini{} ** v1 VCL compilation failed (as expected) *** v1 Found expected string: ("vmod_directors: shard shard: .backend(resolve=NOW) can not be used in vcl_init{}/vcl_fini{}") ** top === varnish v1 -errvcl {vmod_directors: shard shard: None backen... **** v1 CLI TX|vcl.inline vcl13 << %XJEIFLH|)Xspa8P **** v1 CLI TX|vcl 4.1; **** v1 CLI TX| **** v1 CLI TX| import directors; **** v1 CLI TX| **** v1 CLI TX| backend dummy None; **** v1 CLI TX| **** v1 CLI TX| sub vcl_init { **** v1 CLI TX|\tnew shard = directors.shard(); **** v1 CLI TX|\tshard.add_backend(dummy); **** v1 CLI TX| } **** v1 CLI TX| **** v1 CLI TX|%XJEIFLH|)Xspa8P **** dT 51.941 **** v1 vsl| 0 CLI - Wr 300 136 VCL "vcl12" Failed initialization Message: vmod_directors: shard shard: .backend(resolve=NOW) can not be used in vcl_init{}/vcl_fini{} **** v1 vsl| 0 CLI - Rd ping **** v1 vsl| 0 CLI - Wr 200 19 PONG 1703002598 1.0 **** dT 56.235 *** v1 CLI RX 300 **** dT 56.236 **** v1 CLI RX|VCL "vcl13" Failed initialization **** v1 CLI RX|Message: **** v1 CLI RX|\tvmod_directors: shard shard: None backend cannot be added ** v1 VCL compilation failed (as expected) *** v1 Found expected string: ("vmod_directors: shard shard: None backend cannot be added") ** top === varnish v1 -errvcl {vmod_directors: shard shard: .remove_bac... **** v1 CLI TX|vcl.inline vcl14 << %XJEIFLH|)Xspa8P **** v1 CLI TX|vcl 4.1; **** v1 CLI TX| **** v1 CLI TX| import directors; **** v1 CLI TX| **** v1 CLI TX| backend dummy None; **** v1 CLI TX| **** v1 CLI TX| sub vcl_init { **** v1 CLI TX|\tnew shard = directors.shard(); **** v1 CLI TX|\tshard.remove_backend(); **** v1 CLI TX| } **** v1 CLI TX| **** v1 CLI TX|%XJEIFLH|)Xspa8P **** dT 56.241 **** v1 vsl| 0 CLI - Rd vcl.load vcl13 vcl_vcl13.1703002598.417346/vgc.so 1auto **** v1 vsl| 0 CLI - Wr 300 102 VCL "vcl13" Failed initialization Message: vmod_directors: shard shard: None backend cannot be added **** v1 vsl| 0 CLI - Rd ping **** v1 vsl| 0 CLI - Wr 200 19 PONG 1703002602 1.0 # top TEST ./tests/directors_c00015.vtc TIMED OUT (kill -9) # top TEST ./tests/directors_c00015.vtc FAILED (60.085) signal=9 FAIL tests/directors_c00015.vtc (exit status: 2) ============================================================================ Testsuite summary for Varnish 7.4.2 ============================================================================ # TOTAL: 79 # PASS: 77 # SKIP: 0 # XFAIL: 0 # FAIL: 2 # XPASS: 0 # ERROR: 0 ============================================================================ See vmod/test-suite.log Please report to varnish-dev@varnish-cache.org ============================================================================ make[4]: Leaving directory '/builddir/build/BUILD/varnish-7.4.2/vmod' RPM build errors: make[4]: *** [Makefile:1495: test-suite.log] Error 1 make[3]: *** [Makefile:1603: check-TESTS] Error 2 make[2]: *** [Makefile:1657: check-am] Error 2 make[1]: *** [Makefile:1659: check] Error 2 make: *** [Makefile:756: check-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.mGFXWR (%check) Bad exit status from /var/tmp/rpm-tmp.mGFXWR (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/varnish.spec