[devops] Don't collect (and re-upload) binlogs from artifacts we've downloaded from previous builds. (#19964)

This fixes an issue where the zip of all the binlogs we'd collect for the
Windows test run also contained all the binlogs from all other jobs completed
at that point (because they were downloaded as artifacts).
This commit is contained in:
Rolf Bjarne Kvinge 2024-02-01 08:09:16 +01:00 коммит произвёл GitHub
Родитель 6acb826a7e
Коммит 659122b816
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -9,7 +9,7 @@ TOPLEVEL="$(git rev-parse --show-toplevel)"
# Collect and zip up all the binlogs
mkdir -p ~/remote_build_testing/binlogs
rsync -av --prune-empty-dirs --include '*/' --include '*.binlog' --exclude '*' "$TOPLEVEL/.." ~/remote_build_testing/binlogs
rsync -avv --prune-empty-dirs --exclude 'artifacts/' --include '*/' --include '*.binlog' --exclude '*' "$TOPLEVEL/.." ~/remote_build_testing/binlogs
rm -f ~/remote_build_testing/windows-remote-logs.zip
zip -9r ~/remote_build_testing/windows-remote-logs.zip ~/remote_build_testing/binlogs

Просмотреть файл

@ -10,6 +10,9 @@ if du -hs ~/Library/Caches/Xamarin; then
rm -rf ~/Library/Caches/Xamarin
fi
# Make sure we don't have stuff from earlier builds.
rm -rf ~/remote_build_testing
# Install the local .NET we're using into XMA's directory
# (we can't point XMA to our local directory)
mkdir -p ~/Library/Caches/Xamarin/XMA/SDKs