Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-791

Change tracking: Parents of rescued artifacts still get rebuilt

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.4.1
    • 1.4.0
    • General
    • None
    • 92fe6d4948713622fcfe603136426a09d6a9da9b

    Description

      For instance: Change a cpp property on a non-cpp file. The project will be re-resolved and the corresponding artifact will be temporarily removed. Later we will find out that no transformer command has actually changed, so the artifact will be rescued. However, its parent will still get rebuilt unnecessarily, due to several reasons:

      • removeArtifactsAndExclusiveDependents() clears the timestamp of the parent artifact
      • On the next rule application, the rescued artifact will appear as a newly added input, leading to the rule getting re-applied.
      • The rule might have been marked for re-application.
        So it seems that artifact rescuing somehow needs to take parent artifacts and/or rules into account. It is not entirely clear to me yet how that should be implemented.

      Attachments

        For Gerrit Dashboard: QBS-791
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            kandeler Christian Kandeler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes