all: remove packet arm64 machines

linux-arm64-packet builder machine is getting decommissioned on
27/06/22. This CL removes the build machine before the decommission.

Fixes golang/go#53436

Change-Id: I9992481bddc3376d86ec0d69d8e7da0157333adf
Reviewed-on: https://go-review.googlesource.com/c/build/+/413154
Run-TryBot: Carlos Amedee <carlos@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Carlos Amedee <carlos@golang.org>
This commit is contained in:
Aaqa Ishtyaq 2022-06-18 19:47:35 +05:30 коммит произвёл Gopher Robot
Родитель 4de31d16cc
Коммит cef0fbf8b4
7 изменённых файлов: 1 добавлений и 123 удалений

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

@ -85,7 +85,7 @@ func main() {
}
case "linux/arm64":
switch env := os.Getenv("GO_BUILDER_ENV"); env {
case "host-linux-arm64-packet", "host-linux-arm64-aws":
case "host-linux-arm64-aws":
// No special setup.
default:
panic(fmt.Sprintf("unknown/unspecified $GO_BUILDER_ENV value %q", env))
@ -182,16 +182,6 @@ Download:
cmd.Args = append(cmd.Args, reverseHostTypeArgs("host-linux-s390x")...)
case "linux/arm64":
switch buildEnv {
case "host-linux-arm64-packet":
hostname := os.Getenv("HOSTNAME") // if empty, docker container name is used
cmd.Args = append(cmd.Args,
"--reverse-type="+buildEnv,
"--workdir=/workdir",
"--hostname="+hostname,
"--halt=false",
"--reboot=false",
"--coordinator=farmer.golang.org:443",
)
case "host-linux-arm64-aws":
// no special configuration
default:

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

@ -149,7 +149,6 @@ var basePinErr atomic.Value
func addHealthCheckers(ctx context.Context, sc *secret.Client) {
addHealthChecker(newMacHealthChecker())
addHealthChecker(newMacOSARM64Checker())
addHealthChecker(newPacketHealthChecker())
addHealthChecker(newOSUPPC64Checker())
addHealthChecker(newOSUPPC64leChecker())
addHealthChecker(newOSUPPC64lePower9Checker())
@ -399,20 +398,6 @@ func expectedHosts(hostType string) int {
return hc.ExpectNum
}
func newPacketHealthChecker() *healthChecker {
var hosts []string
for i := 1; i <= expectedHosts("host-linux-arm64-packet"); i++ {
name := fmt.Sprintf("packet%02d", i)
hosts = append(hosts, name)
}
return &healthChecker{
ID: "packet",
Title: "Packet linux/arm64 machines",
DocURL: "https://github.com/golang/build/tree/master/env/linux-arm64/packet",
Check: reverseHostChecker(hosts),
}
}
func newOSUPPC64Checker() *healthChecker {
var hosts []string
for i := 1; i <= expectedHosts("host-linux-ppc64-osu"); i++ {

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

@ -564,14 +564,6 @@ var Hosts = map[string]*HostConfig{
SSHUsername: "root",
HermeticReverse: true,
},
"host-linux-arm64-packet": &HostConfig{
Notes: "On 96 core packet.net host (Xenial) in Docker containers (Debian Buster); run by Go team. See x/build/env/linux-arm64/packet",
IsReverse: true,
HermeticReverse: true,
ExpectNum: 8,
env: []string{"GOROOT_BOOTSTRAP=/usr/local/go-bootstrap"},
SSHUsername: "root",
},
"host-linux-arm64-aws": &HostConfig{
Notes: "Debian Buster, EC2 arm64 instance. See x/build/env/linux-arm64/aws",
VMImage: "ami-03089323a1d38e652",
@ -2528,11 +2520,6 @@ func init() {
distTestAdjust: ppc64DistTestPolicy,
env: []string{"GO_TEST_TIMEOUT_SCALE=2"}, // see golang.org/issues/44422
})
addBuilder(BuildConfig{
Name: "linux-arm64-packet",
HostType: "host-linux-arm64-packet",
FlakyNet: true, // maybe not flaky, but here conservatively
})
addBuilder(BuildConfig{
Name: "linux-arm64-aws",
HostType: "host-linux-arm64-aws",

9
env/linux-arm64/packet/Dockerfile поставляемый
Просмотреть файл

@ -1,9 +0,0 @@
# Copyright 2017 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
FROM golang.org/linux-arm64
ENV GO_BUILDER_ENV host-linux-arm64-packet
CMD ["/usr/local/bin/stage0"]

52
env/linux-arm64/packet/README поставляемый
Просмотреть файл

@ -1,52 +0,0 @@
Only needed to create new machines: (skip this step)
https://app.packet.net/
login info: go/go-builder-packet
Machines:
golang-builder-1:
$ ssh -i ~/keys/id_ed25519_golang1 root@147.75.74.194
(key: go/golang-ssh-key)
Machine details:
root@go-builder:~# cat /proc/cpuinfo | grep process | wc -l
96
root@go-builder:~/packet# free
total used free shared buff/cache available
Mem: 32876144 1091236 30183828 17852 1601080 31052836
Swap: 2441980 0 2441980
root@go-builder:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial
But each machine is setup like (from within build/env/linux-arm64):
# local
$ scp -i ~/keys/id_ed25519_golang1 -r . root@147.75.74.194:~
$ GOARCH=arm64 GOOS=linux CGO_ENABLED=0 go build golang.org/x/build/cmd/rundockerbuildlet && \
scp -i ~/keys/id_ed25519_golang1 rundockerbuildlet root@147.75.74.194:/usr/local/bin
# on packet box
$ apt-get update && apt-get install docker.io
$ cd packet && ./build.sh (with Dockerfile in same directory)
$ echo "<BUILDER KEY>" > /etc/gobuild.key # see go/go-builder-notes
$ cp rundockerbuildlet.service /etc/systemd/user/
$ systemctl enable /etc/systemd/user/rundockerbuildlet.service
$ systemctl start rundockerbuildlet.service

10
env/linux-arm64/packet/build.sh поставляемый
Просмотреть файл

@ -1,10 +0,0 @@
#!/bin/bash
# Copyright 2022 Go Authors All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
#
# This is run on the arm64 host with the Dockerfile in the same directory.
# The parent Dockerfile and build.sh (linux-arm64/*) must be in parent directory.
(cd ../ && ./build.sh) && docker build -t gobuilder-arm64-packet:1 .

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

@ -1,13 +0,0 @@
[Unit]
Description=Run Buildlets in Docker
After=network.target
[Install]
WantedBy=network-online.target
[Service]
Type=simple
ExecStart=/usr/local/bin/rundockerbuildlet -basename=packet -image=gobuilder-arm64-packet:1 -n=8 -cpu=12
Restart=always
RestartSec=2
StartLimitInterval=0