1
0
Fork 0

host info for buildbots

This commit is contained in:
Mikhail Goncharov 2023-10-30 11:00:38 +01:00
parent f9822456ca
commit 3c3d093fb6
2 changed files with 16 additions and 3 deletions

View file

@ -40,7 +40,15 @@ if [[ -z "${BUILDBOT_ADDRESS+x}" ]]; then
else
buildbot-worker create-worker /build/buildbot $BUILDBOT_ADDRESS $BUILDBOT_NAME $BUILDBOT_PASSWORD
echo "llvm-premerge-buildbots <llvm-premerge-buildbots@google.com>" > /build/buildbot/info/admin
echo "Setup analogous to linux agent for to Pull Request checks" > /build/buildbot/info/host
echo "Setup analogous to linux agent for Pull Request checks" >> /build/buildbot/info/host
echo "Ubuntu 20, cmake-3.23.3, LLVM 16" >> /c/ws/buildbot/info/host
echo "https://github.com/google/llvm-premerge-checks/blob/main/containers/buildbot-linux/Dockerfile" >> /c/ws/buildbot/info/host
echo "lsb_release -a" >> /build/buildbot/info/host
lsb_release -a >> /build/buildbot/info/host
echo "lscpu" >> /build/buildbot/info/host
lscpu >> /build/buildbot/info/host
echo "dpkg -l" >> /build/buildbot/info/host
dpkg -l >> /build/buildbot/info/host
chown -R ${USER}:${USER} /build/buildbot
gosu "$USER" bash -c 'CC=clang CXX=clang++ LD=LLD buildbot-worker start /build/buildbot'
fi

View file

@ -15,6 +15,11 @@ mkdir -p /c/ws/buildbbot
buildbot-worker create-worker /c/ws/buildbot $BUILDBOT_ADDRESS $BUILDBOT_NAME $BUILDBOT_PASSWORD
echo "llvm-premerge-buildbots <llvm-premerge-buildbots@google.com>" > /c/ws/buildbot/info/admin
echo "Setup analogous to windows agent for to Pull Request checks" > /c/ws/buildbot/info/host
echo "Setup analogous to windows agent for Pull Request checks" > /c/ws/buildbot/info/host
echo "Windows ltsc2019, vs-2019, LLVM-16+" >> /c/ws/buildbot/info/host
echo "https://github.com/google/llvm-premerge-checks/blob/main/containers/buildbot-windows/Dockerfile" >> /c/ws/buildbot/info/host
echo "Get-WmiObject -Class Win32_Processor" >> /c/ws/buildbot/info/host
powershell.exe -c "Get-WmiObject -Class Win32_Processor" >> /c/ws/buildbot/info/host
echo "Get-WmiObject -Class Win32_Product" >> /c/ws/buildbot/info/host
powershell.exe -c "Get-WmiObject -Class Win32_Product" >> /c/ws/buildbot/info/host
$@