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

Misbehaviour of feature: Pin the workspace to the build host

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • p4-plugin
    • Jenkins v2.62, p4-plugin v1.8.4, freestyle jobs

      I'm using a Manual (custom view) setup for my freestyle jobs so far (see screenshot of an example job).

      I have problems with the feature Pin the workspace to the build host: when looking at the workspaces I often see that workspaces get the wrong host set. This leads to synching problems and in the end typically to (C++) linker errors.

      I've created a Python script report_p4_workspaces_with_wrong_host_assignment.py for this. It gives me e.g.:

      jenkins_frinavci_FRI00040598D_spine2d.w64-vc14-qt56x.debug-coverage: FRIjenkins04
      jenkins_frinavci_FRI00040598D_stp-makospine.w64-vc14-qt5.9.4-release: FRNAVDEV01
      jenkins_frinavci_FRI00903207D_shared-communications-sfb_unit.w64-vc14-qt56x: FRNAVDEV01
      jenkins_frinavci_FRI00903207D_shared-render_engine.w64-vc14-qt56x.debug-coverage: FRINAVDEV01
      jenkins_frinavci_frijenkins04_ce.win64-vc14-qt56: FRNAVDEV01
      jenkins_frinavci_frijenkins04_shared-report_engine.w64-vc14-qt56x: FRNAVDEV01
      jenkins_frinavci_frijenkins04_Tools-f8scope.w64-vc14-qt56x: FRNAVDEV01
      jenkins_frinavci_frijenkins06_Linux_Jobs-shared-threading-testframe.Linux: frijenkins11
      jenkins_frinavci_frijenkins06_Linux_Jobs-spine2d.linux64-gcc-qt56x: frijenkins11
      jenkins_frinavci_frijenkins08_fess.w64-vc14-qt56x: FRNAVDEV01
      jenkins_frinavci_frijenkins08_plugins-import.w64-vc14-qt56x: FRNAVDEV01
      jenkins_frinavci_frijenkins09_appman.w32-vc14-qt56x: FRNAVDEV01
      jenkins_frinavci_frijenkins09_plugins-test_driver_plugin.w32-vc14-qt56x: FRINAVDEV01
      jenkins_frinavci_frijenkins09_plugins-videolib_ng.w3264-vc14-qt56x: FRNAVDEV01
      jenkins_frinavci_frijenkins09_shared-threed.w64-vc14-qt56x: FRNAVDEV01
      jenkins_frinavci_frijenkins11_Linux_Jobs-cranial.linux64-gcc-qt56x-debugmako: frijenkins06
      jenkins_frinavci_frijenkins11_Linux_Jobs-cranial.linux64-gcc-qt56x-debugquick: frijenkins06
      jenkins_frinavci_frijenkins11_Linux_Jobs-cranial.linux64-gcc-qt56x-releasemako: frijenkins06
      jenkins_frinavci_frijenkins11_Linux_Jobs-cranial.linux64-gcc-qt56x-releasequick: frijenkins06
      jenkins_frinavci_frijenkins11_Linux_Jobs-shared-classlib.linux64-gcc-qt56x: frijenkins06
      jenkins_frinavci_frijenkins11_Linux_Jobs-shared-sys_util.linux64-gcc-qt56x: frijenkins06
      jenkins_frinavci_frinavdev01_shared-communications-udp_multicast.w64-vc14-qt56x: FRNAVDEV01
      jenkins_frinavci_frinavdev01_shared-qt_util.w64-vc14-qt56x: FRIJENKINS09
      jenkins_frinavci_frinavdev01_shared-threading.w64-vc14-qt56x: FRNAVDEV01
      jenkins_frinavci_Haswell-NUC_comp-image_acquisition_engine.w64-vc14-qt56x: FRNAVDEV01
      jenkins_frinavci_Haswell-NUC_multi-shared-CEMsg: FRNAVDEV01
      jenkins_frinavci_Haswell-NUC_plugins-plugin_manager.w32-vc14-qt56x: FRNAVDEV01
      jenkins_frinavci_Haswell-NUC_plugins-plugin_manager.w64-vc14-qt56x: FRNAVDEV01
      jenkins_frinavci_Haswell-NUC_plugins-videolib.w3264-vc14-qt56x: FRIJENKINS09
      jenkins_frinavci_Haswell-NUC_shared-CEMsg.w3264-vc14-qt56x: FRNAVDEV01
      jenkins_frinavci_Haswell-NUC_shared-communications-socket.w64-vc14-qt56x: FRNAVDEV01
      jenkins_frinavci_Haswell-NUC_shared-meshlib.w3264-vc14-qt56x: FRIjenkins04
      jenkins_frinavci_Haswell-NUC_shared-smart_tool.w32-vc14-qt56x: FRNAVDEV01
      jenkins_frinavci_Haswell-NUC_shared-tool_description.w64-vc14-qt56x: FRIjenkins04
      jenkins_frinavci_Haswell-NUC_Tools-iso_c_simulator.w64-vc14-qt56x: FRNAVDEV01
      

      I'm going to attach a screenshot of the SCM configuration next.

          [JENKINS-50434] Misbehaviour of feature: Pin the workspace to the build host

          Heiko Nardmann created issue -
          Heiko Nardmann made changes -
          Attachment New: Job-SCM-Config.png [ 41974 ]
          Heiko Nardmann made changes -

          So far i regularly detect this problem using the script and fix it manually.

          Heiko Nardmann added a comment - So far i regularly detect this problem using the script and fix it manually.

          Paul Allen added a comment -

          What value are you seeing as the wrong host? The Jenkins master or another slave?  I presume that freestyle job is fixed to build on one slave.

          Paul Allen added a comment - What value are you seeing as the wrong host? The Jenkins master or another slave?  I presume that freestyle job is fixed to build on one slave.
          Karl Wirth made changes -
          Labels New: P4_SUPPORT

          Exampletaken from above:

          jenkins_frinavci_FRI00040598D_spine2d.w64-vc14-qt56x.debug-coverage: FRIjenkins04
          

          The name of the workspace is jenkins_frinavci_FRI00040598D_spine2d.w64-vc14-qt56x.debug-coverage. This is derived from the workspace name format jenkins_frinavci_${NODE_NAME}_${JOB_NAME}. So I would expect that the host entered into the client spec is FRI00040598D. But it is FRIjenkins04.

          Does this explain my problem?

          Heiko Nardmann added a comment - Exampletaken from above: jenkins_frinavci_FRI00040598D_spine2d.w64-vc14-qt56x.debug-coverage: FRIjenkins04 The name of the workspace is jenkins_frinavci_FRI00040598D_spine2d.w64-vc14-qt56x.debug-coverage . This is derived from the workspace name format jenkins_frinavci_${NODE_NAME}_${JOB_NAME }. So I would expect that the host entered into the client spec is FRI00040598D . But it is FRIjenkins04 . Does this explain my problem?

          Both FRI00040598D and FRIjenkins04 are slave names.

          Heiko Nardmann added a comment - Both FRI00040598D and FRIjenkins04 are slave names.

          If necessary: we are a commercial Perforce customer. So we could open an official ticket if this helps.

          Heiko Nardmann added a comment - If necessary: we are a commercial Perforce customer. So we could open an official ticket if this helps.

          Paul Allen added a comment -

          A support ticket would be great, our support team can work with you on a reproduction. It seems strange a different node is used to create the workspace.  Are you sure the Jenkins Job is restricted to one slave?

          Paul Allen added a comment - A support ticket would be great, our support team can work with you on a reproduction. It seems strange a different node is used to create the workspace.  Are you sure the Jenkins Job is restricted to one slave?

            p4karl Karl Wirth
            heiko_nardmann Heiko Nardmann
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: