Skip to content
Snippets Groups Projects
  1. Dec 05, 2012
    • 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
  2. Dec 04, 2012
  3. Dec 03, 2012
  4. Nov 30, 2012
  5. Nov 29, 2012
  6. Nov 28, 2012
  7. Nov 21, 2012
  8. Nov 20, 2012
  9. Nov 19, 2012
  10. Nov 16, 2012
  11. Nov 15, 2012
  12. Nov 13, 2012
    • 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
  13. Nov 08, 2012
  14. Nov 07, 2012
    • 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
  15. Nov 06, 2012
  16. Oct 26, 2012
  17. Oct 25, 2012
  18. Oct 24, 2012
  19. Oct 23, 2012
Loading