This is an automated email from the git hooks/post-receive script.
richard pushed a change to branch master in repository tor-browser-bundle-testsuite.
from 1b043d6 Bug 40041: Add @richard @pierov @aguestuser to nightly build emails new 5add307 Bug 40045: Add lock on tools/tb-build-01-start-nightly-build new 6933288 Bug 40045: Run static-update-component in rsync-to-tbb-nightlies-master
The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference.
Summary of changes: tools/rsync-to-tbb-nightlies-master | 7 ++++++- tools/tb-build-01-start-nightly-build | 24 ++++++++++++++++++++---- 2 files changed, 26 insertions(+), 5 deletions(-)
This is an automated email from the git hooks/post-receive script.
richard pushed a commit to branch master in repository tor-browser-bundle-testsuite.
commit 5add3079e5448f7ce6853ed9e687f53c476df39f Author: Nicolas Vigier boklm@torproject.org AuthorDate: Mon Apr 25 11:07:51 2022 +0200
Bug 40045: Add lock on tools/tb-build-01-start-nightly-build --- tools/tb-build-01-start-nightly-build | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
diff --git a/tools/tb-build-01-start-nightly-build b/tools/tb-build-01-start-nightly-build index 1d693e0..9dfb952 100755 --- a/tools/tb-build-01-start-nightly-build +++ b/tools/tb-build-01-start-nightly-build @@ -1,6 +1,26 @@ #!/bin/bash set -e
+function getlock { + lockfile=/run/lock/tb-build-01-start-nightly-build.lock + if test -f $lockfile + then + old_pid=$(cat $lockfile) + if test -z "$old_pid" || ! test -d "/proc/$old_pid" + then + echo "Removing old lockfile: $lockfile" + rm -f $lockfile + else + echo "Script already running. Exiting." 1>&2 + exit 0 + fi + fi + echo $$ > $lockfile + trap "rm -f $lockfile" EXIT +} + +getlock + today_version=$(date '+tbb-nightly.%Y.%m.%d')
cd /home/tb-builder/tor-browser-bundle-testsuite
This is an automated email from the git hooks/post-receive script.
richard pushed a commit to branch master in repository tor-browser-bundle-testsuite.
commit 6933288ad0e76a79c239364218a47b40dbffbd6b Author: Nicolas Vigier boklm@torproject.org AuthorDate: Mon Apr 25 11:13:15 2022 +0200
Bug 40045: Run static-update-component in rsync-to-tbb-nightlies-master --- tools/rsync-to-tbb-nightlies-master | 7 ++++++- tools/tb-build-01-start-nightly-build | 4 ---- 2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/tools/rsync-to-tbb-nightlies-master b/tools/rsync-to-tbb-nightlies-master index 996996d..eacaaf8 100755 --- a/tools/rsync-to-tbb-nightlies-master +++ b/tools/rsync-to-tbb-nightlies-master @@ -11,6 +11,11 @@ if (-f $lockfile) { } path($lockfile)->spew_utf8($$);
-system('rsync', '-aH', '--delete-before', '/home/tb-builder/nightly-builds/', +my $res = system('rsync', '-aH', '--delete-before', '/home/tb-builder/nightly-builds/', 'tbb-nightlies@tbb-nightlies-master.torproject.org:/'); +# Run static-update-component on tbb-nightlies-master: +# in /etc/ssh/userkeys/tbb-nightlies on tbb-nightlies-master we have a +# command="" option with this key running static-update-component +system('ssh', '-i', '/home/tb-builder/.ssh/id_rsa_static-update-component', + 'tbb-nightlies@tbb-nightlies-master.torproject.org', 'true') if $res == 0; unlink $lockfile; diff --git a/tools/tb-build-01-start-nightly-build b/tools/tb-build-01-start-nightly-build index 9dfb952..460ec35 100755 --- a/tools/tb-build-01-start-nightly-build +++ b/tools/tb-build-01-start-nightly-build @@ -59,7 +59,3 @@ test "$builds_size" -gt 20000000 && \ # sleep for 5m to give time to previous rsync to finish sleep 5m /home/tb-builder/tor-browser-bundle-testsuite/tools/rsync-to-tbb-nightlies-master -# Run static-update-component on tbb-nightlies-master: -# in /etc/ssh/userkeys/tbb-nightlies on tbb-nightlies-master we have a -# command="" option with this key running static-update-component -ssh -i /home/tb-builder/.ssh/id_rsa_static-update-component tbb-nightlies@tbb-nightlies-master.torproject.org true
tor-commits@lists.torproject.org