de23dd389f8e8e35c41880a85d74e9838a4df8e4
angie
  Thu Jun 18 15:11:49 2026 -0700
ssh to hgwdev for commands that need access to hgwdev-only directories, because these scripts run elsewhere now.  Tweak shell variables usherDir and friends to make it easier to try out different build directories.

diff --git src/hg/utils/otto/measles/buildTree.sh src/hg/utils/otto/measles/buildTree.sh
index 1afb91bce76..7de4f703f3c 100755
--- src/hg/utils/otto/measles/buildTree.sh
+++ src/hg/utils/otto/measles/buildTree.sh
@@ -36,54 +36,54 @@
 
 # Use my preferred name for the final tree & metadata files
 ln -f viz.pb.gz mev.$today.pb.gz
 ln -f metadata.tsv.gz mev.$today.metadata.tsv.gz
 ln -f tree.jsonl.gz mev.$today.jsonl.gz
 
 # Make description file
 $matUtils extract -i viz.pb.gz -u samples.$today >& tmp.log
 sampleCountComma=$(wc -l < samples.$today \
                    | sed -re 's/([0-9]+)([0-9]{3})$/\1,\2/; s/([0-9]+)([0-9]{3},[0-9]{3})$/\1,\2/;')
 echo "$sampleCountComma genomes from INSDC (GenBank/ENA/DDBJ) ($today)" \
      > hgPhyloPlace.description.txt
 
 # Update links in /gbdb
 dir=/gbdb/wuhCor1/hgPhyloPlaceData/$asmAcc
-mkdir -p $dir
-ln -sf $(pwd)/mev.$today.pb.gz $dir/mev.latest.pb.gz
-ln -sf $(pwd)/mev.$today.metadata.tsv.gz $dir/mev.latest.metadata.tsv.gz
-ln -sf $(pwd)/hgPhyloPlace.description.txt $dir/mev.latest.version.txt
+ssh hgwdev mkdir -p $dir
+ssh hgwdev ln -sf $(pwd)/mev.$today.pb.gz $dir/mev.latest.pb.gz
+ssh hgwdev ln -sf $(pwd)/mev.$today.metadata.tsv.gz $dir/mev.latest.metadata.tsv.gz
+ssh hgwdev ln -sf $(pwd)/hgPhyloPlace.description.txt $dir/mev.latest.version.txt
 
 # Extract Newick and VCF for anyone who wants to download those instead of protobuf
 $matUtils extract -i mev.$today.pb.gz \
           -t mev.$today.nwk \
           -v mev.$today.vcf >& tmp.log
 pigz -p 8 -f mev.$today.nwk mev.$today.vcf
 
 # Link to public trees download directory hierarchy
 for f in mev.$today.{pb,metadata.tsv,jsonl,nwk,vcf}.gz; do
     latestF=$(echo $(basename $f) | sed -re 's/'$today'/latest/')
     ln -f $(pwd)/$f $archiveRoot/$latestF
 done
 
 # Update hgdownload-test link for archive
 asmDir=$(echo $asmAcc \
          | sed -re 's@^(GC[AF])_([0-9]{3})([0-9]{3})([0-9]{3})\.([0-9]+)@\1/\2/\3/\4/\1_\2\3\4.\5@')
-mkdir -p /data/apache/htdocs-hgdownload/hubs/$asmDir/UShER_MeV
-ln -sf $archiveRoot/* /data/apache/htdocs-hgdownload/hubs/$asmDir/UShER_MeV/
+ssh hgwdev mkdir -p /data/apache/htdocs-hgdownload/hubs/$asmDir/UShER_MeV
+ssh hgwdev ln -sf $archiveRoot/* /data/apache/htdocs-hgdownload/hubs/$asmDir/UShER_MeV/
 # rsync to hgdownload hubs dir
-for h in hgdownload1 hgdownload3; do
-    if rsync -a -L --delete /data/apache/htdocs-hgdownload/hubs/$asmDir/UShER_MeV/* \
+for h in hgdownload1 hgdownload2 hgdownload3; do
+    if ssh hgwdev rsync -a -L --delete "/data/apache/htdocs-hgdownload/hubs/$asmDir/UShER_MeV/*" \
              qateam@$h:/mirrordata/hubs/$asmDir/UShER_MeV/; then
         true
     else
         echo ""
         echo "*** rsync to $h failed; disk full? ***"
         echo ""
     fi
 done
 
 set +o pipefail
-grep "Could not assign" annotate.log | cat
+grep "Could not assign" matUtils.annotate.err.log | cat
 set -o pipefail
 
 echo All done