1. 07 Jul, 2015 1 commit
  2. 25 Feb, 2015 1 commit
  3. 07 Nov, 2014 1 commit
  4. 29 Sep, 2014 1 commit
    • Niklas Hambuechen's avatar
      Generalize SlotMap · 7a3aa19f
      Niklas Hambuechen authored
      This turns the existing `SlotMap` from the structure
      
        Map (label :: String, limit :: Int) (occupied :: Int)
      
      into
      
        Map (label :: a) (occupied :: Int, limit :: Int)
      
      and extracts it into its own module; this makes it possible to use
      `SlotMap`s for cases outside of reason rate limiting.
      
      There is also a semantic clean-up (not affecting how reason rate limiting
      works): `joinSlotMap` (now `occupySlots`) no longer takes a `SlotMap`
      as second argument, removing the need to decide how the limits of the
      second `SlotMap` affect the return value.
      
      Before `c = joinSlotMap a b`  allowed to have keys in `b` that don't appear
      in `a`, and those would appear in `c` with the limits from `b` (so `a` does
      not constrain them).
      In the new `occupySlots`, such keys have a limit of 0 instead.
      Signed-off-by: default avatarNiklas Hambuechen <niklash@google.com>
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
      7a3aa19f
  5. 12 Sep, 2014 1 commit
  6. 01 Aug, 2014 1 commit
  7. 07 Jul, 2014 3 commits
  8. 27 May, 2014 1 commit
  9. 09 Apr, 2014 1 commit
  10. 26 Feb, 2014 1 commit
  11. 17 Feb, 2014 1 commit
  12. 14 Feb, 2014 1 commit
  13. 13 Jan, 2014 1 commit
  14. 17 Oct, 2013 2 commits
  15. 15 Oct, 2013 1 commit
  16. 25 Sep, 2013 1 commit
  17. 01 Jul, 2013 1 commit
  18. 17 Jun, 2013 1 commit
  19. 03 Jun, 2013 1 commit
  20. 18 Feb, 2013 2 commits
  21. 05 Feb, 2013 1 commit
  22. 27 Dec, 2012 2 commits
    • Iustin Pop's avatar
      Rename test/hs/test to htest · 3e16567e
      Iustin Pop authored
      The current base name of 'test' means that this binary will generate
      profiling, coverage, etc. files with the name 'test.*', result in
      tab-completion conflicts with the test directory. Let's slightly
      change its base name for typing easiness.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      3e16567e
    • Iustin Pop's avatar
      Move htest/ files under the test/ tree · 83846468
      Iustin Pop authored
      htest/data becomes test/data/htools (basically reverting commit
      8feabc89), and htest/* becomes test/hs/*.
      
      Most changes beside the rename are trivial s/…/…, with the exception
      of autotools/run-in-tempdir, which needed some more changes now that
      test/ is not just Python files:
      
      - test/py is still being copied
      - test/hs moves from individual symlinks to entire dir symlink
      - test/data is symlinked in its entirety
      
      Checked with make distcheck, pep8 and pylint, so at least VPATH builds
      are OK.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      83846468
  23. 19 Dec, 2012 1 commit
    • Iustin Pop's avatar
      Add a read-only job queue module · aa79e62e
      Iustin Pop authored
      This patch adds implementation for a read-only job queue module,
      together with "full" test (as full as can be in a lazy language…).
      
      One note about the behaviour of the job queue is the handling of
      opcodes that fail validation: the 'input' opcode actually is a
      meta-type, which can hold either a real opcode or a plain JSValue, so
      that we can still load jobs with invalid opcodes for querying. The
      only downside of this is that, as opposed to Python code, we can't
      show the correct summary for such an opcode - we try to parse the
      OP_ID but not the extended OP_DSC_FIELD-equivalent.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
      aa79e62e
  24. 17 Dec, 2012 2 commits
  25. 11 Dec, 2012 1 commit
  26. 07 Dec, 2012 1 commit
  27. 06 Dec, 2012 1 commit
  28. 04 Dec, 2012 1 commit
    • Guido Trotter's avatar
      Add Ganeti.HTools.Graph · 8e6623c8
      Guido Trotter authored
      This module implements some algorithms on Data.Graph data structures.
      At the moment its main functionality is an LF-color implementation
      (greedy coloring in descending order of degree). There are also a few
      extra functions to calculate the degree order, and convert the node to
      color mapping to color to nodes.
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      8e6623c8
  29. 03 Dec, 2012 1 commit
  30. 27 Nov, 2012 1 commit
  31. 20 Nov, 2012 2 commits
    • Michele Tartara's avatar
      Add DRBD parser unit tests · a52f8e72
      Michele Tartara authored
      This adds tests that existing test files can be parsed by the Haskell
      parser as well, plus one new test file.
      Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      a52f8e72
    • Iustin Pop's avatar
      Create a new Ganeti/Types.hs module · 5e9deac0
      Iustin Pop authored
      There are already three cases where we copied type definitions between
      the htools-specific types into the main ganeti code. Let's stop doing
      this  and create a common types module that holds these.
      
      Note that there already exists BasicTypes.hs, but that refers to very
      low-level types, and can't use TH derivation itself.
      
      A side effect of this unification is that there is a small conflict
      between AdminStatus/AdminOffline and InstanceStatus/AdminOffline. As
      such, I renamed AdminOffline and AdminDown to StatusOffline/StatusDown
      in the InstanceStatus type.
      
      The patch also moves the tests related to these types to a new test
      module.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarAdeodato Simo <dato@google.com>
      5e9deac0
  32. 13 Nov, 2012 1 commit
  33. 26 Oct, 2012 1 commit
    • Iustin Pop's avatar
      Move htools backends to a separate directory · 879d9290
      Iustin Pop authored
      Five modules under the HTools/ directories are backend
      implementations, so let's move them to a separate directory, to more
      clearly show the hierarchy. I wanted to do this for a while, but
      merging between branches is always an issue, so let's do it know since
      we have an opportunity.
      
      This patch contains the actual renames, the required changed module
      names, imports, etc., but no other changes.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      879d9290