Uploaded image for project: 'IT: Release Engineering'
  1. IT: Release Engineering
  2. RELENG-2576

lftools archive workspace runs forever on directory linked back to parent

Issue XMLXMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • Q1 2020 Tech Debt
    • None
    • lftools
    • None

      lftools archive command gets trapped in infinite loop of directories, and the build timeout does not terminate the job

      We have a slightly weird build script that creates a link from a subdirectory back to a parent directory. At the bitter end of the job, the "lftools archive .." command is invoked by logs-deploy.sh with this pattern:

      **/*.log
      

      I think the recursive descent goes into an endless loop. Is there a way to limit the depth of the recursion to make this job more robust?

      Why doesn't the build-timeout (set to 20 hours in our case) stop the runaway log archive process?

      Also see:

      Ticket with some details and history:

      https://jira.linuxfoundation.org/servicedesk/customer/portal/2/IT-18413

      The runaway Jenkins job:

      https://jenkins.o-ran-sc.org/view/pti-rtp/job/pti-rtp-shell-merge-master/8/

      A recent change set in that project:

      https://gerrit.o-ran-sc.org/r/c/pti/rtp/+/1911

              eball Eric Ball
              cl778h Chris Lott
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: