Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17439

Perforce Quick Clean Does Not Remove All Build Files; Fails to Halt the Build

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • p4-plugin
    • None
    • Windows 2008 Server

      I hit a case where the Perforce "quick clean" option does not remove all of my class files.

      This leaves a class file in the /classes output directory, and when rebuilt, blocks the anonymous (MyClass$Anon.class) files from being generated, breaking the build.

      I do not see any error messages that indicate the root cause of this issue.

      This issues took me hours to track down and verify. If quick-clean had aborted the build when it fails, this would have saved a lot of headache.

      Here is failing directory before the clean:

      d---- 4/2/2013 3:52 PM firstperson
      d---- 4/2/2013 3:52 PM orbit
      a-- 4/2/2013 3:52 PM 16553 BasicView.class
      a-- 4/2/2013 3:52 PM 4859 BasicViewPropertyLimits.class
      a-- 4/2/2013 3:52 PM 2793 ViewElevationAnimator.class
      a-- 4/2/2013 3:52 PM 470 ViewModel.class
      a-- 4/2/2013 3:52 PM 1237 ViewPropertyAccessor$ElevationAccessor.class
      a-- 4/2/2013 3:52 PM 913 ViewPropertyAccessor$EyePositionAccessor.class
      a-- 4/2/2013 3:52 PM 876 ViewPropertyAccessor$HeadingAccessor.class
      a-- 4/2/2013 3:52 PM 868 ViewPropertyAccessor$PitchAccessor.class
      a-- 4/2/2013 3:52 PM 1422 ViewPropertyAccessor.class
      a-- 4/2/2013 3:52 PM 826 ViewPropertyLimits.class
      a-- 4/2/2013 3:52 PM 1366 ViewUtil$ViewState.class
      a-- 4/2/2013 3:52 PM 11575 ViewUtil.class

      After the clean I get:

      d---- 4/2/2013 4:43 PM firstperson
      d---- 4/2/2013 4:43 PM orbit
      a-- 4/2/2013 3:52 PM 1422 ViewPropertyAccessor.class

      As far as I can tell, there is no reason why this file should not have been removed.

          [JENKINS-17439] Perforce Quick Clean Does Not Remove All Build Files; Fails to Halt the Build

          Casey McGinty created issue -
          Casey McGinty made changes -
          Summary Original: Perforce quick clean failes to remove all files, failes to halt build New: Perforce Quick Clean Does Not Remove All Build Files; Fails to Halt the Build
          Casey McGinty made changes -
          Description Original: I hit a case where the Perforce "quick clean" option does not remove all of my class files.

          This leaves a class file in the /classes output directory, and when rebuilt, blocks the anonymous (MyClass$Anon.class) files from being generated, breaking the build.

          I do not see any error messages that indicate the root cause of this issue.

          This issues took me hours to track down and verify. If quick-clean had aborted the build when it fails, this would have saved a lot of headache.
          New: I hit a case where the Perforce "quick clean" option does not remove all of my class files.

          This leaves a class file in the /classes output directory, and when rebuilt, blocks the anonymous (MyClass$Anon.class) files from being generated, breaking the build.

          I do not see any error messages that indicate the root cause of this issue.

          This issues took me hours to track down and verify. If quick-clean had aborted the build when it fails, this would have saved a lot of headache.

          Here is failing directory before the clean:

          d---- 4/2/2013 3:52 PM firstperson
          d---- 4/2/2013 3:52 PM orbit
          -a--- 4/2/2013 3:52 PM 16553 BasicView.class
          -a--- 4/2/2013 3:52 PM 4859 BasicViewPropertyLimits.class
          -a--- 4/2/2013 3:52 PM 2793 ViewElevationAnimator.class
          -a--- 4/2/2013 3:52 PM 470 ViewModel.class
          -a--- 4/2/2013 3:52 PM 1237 ViewPropertyAccessor$ElevationAccessor.class
          -a--- 4/2/2013 3:52 PM 913 ViewPropertyAccessor$EyePositionAccessor.class
          -a--- 4/2/2013 3:52 PM 876 ViewPropertyAccessor$HeadingAccessor.class
          -a--- 4/2/2013 3:52 PM 868 ViewPropertyAccessor$PitchAccessor.class
          -a--- 4/2/2013 3:52 PM 1422 ViewPropertyAccessor.class
          -a--- 4/2/2013 3:52 PM 826 ViewPropertyLimits.class
          -a--- 4/2/2013 3:52 PM 1366 ViewUtil$ViewState.class
          -a--- 4/2/2013 3:52 PM 11575 ViewUtil.class

          After the clean I get:

          d---- 4/2/2013 4:43 PM firstperson
          d---- 4/2/2013 4:43 PM orbit
          -a--- 4/2/2013 3:52 PM 1422 ViewPropertyAccessor.class

          As far as I can tell, there is no reason why this file should not have been removed.
          Rob Petti made changes -
          Assignee Original: Rob Petti [ rpetti ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 148614 ] New: JNJira + In-Review [ 177142 ]
          Jenkins IRC Bot made changes -
          Component/s New: p4-plugin [ 19224 ]
          Component/s Original: perforce-plugin [ 15506 ]

            Unassigned Unassigned
            cmcginty Casey McGinty
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: