1. 16 Jul, 2019 5 commits
  2. 15 Jul, 2019 14 commits
  3. 12 Jul, 2019 14 commits
    • Kirill Smelkov's avatar
      . · 4eb924e4
      Kirill Smelkov authored
      4eb924e4
    • Kirill Smelkov's avatar
      X wc1: Split out demo for failing cache invalidation into xfail'ing test · 197c35ea
      Kirill Smelkov authored
      See 69c94fbc and 48eb692f for description of the problem.
      197c35ea
    • Kirill Smelkov's avatar
      Merge branch 'master' into t · 10ca939f
      Kirill Smelkov authored
      * master:
        */tests: Use defer instead of finally
        *: Use defer for dbclose & friends
      10ca939f
    • Kirill Smelkov's avatar
      . · ec3ae866
      Kirill Smelkov authored
      ec3ae866
    • Kirill Smelkov's avatar
      */tests: Use defer instead of finally · 2b457640
      Kirill Smelkov authored
      try/finally was used in a couple of places to save/restore default ZBlk
      format setting. Move the restore part close to save with the help of
      defer.
      2b457640
    • Kirill Smelkov's avatar
      *: Use defer for dbclose & friends · 5c8340d2
      Kirill Smelkov authored
      For tests this makes sure that if one test fails, it won't make following
      tests fail just because the next test will fail trying to lock test database.
      
      For regular code (demo_zbigarray.py) this is also a good thing to do -
      to always close the database irregardless of whether an exception was
      raised before program reached end of main.
      
      Pygolang becomes regular - not test only - dependency. Being regular
      dependency is currently required only by demo_zbigarray.py, but it will
      be also used in upcoming wcfs, so adding pygolang into wendelin.core
      dependencies aligns with the plan.
      
      dbclose now uses defer almost everywhere - there are still few places in
      tests, where one test function is opening/closing test database multiple
      times - those were not (yet ?) converted.
      5c8340d2
    • Kirill Smelkov's avatar
      . · 00ab5fb4
      Kirill Smelkov authored
      00ab5fb4
    • Kirill Smelkov's avatar
      Merge branch 'master' into t · 0b0d80dd
      Kirill Smelkov authored
      * master:
        */tests: Use pytest.raises in modern way
      0b0d80dd
    • Kirill Smelkov's avatar
      . · 3d7fb6dd
      Kirill Smelkov authored
      3d7fb6dd
    • Kirill Smelkov's avatar
      */tests: Use pytest.raises in modern way · b12e319e
      Kirill Smelkov authored
      Instead of
      
      	raises(Exception, 'code')
      
      do
      
      	with raises(Exception):
      		code
      
      This removes lots of warnings, similar to below example:
      
      	bigfile/tests/test_basic.py::test_basic
      	  /home/kirr/src/wendelin/wendelin.core/bigfile/tests/test_basic.py:79: PytestDeprecationWarning: raises(..., 'code(as_a_string)') is deprecated, use the context manager form or use `exec()` directly
      
      	  See https://docs.pytest.org/en/latest/deprecations.html#raises-warns-exec
      	    raises(ROAttributeError, "f.blksize = 1") # RO attribute
      b12e319e
    • Kirill Smelkov's avatar
      X More effort to unmount failed wcfs.go · 2c043d29
      Kirill Smelkov authored
      Else after first failing tests all furhter test can't start because
      trying to stat testmntpt/.wcfs gives ENOTCONN.
      2c043d29
    • Kirill Smelkov's avatar
      . · ab962714
      Kirill Smelkov authored
      ab962714
    • Kirill Smelkov's avatar
      . · e7b77669
      Kirill Smelkov authored
      e7b77669
    • Kirill Smelkov's avatar
      . · 9836eede
      Kirill Smelkov authored
      9836eede
  4. 11 Jul, 2019 7 commits
    • Kirill Smelkov's avatar
      . · 7c1c6822
      Kirill Smelkov authored
      7c1c6822
    • Kirill Smelkov's avatar
      . · 1cd13bf2
      Kirill Smelkov authored
      1cd13bf2
    • Kirill Smelkov's avatar
      . · d322069a
      Kirill Smelkov authored
      d322069a
    • Kirill Smelkov's avatar
      . · 948da23a
      Kirill Smelkov authored
      948da23a
    • Kirill Smelkov's avatar
      X Transition to all VMA under 1 fileh to be either all based on wcfs or all based on !wcfs · f084ff9b
      Kirill Smelkov authored
      This allows to make decision to drop a page right after writeout for
      wcfs case. If vmas for one fileh were allowed to be mixed - we could not
      know whether to drop the page & its memory from RAM or not - even if
      there is no vma mapped in !wcfs mode, it could be created later, and by
      dropping RAM cahce we hit severe slowness. NOTE: in between transactions
      there is usually no vmas mapped, so this case is not artificial.
      
      By requiring that all VMAs are of the same kind under one fileh we avoid
      this ambiguity.
      f084ff9b
    • Kirill Smelkov's avatar
      . · 4a88c96a
      Kirill Smelkov authored
      4a88c96a
    • Kirill Smelkov's avatar
      . · 3f6fdab8
      Kirill Smelkov authored
      3f6fdab8