Gump
  1. Gump
  2. GUMP-105

design a way to build against the last-successful-dependency-build

    Details

    • Type: Task Task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Gump3-alpha-5
    • Fix Version/s: Gump3-alpha-5
    • Component/s: Python-based Gump
    • Labels:
      None

      Description

      The first algorithm to get right is GUMP-104, where we bail out of building at all if a dependency dies. The next step to tackle is to build against the last version of the dependency that /was/ built successfully.

      This requires gump to become time-aware beyond a single build run, saving off previous successes into a repository and knowing about them. It requires a significant extension of the model where, for example

      class BuildFailureRecoveryPlugin(AbstractPlugin):
      visit_project(p):
      if p.state <= FAILED:
      successful_p = historyutil.lookup_last_successful_build(p)
      modelutil.replace(p, succesful_p)
      p.failed_project = p
      p.state == RECOVERED

      stages are inserted to keep most of the plugins blissfully unaware of the intelligence going on. If we get this right that'll be where the staged plugin model will really start to shine, as the graph theory people can design smart new algorithms (As long as they're compatible with the basic topsort we're doing in some way), and the build tool people can just, well, build stuff.

        Issue Links

          Activity

          Leo Simons made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Leo Simons made changes -
          Link This issue incorporates GUMP-100 [ GUMP-100 ]
          Leo Simons made changes -
          Assignee Leo Simons [ lsimons ]
          Leo Simons made changes -
          Field Original Value New Value
          Link This issue depends upon GUMP-104 [ GUMP-104 ]
          Leo Simons created issue -

            People

            • Assignee:
              Leo Simons
              Reporter:
              Leo Simons
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development