Skip to content
Snippets Groups Projects
  1. Jun 01, 2009
    • Iustin Pop's avatar
      Finish removal of unused params from PeerMap · 9cf4267a
      Iustin Pop authored
      This completes the removal started earlier byt removeing the need to
      pass the number of nodes to Node.buildPeers, which is now unused.
      9cf4267a
    • Iustin Pop's avatar
      Add test infrastructure and initial tests · 15f4c8ca
      Iustin Pop authored
      This patch adds a QuickCheck-based test infrastructure and initial tests
      based on it. The PeerMap module has a 100% coverage ☺️
      
      Side-note: one has to read the source of QuickCheck to see how to use it
      (especially the Batch submodule), the docs are not enough…
      15f4c8ca
  2. May 27, 2009
  3. May 26, 2009
    • Iustin Pop's avatar
      Change the module import hierarchy · 262a08a2
      Iustin Pop authored
      This patch makes the Types module a base module, and Node/Instance ones
      import it, from the previous (opposite) situation. This will allow in
      the future to use newtypes for the index and name types.
      262a08a2
    • Iustin Pop's avatar
      Port offline node fixes from Rapi to IAllocator · 1de50907
      Iustin Pop authored
      The IAllocator source was copied from Rapi before the offline node fixes
      were made. This changes such that offline nodes are accepted correctly.
      1de50907
  4. May 25, 2009
  5. May 24, 2009
  6. May 23, 2009
  7. May 22, 2009
    • Iustin Pop's avatar
      Add back names to nodes/instances · 2727257a
      Iustin Pop authored
      In order to simplify the data structures, we add back the name on the
      node and instance objects. We still keep the index for, well, indexing,
      but we will use the name directly from the object, in order to get rid
      of the ktn/kti arguments which are passed around everywhere.
      2727257a
    • Iustin Pop's avatar
      More code reorganizations · e4c5beaf
      Iustin Pop authored
      This new big patch does a couple of more cleanups in the loading of data
      chapter:
        - introduce a Types module that holds most types (except the base
          Node/Instance/etc.) so that multiple other modules can use these
          (instead of only Cluster and its users)
        - bring IAlloc.hs in line with the recent changes of providing data
          types and not strings
        - removal of obsolete Utils.hs json-related functions
      e4c5beaf
    • Iustin Pop's avatar
      Rework the loader model · 040afc35
      Iustin Pop authored
      This big patch changes the loader model from “string data as common
      format” to actual object structures as common format.
      
      The text loading function move from Cluster.hs to a new Text.hs module,
      some common functions are moved to a new Loader.hs module, and the
      return values from both Rapi.hs and Text.hs are uniformized.
      040afc35
  8. May 21, 2009
  9. May 20, 2009
    • Iustin Pop's avatar
      Add initial validation checks in Cluster.loadData · 9d3fada5
      Iustin Pop authored
      This patch converts loadTabular and loadData to a monadic form, thus
      allowing meaningful error messages from the node/instance load routines.
      9d3fada5
    • Iustin Pop's avatar
      Small syntax improvement · 1297ce13
      Iustin Pop authored
      D'oh, one can extract from a wrapped variable, not only from functions.
      1297ce13
    • Iustin Pop's avatar
      Convert Cluster.loadData to Result return · fd22ce8e
      Iustin Pop authored
      This patch changes Cluster.loadData to return a Result, instead of
      directly the values; this will allow us to return meaningful error
      values (e.g. when an instances lives on unknown node) rather than simply
      abort. Currently the result is always an Ok, the actual signalling of
      errors will come later.
      
      Its callers are changed to accommodate for the new return type and to
      display errors as needed.
      fd22ce8e
    • Iustin Pop's avatar
      Allow overriding the RAPI port/scheme · e015b554
      Iustin Pop authored
      This patch adds a very dumb way to override the port and scheme for
      RAPI: if the master string doesn't contain a colon, we consider it a
      simple hostname specification, and thus prepend ‘https://’ and append
      ‘:5080’, (the default RAPI port); otherwise, we consider it a fully
      specified URL, and don't do any mangling to it.
      
      This allows to use saved RAPI responses in testing, with the “file://”
      scheme, or to use another port or non https mode with an actual RAPI
      instance.
      e015b554
    • Iustin Pop's avatar
      Remove some 1.2 specific code · ba00ad4d
      Iustin Pop authored
      Now that we dropped 1.2 compatibility, we can removed the special casing
      for RAPI differences.
      ba00ad4d
Loading