1. 17 Feb, 2020 5 commits
    • Dridi Boukelmoune's avatar
      Import vmod_cookie from varnish/varnish-modules · f64a54e3
      Dridi Boukelmoune authored
      This is in essence the same VMOD so migrating from one to the other
      should result in no VCL change, except for the removal of DEPRECATED
      cookie.filter_except().
      
      The test suite was refreshed to take advantage of recent features and
      mostly operates in vcl_synth as a result, not wasting cycles bringing
      needless backends up.
      
      The C code and VCC descriptor were also improved for better code style
      compliance and documentation consistency, without changing the VMOD's
      behavior. On the C side actual changes mostly consisted in adding missing
      assertions but there were notable changes:
      
      - usage of VRE_Free instead of free (with test case)
      - WS_VSB_* facility usage for the one use case
      
      There are other opportunities for improvement, like usage of more modern
      facilities like VRT_fail, or a named Lck instead of a plain mutex.
      
      Closes #3184
      f64a54e3
    • Nils Goroll's avatar
      demo how a priv_task can veto being rolled back · 746384b2
      Nils Goroll authored
      or rather: fail the task if being rolled back
      746384b2
    • Dridi Boukelmoune's avatar
      Whitespace OCD · 6b64399f
      Dridi Boukelmoune authored
      6b64399f
    • Dridi Boukelmoune's avatar
      mv lib/libvmod_std/tests/{,std_}b00001.vtc · f074c2e2
      Dridi Boukelmoune authored
      I forgot the namespace when I first split the test suite.
      f074c2e2
    • Dridi Boukelmoune's avatar
      Sort VMOD tests · 5e602798
      Dridi Boukelmoune authored
      5e602798
  2. 14 Feb, 2020 1 commit
  3. 13 Feb, 2020 12 commits
    • Dridi Boukelmoune's avatar
      Fix distcheck · dec8e14b
      Dridi Boukelmoune authored
      dec8e14b
    • Dridi Boukelmoune's avatar
      We don't need $(VTC_TESTS) in Makefiles · 92d3f677
      Dridi Boukelmoune authored
      We only need the @VTC_TESTS@ substitution, and doing so saves around
      13kB per Makefile.
      92d3f677
    • Dridi Boukelmoune's avatar
      Generate test suite setup in vmodtool · 4ace3ef6
      Dridi Boukelmoune authored
      That part of the automake boilerplate is generated conditionally, and
      since we check automake_boilerplate.am files in the list of tests is
      printed with one per line to be diff-friendly.
      
      A test was "randomly" chosen to be the first VMOD-specific test.
      
      Generated automake_boilerplate.am files no longer start nor end with
      empty lines.
      
      This is probably going to mandate some changes in vtest to collect
      VMOD-specific test suites.
      
      Refs #3184
      4ace3ef6
    • Dridi Boukelmoune's avatar
      Sort vmodtool's imports · 6ed45b8b
      Dridi Boukelmoune authored
      6ed45b8b
    • Dridi Boukelmoune's avatar
      Extract the VTC "make check" logic to vtc.am · 182e96ff
      Dridi Boukelmoune authored
      The effect is currently the same, but for VMODs we shouldn't need a
      complete configure step.
      
      Refs #3184
      182e96ff
    • Dridi Boukelmoune's avatar
      Ensure everything is built before running tests · 4eeec974
      Dridi Boukelmoune authored
      With a growing list of bundled VMODs we want to split the main test
      suite to colocate VMOD-specific tests with the rest of its sources.
      Because a VMOD test case may involve other binaries, and will always
      involve at least varnishtest and varnishd, we insist that make check
      kicks in only after a complete recursive build.
      
      This doesn't work in this scenario:
      
          cd lib/libvmod_<name> && make check
      
      The assumption is that at this point a full build was already performed
      and changes are only happening in that sub directory.
      
      Refs #3184
      4eeec974
    • Dridi Boukelmoune's avatar
      Enable automake maintainer mode for development · 8abc20da
      Dridi Boukelmoune authored
      In maintainer mode, whenever a file managed by autoconf or automake is
      changed it is regenerated on the fly. For Makefile.am files this also
      applies to any fragment .am file referenced by the include directive.
      
      The configure script disables the maintainer mode by default, which is
      probably a sane behavior because downstream usage of dist archives don't
      need the various autotools to be present, unless a Makefile or similar
      is patched.
      
      This is explicitly enabled by the autogen.des script, in order to make
      this change only impact development, saving most of the time a configure
      step after amending something in the build.
      
      Refs #3184
      8abc20da
    • Nils Goroll's avatar
      RX_CLOSE_IDLE accounted as sc_rx_close_idle for timeout_idle hit · 89198513
      Nils Goroll authored
      RX_TIMEOUT was issued when the timeout_idle was hit waiting for another
      client request and accounted as an error in sess_closed_err.
      
      We now turn this case into an RX_CLOSE_IDLE which does not get accounted
      as an error.
      
      Closes #3208
      89198513
    • Dridi Boukelmoune's avatar
      Use AM_SUBST_NOTMAKE directly · 1f123482
      Dridi Boukelmoune authored
      I don't remember how I ended up with its private counterpart,
      conditionally even, but this has been part of automake since
      version 1.10 so there's no reason to beat around the bush.
      1f123482
    • Dridi Boukelmoune's avatar
      Polish · cee2d1aa
      Dridi Boukelmoune authored
      cee2d1aa
    • Nils Goroll's avatar
      centralize setting ctx->syntax · 9bba6622
      Nils Goroll authored
      ... and ensure it always gets set during cli operations also
      9bba6622
    • Nils Goroll's avatar
      disambiguate vcl_max · c67af5f5
      Nils Goroll authored
      we used vcl_max both for the max vcl version and the maximum number of
      vcls to load.
      c67af5f5
  4. 11 Feb, 2020 1 commit
  5. 10 Feb, 2020 8 commits
  6. 07 Feb, 2020 3 commits
  7. 05 Feb, 2020 1 commit
  8. 04 Feb, 2020 9 commits