1. 12 Dec, 2012 1 commit
  2. 11 Dec, 2012 1 commit
  3. 10 Dec, 2012 1 commit
  4. 07 Dec, 2012 1 commit
  5. 06 Dec, 2012 3 commits
  6. 05 Dec, 2012 1 commit
    • Michael Hanselmann's avatar
      Makefile: Reset environment for epydoc · de645b5b
      Michael Hanselmann authored
      epydoc allows overriding configuration values via environment variables.
      While this might be useful in certain use cases, but as no prefix
      whatsoever is used, conflicts are easily created. Some people have the
      environment variable “NAME” set, effectively overriding the project name
      set in epydoc.conf. A bug in epydoc causes an error if non-ASCII
      characters, such as German umlauts, are used in NAME.
      
      $ NAME=Täscht make py-apidoc
      […]
      UNEXPECTED ERROR:
      'ascii' codec can't decode byte 0xc3 in position 73: ordinal not in range(128)
      
      $ parse=false make py-apidoc
      […]
      epydoc: error: Invalid option combination: --parse-only and --introspect-only.
      
      This patch changes the call in Makefile to reset the environment given
      to epydoc save for PATH and PYTHONPATH.
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      de645b5b
  7. 04 Dec, 2012 4 commits
  8. 03 Dec, 2012 3 commits
  9. 30 Nov, 2012 1 commit
  10. 29 Nov, 2012 1 commit
  11. 28 Nov, 2012 1 commit
  12. 21 Nov, 2012 1 commit
  13. 20 Nov, 2012 5 commits
  14. 19 Nov, 2012 2 commits
  15. 16 Nov, 2012 3 commits
  16. 15 Nov, 2012 2 commits
  17. 13 Nov, 2012 4 commits
    • Michael Hanselmann's avatar
      Add new test for RAPI · 105f0d47
      Michael Hanselmann authored
      Unlike existing tests, this actually tests RAPI at the interface with
      the HTTP server. This way authentification can also be tested. A test
      for “/2/query/…” is included as it's a bit special.
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarBernardo Dal Seno <bdalseno@google.com>
      105f0d47
    • Iustin Pop's avatar
      Automatically enable version-dependent GHC flags · 39f0eea5
      Iustin Pop authored
      Some GHC flags are very useful, but only appear in more recent GHC
      versions. To support the use of such flags while still supporting
      older compilers, let's add conditional checks and enabling based on
      the results.
      
      Currently only `-fwarn-incomplete-uni-patterns` is enabled, which
      detects refutable patterns in lambda expressions and pattern bindings
      (e.g. "let (Just x) = y"); such constructs are bad as they can lead to
      runtime exceptions.
      
      Additionally, fix an existing such bad construct in a test case; we
      workaround it by using error, since that should never fail.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      39f0eea5
    • Michele Tartara's avatar
      Added attoparsec unit test for Unicode parsing · 43b3b5c1
      Michele Tartara authored
      Attoparsec is known to have had issues with parsing non-ASCII strings.
      This test makes sure that parsing of Unicode characters works fine.
      Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
      [iustin: small doc string fixes]
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      43b3b5c1
    • Iustin Pop's avatar
      Improve make regen-vcs-version · 6376dcc0
      Iustin Pop authored
      "make regen-vcs-version" is run at every ./devel/upload time, in order
      to have reasonably up-to-date information in the uploaded
      scripts/binaries. However, this means it currently triggers
      recompilation of (at least) Ganeti/Version.hs, and sometimes more than
      that.
      
      Since we only care about the contents of the file and not the
      timestamp, let's change the make rule so that it only updates the file
      if there are actually changes in the content, as checked by
      "cmp". This results in a much faster ./devel/upload, especially for
      small changes in the (non-Haskell) code, or when the code has already
      been compiled.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      6376dcc0
  18. 08 Nov, 2012 1 commit
  19. 07 Nov, 2012 1 commit
    • Iustin Pop's avatar
      Switch devel/upload to a static file · f9435bdc
      Iustin Pop authored
      We had twice in the past days questions about devel/upload being
      "broken", since bash re-reads shell scripts during their run and this
      file can get regenerated due to Makefile changes.
      
      Since we only need this to be dynamically built for 3 variables, let's
      make the file static and read those three variables when it is run,
      instead of when it is built, which allows us to re-read the "latest
      version" of these vars as well.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      f9435bdc
  20. 06 Nov, 2012 1 commit
  21. 26 Oct, 2012 2 commits