XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 4.4.2.AM1
    • 4.3.1.CR1
    • build, install-tests
    • None
    • devex #115 May 2016, devex #116 June 2016, devex #118 July 2016, devex #119 August 2016, devex #121 October 2016, devex #125 December 2016

      Once we're done running stage.sh, we need a way to automatically review the content has been correctly published.

      Today, we do this:

      versionWithRespin=4.3.1.CR1b # a, b, c...
      tmpfile=/tmp/jbosstools-staging__verify.txt
      for site in site coretests-site central-site earlyaccess-site discovery.central discovery.earlyaccess; do
        if [[ ${site} == "site" ]]; then sitename="core"; else sitename=${site/-site/}; fi
        echo "http://download.jboss.org/jbosstools/mars/staging/builds/jbosstools-${versionWithRespin}-build-${sitename}/ " >> $tmpfile
        echo "http://download.jboss.org/jbosstools/mars/staging/updates/${sitename}/${versionWithRespin}/ " >> $tmpfile
      done
      for site in browsersim-standalone; do
        if [[ ${site} == "site" ]]; then sitename="core"; else sitename=${site/-site/}; fi
        echo "http://download.jboss.org/jbosstools/mars/staging/builds/jbosstools-${versionWithRespin}-build-${sitename}/ " >> $tmpfile
      done
      echo "" >> $tmpfile
      cat $tmpfile
      firefox `cat $tmpfile`
      rm -fr $tmpfile
      
      # verify changes
      echo "Check 6 URLs:"
      firefox \
      http://download.jboss.org/jbosstools/mars/staging/updates/discovery.central/${versionWithRespin}/compositeContent.xml \
      http://download.jboss.org/jbosstools/mars/staging/updates/discovery.earlyaccess/${versionWithRespin}/compositeContent.xml \
      http://download.jboss.org/jbosstools/mars/staging/updates/compositeContent.xml \
      http://download.jboss.org/jbosstools/mars/staging/updates/core/compositeContent.xml \
      http://download.jboss.org/jbosstools/mars/staging/updates/core/ \
      http://download.jboss.org/jbosstools/mars/staging/updates/
      

      or

      versionWithRespin=9.1.0.CR1b # a, b, c...
      tmpfile=/tmp/jbosstools-staging__verify.txt
      for site in central earlyaccess discovery.central discovery.earlyaccess; do
        if [[ ${site} == "site" ]]; then sitename="core"; else sitename=${site/-site/}; fi
        echo "https://devstudio.redhat.com/9.0/staging/builds/devstudio-${versionWithRespin}-build-${sitename}/ " >> $tmpfile
        echo "https://devstudio.redhat.com/9.0/staging/updates/${sitename}/${versionWithRespin}/ " >> $tmpfile
      done
      echo "https://devstudio.redhat.com/9.0/staging/builds/devstudio-${versionWithRespin}-build-product/ " >> $tmpfile
      echo "http://www.qa.jboss.com/binaries/RHDS/9.0/staging/builds/devstudio-${versionWithRespin}-build-product/ " >> $tmpfile
      echo "https://devstudio.redhat.com/9.0/staging/builds/#_____(5_folders_w/_${versionWithRespin}) " >> $tmpfile
      echo "https://devstudio.redhat.com/9.0/staging/updates/core/#_____(6_zips,_6_sums,_1_folder_w/_${versionWithRespin}) " >> $tmpfile
      echo "" >> $tmpfile
      cat $tmpfile
      firefox `cat $tmpfile`
      popd >/dev/null
      rm -fr $tmpfile
      
      # verify changes
      echo "Check 4 URLs:"
      firefox \
      https://devstudio.redhat.com/9.0/staging/updates/discovery.central/${versionWithRespin}/compositeContent.xml \
      https://devstudio.redhat.com/9.0/staging/updates/discovery.earlyaccess/${versionWithRespin}/compositeContent.xml \
      https://devstudio.redhat.com/9.0/staging/updates/compositeContent.xml \
      https://devstudio.redhat.com/9.0/staging/updates/
      

      But ideally we could fetch those pages via curl and sed to check if the content we expect has been correctly published.

      Need to pseudocode the rules to verify, then figure out how to sed/grep the html to ensure what we need is present.

      May also need to forgive gently – try again 3 times at 2 min intervals before raising an alarm.

              nickboldt Nick Boldt
              nickboldt Nick Boldt
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: