Create test updates for What's New page handling for Fx12

RESOLVED FIXED

Status

P2
normal
RESOLVED FIXED
7 years ago
5 years ago

People

(Reporter: nthomas, Assigned: nthomas)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Assignee)

Description

7 years ago
Bug 739793 appends a ?oldversion=<foo> to what's new requests when people apply updates. We should test that works (once bug 742998 adds support on mozilla.org) for users on 3.6.13 through 3.6.28, and also that we're suppressing WN for people updating from 4.0 or later. We can use 12.0b4 as destination to test this ahead of 12.0 being built for real.
(Assignee)

Comment 1

7 years ago
platforms="Darwin_x86_64-gcc3-u-i386-x86_64 Darwin_x86-gcc3-u-i386-x86_64 \
           Linux_x86_64-gcc3 Linux_x86-gcc3 WINNT_x86-msvc"
old_platforms="Darwin_x86-gcc3-u-ppc-i386  Linux_x86-gcc3  WINNT_x86-msvc"

cd /opt/aus2/snippets/staging/
mkdir -p Firefox-12.0b5-build1-WN-test/Firefox
cd $_

# 11.0 -> 12.0b5
for p in $platforms; do
  mkdir -p 11.0/$p
  rsync -a /opt/aus2/snippets/staging/Firefox-12.0b5-build1-test/Firefox/12.0/$p/20120314195616/{en-US,de} 11.0/$p/20120312181643/
done
rm -rf 11.0/*/*/*/betatest

# 3.6.28 -> 12.0b5
for p in $old_platforms; do
  mkdir -p 3.6.28/$p
  if [[ $p == 'Darwin_x86-gcc3-u-ppc-i386' ]]; then
    p_cp='Darwin_x86-gcc3-u-i386-x86_64'
  else
    p_cp=$p
  fi
  for locale in en-US de; do
    rsync -a /opt/aus2/snippets/staging/Firefox-3.6.28-build1-11.0-build2-MU/Firefox/3.6.28/$p/20120306064154/$locale 3.6.28/$p/20120306064154/
    mv 3.6.28/$p/20120306064154/$locale/{release,releasetest}
    for param in url hashValue size build; do
      new_value=`grep -h ${param} 11.0/$p_cp/20120312181643/$locale/releasetest/complete.txt | sed -e 's/&/\\\&/g'`
      sed -ri -e s#^$param.*#$new_value# 3.6.28/$p/20120306064154/$locale/releasetest/complete.txt
    done
    sed -i s/v=11.0$/v=12.0b5/ 3.6.28/$p/20120306064154/$locale/releasetest/complete.txt
    cp 3.6.28/$p/20120306064154/$locale/releasetest/{complete,partial}.txt
    sed -i s/^type=.*/type=partial/ 3.6.28/$p/20120306064154/$locale/releasetest/partial.txt
  done
done

~/bin/backupsnip Firefox-12.0b5-build1-WN-test
~/bin/pushsnip Firefox-12.0b5-build1-WN-test
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
No longer blocks: 752716
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.