Skip to content

Commit a5d3073

Browse files
committed
dashboard, env/openbsd: add OpenBSD 6.4 snapshot builders
This change adds amd64 and 386 OpenBSD 6.4 snapshot builders. The snapshots are from October 4, 2018: /pub/OpenBSD/snapshots/amd64/BUILDINFO: Build date: 1538669162 - Thu Oct 4 16:06:02 UTC 2018 /pub/OpenBSD/snapshots/i386/BUILDINFO: Build date: 1538681766 - Thu Oct 4 19:36:06 UTC 2018 These are meant to be replaced with the final version of OpenBSD 6.4 when it is released. Modify make.bash to support fetching snapshot versions. The amd64 architecture image was tested with cmd/debugnewvm and passed all tests successfully. Updates golang/go#26833. Change-Id: Iea456605ace08f25d4eba37f9a962e6b9af95369 Reviewed-on: https://go-review.googlesource.com/c/139857 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent db7e295 commit a5d3073

File tree

3 files changed

+46
-7
lines changed

3 files changed

+46
-7
lines changed

dashboard/builders.go

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,22 @@ var Hosts = map[string]*HostConfig{
146146
Notes: "OpenBSD 6.2; GCE VM is built from script in build/env/openbsd-386",
147147
SSHUsername: "gopher",
148148
},
149+
"host-openbsd-amd64-64": &HostConfig{
150+
VMImage: "openbsd-amd64-64-snap1",
151+
machineType: "n1-highcpu-4",
152+
buildletURLTmpl: "https://storage.googleapis.com/$BUCKET/buildlet.openbsd-amd64-64",
153+
goBootstrapURLTmpl: "https://storage.googleapis.com/$BUCKET/gobootstrap-openbsd-amd64-64.tar.gz",
154+
Notes: "OpenBSD 6.4 snapshot from Oct 4, 2018; GCE VM is built from script in build/env/openbsd-amd64",
155+
SSHUsername: "gopher",
156+
},
157+
"host-openbsd-386-64": &HostConfig{
158+
VMImage: "openbsd-386-64-snap1",
159+
machineType: "n1-highcpu-4",
160+
buildletURLTmpl: "https://storage.googleapis.com/$BUCKET/buildlet.openbsd-386-64",
161+
goBootstrapURLTmpl: "https://storage.googleapis.com/$BUCKET/gobootstrap-openbsd-386-64.tar.gz",
162+
Notes: "OpenBSD 6.4 snapshot from Oct 4, 2018; GCE VM is built from script in build/env/openbsd-386",
163+
SSHUsername: "gopher",
164+
},
149165
"host-freebsd-93-gce": &HostConfig{
150166
VMImage: "freebsd-amd64-gce93",
151167
machineType: "n1-highcpu-4",
@@ -1315,6 +1331,21 @@ func init() {
13151331
numTryTestHelpers: 5,
13161332
MaxAtOnce: 1,
13171333
})
1334+
addBuilder(BuildConfig{
1335+
Name: "openbsd-amd64-64",
1336+
HostType: "host-openbsd-amd64-64",
1337+
ShouldRunDistTest: noTestDir,
1338+
TryBot: false,
1339+
numTestHelpers: 0,
1340+
numTryTestHelpers: 5,
1341+
MaxAtOnce: 1,
1342+
})
1343+
addBuilder(BuildConfig{
1344+
Name: "openbsd-386-64",
1345+
HostType: "host-openbsd-386-64",
1346+
ShouldRunDistTest: noTestDir,
1347+
MaxAtOnce: 1,
1348+
})
13181349
addBuilder(BuildConfig{
13191350
Name: "netbsd-amd64-8_0",
13201351
HostType: "host-netbsd-amd64-8_0",

env/openbsd-amd64/README

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ Debian packages: expect qemu-utils qemu-system-x86.
77
After it completes, it creates a file openbsd-amd64-gce.tar.gz
88

99
Then:
10-
gsutil cp -a public-read openbsd-amd64-gce.tar.gz gs://go-builder-data/openbsd-amd64-gce.tar.gz
10+
gsutil cp -a public-read openbsd-amd64-gce.tar.gz gs://go-builder-data/openbsd-amd64-64-snap1.tar.gz
1111
Or just use the web UI at:
1212
https://console.developers.google.com/project/symbolic-datum-552/storage/browser/go-builder-data/
1313

1414
Then:
15-
gcloud compute --project symbolic-datum-552 images delete openbsd-amd64-56
16-
gcloud compute --project symbolic-datum-552 images create openbsd-amd64-56 --source-uri gs://go-builder-data/openbsd-amd64-gce.tar.gz
15+
gcloud compute --project symbolic-datum-552 images delete openbsd-amd64-64-snap1
16+
gcloud compute --project symbolic-datum-552 images create openbsd-amd64-64-snap1 --source-uri gs://go-builder-data/openbsd-amd64-64-snap1.tar.gz
1717

1818
The VM needs to be run with the GCE metadata attribute "buildlet-binary-url" set to a URL
1919
of the OpenBSD buildlet (cross-compiled, typically).
2020

21-
buildlet-binary-url == http://storage.googleapis.com/go-builder-data/buildlet.openbsd-amd64
21+
buildlet-binary-url == https://storage.googleapis.com/go-builder-data/buildlet.openbsd-amd64

env/openbsd-amd64/make.bash

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
set -e
99
set -u
1010

11-
readonly VERSION="6.3"
11+
readonly VERSION="6.4"
1212
readonly RELNO="${VERSION/./}"
13+
readonly SNAPSHOT=false
1314

1415
readonly ARCH="${ARCH:-amd64}"
1516
readonly MIRROR="${MIRROR:-ftp.usa.openbsd.org}"
@@ -23,7 +24,11 @@ readonly ISO="install${RELNO}-${ARCH}.iso"
2324
readonly ISO_PATCHED="install${RELNO}-${ARCH}-patched.iso"
2425

2526
if [[ ! -f "${ISO}" ]]; then
26-
curl -o "${ISO}" "https://${MIRROR}/pub/OpenBSD/${VERSION}/${ARCH}/install${RELNO}.iso"
27+
DIR="${VERSION}"
28+
if [[ "$SNAPSHOT" = true ]]; then
29+
DIR="snapshots"
30+
fi
31+
curl -o "${ISO}" "https://${MIRROR}/pub/OpenBSD/${DIR}/${ARCH}/install${RELNO}.iso"
2732
fi
2833

2934
function cleanup() {
@@ -45,11 +50,14 @@ trap cleanup EXIT INT
4550
# Currently we download them from the network during the install process.
4651

4752
# Create custom siteXX.tgz set.
53+
if [[ "$SNAPSHOT" = true ]]; then
54+
PKG_ADD_OPTIONS="-D snap"
55+
fi
4856
mkdir -p etc
4957
cat >install.site <<EOF
5058
#!/bin/sh
5159
syspatch
52-
pkg_add -iv bash curl git
60+
pkg_add -iv ${PKG_ADD_OPTIONS} bash curl git
5361
5462
echo 'set tty com0' > boot.conf
5563
EOF

0 commit comments

Comments
 (0)