1. 27 Jan, 2014 1 commit
  2. 09 Jan, 2014 1 commit
  3. 16 Dec, 2013 1 commit
  4. 18 Oct, 2013 1 commit
  5. 25 Sep, 2013 1 commit
  6. 07 Aug, 2013 1 commit
  7. 10 Jul, 2013 1 commit
  8. 29 Apr, 2013 1 commit
  9. 03 Apr, 2013 1 commit
  10. 02 Apr, 2013 2 commits
  11. 05 Mar, 2013 1 commit
  12. 08 Jan, 2013 2 commits
  13. 27 Dec, 2012 2 commits
  14. 24 Dec, 2012 1 commit
  15. 18 Dec, 2012 1 commit
  16. 17 Dec, 2012 1 commit
  17. 14 Dec, 2012 1 commit
  18. 30 Oct, 2012 1 commit
  19. 19 Oct, 2012 2 commits
  20. 10 Oct, 2012 1 commit
    • Iustin Pop's avatar
      Improve Haskell configure options and detection · 21a5e56c
      Iustin Pop authored
      This patch cleans up  the Haskell library detection and defaults.
      
      First, it makes the base compiler/libraries required, per the email discussion.
      
      It then adds two new small autoconf macros, on to check for a required
      Haskell library and one to do custom action based on test results. We
      use these macros to cleanup and simplify a bit the module detection:
      
      - rapi, confd, and split query are auto detected and enabled if _all_
        required libraries are present
      - unittests are enabled if _all_ required libraries are present
      
      The patch also updates the documentation regarding required libraries.
      
      After this patch, base Ganeti fully buildable on Debian Squeeze/Ubuntu
      Lucid.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      21a5e56c
  21. 01 Oct, 2012 1 commit
  22. 28 Aug, 2012 1 commit
    • Iustin Pop's avatar
      Switch Haskell test harness to test-framework · 95f6c931
      Iustin Pop authored
      This patch replaces our home-grown, and quite limited, test runner
      infrastructure with test-framework
      (http://batterseapower.github.com/test-framework/). The rationale for
      doing so is as follows:
      
      - we will need to add support for HUnit tests, so either we add more
        custom code or we switch to an existing library
      - test-framework is mature and already packaged, at least in
        Debian/Ubuntu
      - it supports more features: parallel test running, better test
        selection, etc.
      
      As you can see, the changes are trivial, and don't touch the tests at
      all; if/when we split the QC.hs file into per-module files, then we
      could drop QCHelper too, and replace it with test-framework-th, which
      does the same, but even more automated (auto-discovery, without having
      to list the tests at all).
      
      Dependencies are updated in devnotes.rst; note that I've already added
      the hunit dependencies since we're going to use that soon.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarAgata Murawska <agatamurawska@google.com>
      95f6c931
  23. 23 Aug, 2012 1 commit
    • Iustin Pop's avatar
      Bump pep8 version to 1.2 · 5ae4945a
      Iustin Pop authored
      Debian Wheezy will ship with this version, and it has many improved checks compared to 0.6, so let's:
      
      - bump version in the docs
      - silence some new checks that are wrong due to our indent=2 instead of 4
      - fix lots of errors in the code where the indentation was wrong by 1
        or 2 spaces
      - fix a few cases of == True, False, None and replace with 'is'
      - re-indent some cases where the code is OK, but pep8 complains
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      5ae4945a
  24. 06 Jul, 2012 1 commit
  25. 27 Mar, 2012 1 commit
  26. 16 Jan, 2012 1 commit
  27. 08 Dec, 2011 1 commit
    • Iustin Pop's avatar
      Cleanup hlint errors · 3603605a
      Iustin Pop authored
      First, we update the recommended hlint version to what I used to get a
      clean output (1.8.15). Most of the changes are:
      
      - remove unneeded parentheses
      - some simplifications (intercalate " " → unwords, maybe … id →
        fromMaybe, etc.)
      - removal of some duplicate code (in previous patches)
      
      There are still some warnings which I didn't clean out but plain
      ignored:
      
      - 'Eta reduce' in some specific files, because the type inference
        specialises the function on the first call, and annotating the type
        properly would be too verbose
      - use of 'first', 'comparing', and 'on', since these don't seem to be
        widely or consistently used (outside ganeti/htools, I mean)
      - use of Control.Exception.catch, as we only care about I/O errors; at
        one point yes, we will need to transition to this new API
      - 'Reduce duplication', since hlint warns even for 3 duplicate lines,
        and abstracting that away seems overkill to me
      
      After this patch, make hlint is clean and doesn't exit with an error
      anymore; we could enable it automatically on 'make lint' if hlint is
      detected (future patch).
      
      Note that we explicitly skip the THH.hs file from checking because it
      seems that hlint doesn't parse correctly for now the splice notation.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarAgata Murawska <agatamurawska@google.com>
      3603605a
  28. 14 Oct, 2011 1 commit
    • Iustin Pop's avatar
      Document some useful Haskell tips · ef958f2a
      Iustin Pop authored
      This improves devnotes.rst with some tricks for Haskell development,
      and additionally it does two Makefile improvements:
      
      - properly document lib/_vcsversion.py as a requirement for
        Constants.hs (but do not require rebuild when updated)
      - move HEXTRA at the end of the GHC invocation, so any command line
        options will indeed override the built-in ones (especially -osuf)
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      ef958f2a
  29. 26 Aug, 2011 1 commit
  30. 21 Jul, 2011 1 commit
  31. 28 Jun, 2011 1 commit
    • Iustin Pop's avatar
      htools: Switch to QuickCheck 2.x · 8e4f6d56
      Iustin Pop authored
      Since current distros don't package anymore QuickCheck 1.x, let's move
      to 2.x.
      
      This requires also a few changes to the code:
      
      - Test.QuickCheck.Batch doesn't exist anymore, so we need to write some
        scaffolding code to replace it
      - the way test sizes are generated has changed, and we need to restrict
        (in some tests) the cluster size, as our code is not yet ready for
        hundreds of thousands of nodes in a cluster and we run out of stack
        (which could be a bug somewhere by itself, needs investigation)
      - at least with GHC 7, floating point errors make a perfect cluster
        score even bigger, so we need to bump up the max. rounding error
        allowed
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      8e4f6d56
  32. 30 Mar, 2011 1 commit
  33. 23 Mar, 2011 1 commit
  34. 15 Nov, 2010 1 commit
  35. 15 Oct, 2010 1 commit
  36. 02 Jun, 2010 1 commit