Uploaded image for project: 'Puppet Task Runner'
  1. Puppet Task Runner
  2. BOLT-843

Generate a "rerun" file after every command

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: BOLT 1.17.0
    • Component/s: None
    • Template:
    • Team:
      Bolt
    • Sprint:
      Bolt Kanban
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Hide
      Bolt will now store information about the last failed run in the Bolt project directory which can be used to generate targets for the next run. To target failed nodes use `--retry failure` instead of `--nodes`.

      {{$boltdir/.last_failure.json}} should be added to {{.gitignore}} files for repositories that contain a Bolt project directory.

      The stored information may include passwords, users who put passwords in uris should set {{save-failures: false}} in their bolt config to avoid writing them to this file.
      Show
      Bolt will now store information about the last failed run in the Bolt project directory which can be used to generate targets for the next run. To target failed nodes use `--retry failure` instead of `--nodes`. {{$boltdir/.last_failure.json}} should be added to {{.gitignore}} files for repositories that contain a Bolt project directory. The stored information may include passwords, users who put passwords in uris should set {{save-failures: false}} in their bolt config to avoid writing them to this file.
    • QA Risk Assessment:
      Needs Assessment

      Description

      When a task/command/script/upload fails, Bolt should generate a retry file that includes the list of nodes that failed. That simplifies iterative workflows, whereby a user can try to run a task, make any needed adjustments on failed nodes, and then try it again.

      Questions:

      • What data goes in this file?
      • What is the interface for referencing failed nodes?
      • Can you reference the successful nodes too?
      • Is it overwritten by a successful action?
      • What happens when a plan fails?

      Possible defintion

      • File goes into <boltdir>/retry.json
      • The file is overwritten after ever run command
      • The format is an array where each item is the node and status from the Result's status hash. IE the actual result is not included.
      • This is accessed with a new targeting flag (like -query) -rerun This has the possible values all, success or failure which filter on the status of the items in .rerun.json

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                alex Alex Dreyer
                Reporter:
                nick Nick Lewis
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: