<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project>
  <actions/>
  <description>This job submits packages from the "staging" subproject of an [IO]BS project to the main project.&#13;
Only packages that built successfully are submitted.&#13;
&lt;br /&gt;&lt;br /&gt;&#13;
&lt;b&gt;THIS is for Cloud 2.0 and up &lt;/b&gt;&lt;br /&gt;&#13;
&lt;i&gt;use openstack-submit-DCS for 1.0&lt;/i&gt;&#13;
</description>
  <keepDependencies>false</keepDependencies>
  <properties>
    <hudson.model.ParametersDefinitionProperty>
      <parameterDefinitions>
        <hudson.model.StringParameterDefinition>
          <name>project</name>
          <description>Name of the main project that should be updated with packages from its staging project.</description>
          <defaultValue/>
        </hudson.model.StringParameterDefinition>
        <hudson.model.StringParameterDefinition>
          <name>subproject</name>
          <description>Name of the subproject that acts as staging project.</description>
          <defaultValue>None</defaultValue>
        </hudson.model.StringParameterDefinition>
        <hudson.model.StringParameterDefinition>
          <name>packagefilter</name>
          <description>space separated strings to filter the packages by their names (from the beginning)</description>
          <defaultValue/>
        </hudson.model.StringParameterDefinition>
      </parameterDefinitions>
    </hudson.model.ParametersDefinitionProperty>
  </properties>
  <scm class="hudson.scm.NullSCM"/>
  <assignedNode>openstack-trackupstream</assignedNode>
  <canRoam>false</canRoam>
  <disabled>false</disabled>
  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
  <triggers class="vector"/>
  <concurrentBuild>false</concurrentBuild>
  <builders>
    <hudson.tasks.Shell>
      <command># DEBUG MODE with E=echo
# NORMAL MODE with E=
E=
#==========================

case $subproject in
  None) echo "No valid 'subproject' provided - defaults for safety reasons to 'None'"
        exit 1
  ;;
  "-")  echo "Subproject set to '-': skip job, do not fail (eg. for Master project)"
        exit 0
  ;;
esac

export BS=IBS
case $BS in
  OBS)
    OSC="osc -A https://api.opensuse.org"
  ;;
  IBS)
    OSC="osc -A https://api.suse.de"
  ;;
esac


COS=$project
COSS=$COS:$subproject
export BS_CHECKOUT=/home/jenkins/${BS}_CHECKOUT/$COSS
submitcmd="echo no submit for project=$project"
OSCBUILDDIST=SLE_11_SP2

case $project in
  ### backward compatibility for Cloud 1.0
  #Devel:Cloud:1.0)
  #  submitcmd="$OSC submitreq -m 'jenkins-submit-project'"
  #  OSCBUILDDIST=SLE_11_SP2
  #;;
  ###
  Cloud:OpenStack:[EF]*)
    submitcmd="$OSC copypac -K -e"
    OSCBUILDDIST=SLE_11_SP2
  ;;
  Cloud:OpenStack:[GH]*)
    submitcmd="$OSC copypac -K -e"
    OSCBUILDDIST=SLE_11_SP3
  ;;
  Devel:Cloud:2.0)
    submitcmd="$OSC submitreq -m 'jenkins-submit-project'"
    OSCBUILDDIST=SLE_11_SP3
  ;;
  Devel:Cloud:3)
    submitcmd="$OSC copypac -K -e"
    OSCBUILDDIST=SLE_11_SP3
  ;;
  isv:SUSE:Cloud:2.[05]|isv:SUSE:Cloud:3.0)
    submitcmd="$OSC copypac -K -e"
    OSCBUILDDIST=SLE_11_SP3
  ;;
  *) echo "Please add support for the project: $project"
     exit 1
esac


for COMPONENT in `$OSC ls $COSS 2&gt;/dev/null | grep -E "^(${packagefilter// /|})" | grep -v "^_product."` ; do
  cd $BS_CHECKOUT || exit 1
  cd $COMPONENT || exit 1

  grep -q "&lt;linkinfo" .osc/_files || exit 2

  if $OSC rdiff $COS $COMPONENT $COSS | grep .  &amp;&amp;  $OSC api /build/$COSS/$OSCBUILDDIST/x86_64/$COMPONENT/_status | grep -E 'code="succeeded"|package="_product"'
  then
    $E $submitcmd $COSS $COMPONENT $COS
  fi
done</command>
    </hudson.tasks.Shell>
  </builders>
  <publishers/>
  <buildWrappers>
    <hudson.plugins.timestamper.TimestamperBuildWrapper/>
    <org.jenkinsci.plugins.buildnamesetter.BuildNameSetter>
      <template>openstack-submit: ${ENV,var="project"}:${ENV,var="subproject"}</template>
    </org.jenkinsci.plugins.buildnamesetter.BuildNameSetter>
  </buildWrappers>
</project>
<commit_msg>Workaround for osc copypac trace<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project>
  <actions/>
  <description>This job submits packages from the "staging" subproject of an [IO]BS project to the main project.&#13;
Only packages that built successfully are submitted.&#13;
&lt;br /&gt;&lt;br /&gt;&#13;
&lt;b&gt;THIS is for Cloud 2.0 and up &lt;/b&gt;&lt;br /&gt;&#13;
&lt;i&gt;use openstack-submit-DCS for 1.0&lt;/i&gt;&#13;
</description>
  <keepDependencies>false</keepDependencies>
  <properties>
    <hudson.model.ParametersDefinitionProperty>
      <parameterDefinitions>
        <hudson.model.StringParameterDefinition>
          <name>project</name>
          <description>Name of the main project that should be updated with packages from its staging project.</description>
          <defaultValue/>
        </hudson.model.StringParameterDefinition>
        <hudson.model.StringParameterDefinition>
          <name>subproject</name>
          <description>Name of the subproject that acts as staging project.</description>
          <defaultValue>None</defaultValue>
        </hudson.model.StringParameterDefinition>
        <hudson.model.StringParameterDefinition>
          <name>packagefilter</name>
          <description>space separated strings to filter the packages by their names (from the beginning)</description>
          <defaultValue/>
        </hudson.model.StringParameterDefinition>
      </parameterDefinitions>
    </hudson.model.ParametersDefinitionProperty>
  </properties>
  <scm class="hudson.scm.NullSCM"/>
  <assignedNode>openstack-trackupstream</assignedNode>
  <canRoam>false</canRoam>
  <disabled>false</disabled>
  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
  <triggers class="vector"/>
  <concurrentBuild>false</concurrentBuild>
  <builders>
    <hudson.tasks.Shell>
      <command># DEBUG MODE with E=echo
# NORMAL MODE with E=
E=
#==========================

case $subproject in
  None) echo "No valid 'subproject' provided - defaults for safety reasons to 'None'"
        exit 1
  ;;
  "-")  echo "Subproject set to '-': skip job, do not fail (eg. for Master project)"
        exit 0
  ;;
esac

export BS=IBS
case $BS in
  OBS)
    OSC="osc -A https://api.opensuse.org"
  ;;
  IBS)
    OSC="osc -A https://api.suse.de"
  ;;
esac


COS=$project
COSS=$COS:$subproject
export BS_CHECKOUT=/home/jenkins/${BS}_CHECKOUT/$COSS
submitcmd="echo no submit for project=$project"
OSCBUILDDIST=SLE_11_SP2

case $project in
  ### backward compatibility for Cloud 1.0
  #Devel:Cloud:1.0)
  #  submitcmd="$OSC submitreq -m 'jenkins-submit-project'"
  #  OSCBUILDDIST=SLE_11_SP2
  #;;
  ###
  Cloud:OpenStack:[EF]*)
    submitcmd="$OSC copypac -K -e"
    OSCBUILDDIST=SLE_11_SP2
  ;;
  Cloud:OpenStack:[GH]*)
    submitcmd="$OSC copypac -K -e"
    OSCBUILDDIST=SLE_11_SP3
  ;;
  Devel:Cloud:2.0)
    submitcmd="$OSC submitreq -m 'jenkins-submit-project'"
    OSCBUILDDIST=SLE_11_SP3
  ;;
  Devel:Cloud:3)
    submitcmd="$OSC copypac -K -e"
    OSCBUILDDIST=SLE_11_SP3
  ;;
  isv:SUSE:Cloud:2.[05]|isv:SUSE:Cloud:3.0)
    submitcmd="$OSC copypac -K -e"
    OSCBUILDDIST=SLE_11_SP3
  ;;
  *) echo "Please add support for the project: $project"
     exit 1
esac


for COMPONENT in `$OSC ls $COSS 2&gt;/dev/null | grep -E "^(${packagefilter// /|})" | grep -v "^_product."` ; do
  cd $BS_CHECKOUT || exit 1
  cd $COMPONENT || exit 1

  grep -q "&lt;linkinfo" .osc/_files || exit 2

  if $OSC rdiff $COS $COMPONENT $COSS | grep .  &amp;&amp;  $OSC api /build/$COSS/$OSCBUILDDIST/x86_64/$COMPONENT/_status | grep -E 'code="succeeded"|package="_product"'
  then
    # NOTE(saschpe): the "|| :" is a work-around for an osc bug (should be fixed, but Adrian needs to release a new osc)
    # No need to put this in git.
    $E $submitcmd $COSS $COMPONENT $COS || :
  fi
done</command>
    </hudson.tasks.Shell>
  </builders>
  <publishers/>
  <buildWrappers>
    <hudson.plugins.timestamper.TimestamperBuildWrapper/>
    <org.jenkinsci.plugins.buildnamesetter.BuildNameSetter>
      <template>openstack-submit: ${ENV,var="project"}:${ENV,var="subproject"}</template>
    </org.jenkinsci.plugins.buildnamesetter.BuildNameSetter>
  </buildWrappers>
</project>

{'fraction_non_alphanumeric': 0.1436569386539607, 'fraction_numerical': 0.014532459797498511, 'mean_word_length': 3.8475750577367207, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 2, '>': 131, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3953390', 'n_tokens_mistral': 3038, 'n_tokens_neox': 2880, 'n_words': 623}