Skip to content

Commit 18919d6

Browse files
eliasnaurdmitshur
authored andcommitted
dashboard,env: move iOS builders to GOOS=ios
Updates golang/go#41610 Change-Id: Ie8cb3294da5566e09fc06c01e679b8b773a439cf Reviewed-on: https://go-review.googlesource.com/c/build/+/259358 Run-TryBot: Elias Naur <[email protected]> TryBot-Result: Go Bot <[email protected]> Trust: Elias Naur <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 8057bc8 commit 18919d6

File tree

5 files changed

+22
-21
lines changed

5 files changed

+22
-21
lines changed

dashboard/builders.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var slowBotAliases = map[string]string{
2929
"openbsd-arm64": "",
3030
"nacl-arm": "",
3131
"darwin-arm": "", // TODO(golang.org/issue/37611): Remove once port is removed.
32-
"ios-arm64": "", // TODO(golang.org/issue/41610): Add builder for ios/arm64.
32+
"darwin-arm64": "", // TODO(golang.org/issue/39782): Add builder for darwin/arm64.
3333

3434
"386": "linux-386",
3535
"aix": "aix-ppc64",
@@ -46,15 +46,15 @@ var slowBotAliases = map[string]string{
4646
"darwin": "darwin-amd64-10_14",
4747
"darwin-386": "darwin-386-10_14", // TODO(golang.org/issue/37610): Remove when Go 1.14 is no longer supported.
4848
"darwin-amd64": "darwin-amd64-10_14",
49-
"darwin-arm64": "darwin-arm64-corellium",
49+
"ios-arm64": "ios-arm64-corellium",
5050
"dragonfly": "dragonfly-amd64",
5151
"freebsd": "freebsd-amd64-12_0",
5252
"freebsd-386": "freebsd-386-12_0",
5353
"freebsd-amd64": "freebsd-amd64-12_0",
5454
"freebsd-arm": "freebsd-arm-paulzhol",
5555
"freebsd-arm64": "freebsd-arm64-dmgk",
5656
"illumos": "illumos-amd64",
57-
"ios": "darwin-arm64-corellium",
57+
"ios": "ios-arm64-corellium",
5858
"js": "js-wasm",
5959
"linux": "linux-amd64",
6060
"linux-arm64": "linux-arm64-packet",
@@ -562,13 +562,13 @@ var Hosts = map[string]*HostConfig{
562562
"GOROOT_BOOTSTRAP=/usr/local/go-bootstrap",
563563
},
564564
},
565-
"host-darwin-arm64-corellium-ios": &HostConfig{
565+
"host-ios-arm64-corellium-ios": &HostConfig{
566566
Notes: "Virtual iOS devices hosted by Zenly on Corellium; see issues 31722 and 40523",
567567
OwnerGithub: "znly",
568568
IsReverse: true,
569569
ExpectNum: 2,
570570
env: []string{
571-
"GOROOT_BOOTSTRAP=/var/mobile/go-darwin-arm64-bootstrap",
571+
"GOROOT_BOOTSTRAP=/var/mobile/go-ios-arm64-bootstrap",
572572
},
573573
},
574574
"host-android-arm64-corellium-android": &HostConfig{
@@ -2115,12 +2115,13 @@ func init() {
21152115
buildsRepo: onlyGo,
21162116
})
21172117
addBuilder(BuildConfig{
2118-
Name: "darwin-arm64-corellium",
2119-
HostType: "host-darwin-arm64-corellium-ios",
2118+
Name: "ios-arm64-corellium",
2119+
HostType: "host-ios-arm64-corellium-ios",
21202120
Notes: "Virtual iPhone SE running on Corellium; owned by zenly",
21212121
buildsRepo: func(repo, branch, goBranch string) bool {
21222122
return repo == "go" && branch == "master" && goBranch == "master"
21232123
},
2124+
KnownIssue: 41610,
21242125
})
21252126
addBuilder(BuildConfig{
21262127
Name: "android-arm64-corellium",

dashboard/builders_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,11 +399,11 @@ func TestBuilderConfig(t *testing.T) {
399399
{b("linux-amd64-nocgo", "mobile"), none},
400400

401401
// Virtual mobiledevices
402-
{b("darwin-arm64-corellium", "go"), isBuilder},
402+
{b("ios-arm64-corellium", "go"), isBuilder},
403403
{b("android-arm64-corellium", "go"), isBuilder},
404404
{b("android-arm-corellium", "go"), isBuilder},
405405

406-
// Mobile builders that run with GOOS=linux/darwin and have
406+
// Mobile builders that run with GOOS=linux/ios and have
407407
// a device attached.
408408
{b("linux-amd64-androidemu", "mobile"), both},
409409

env/corellium/ios/files/builder.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
export HOME=/var/root
44
export CC=$HOME/bin/clangwrap
5-
export GO_BUILDER_ENV=host-darwin-arm64-corellium-ios
6-
export GOROOT_BOOTSTRAP=$HOME/go-darwin-arm64-bootstrap
5+
export GO_BUILDER_ENV=host-ios-arm64-corellium-ios
6+
export GOROOT_BOOTSTRAP=$HOME/go-ios-arm64-bootstrap
77
export PATH=$HOME/bin:$PATH
88
while true; do
99
$GOROOT_BOOTSTRAP/bin/go get golang.org/x/build/cmd/buildlet
10-
$HOME/go/bin/buildlet -reverse-type host-darwin-arm64-corellium-ios -coordinator farmer.golang.org
10+
$HOME/go/bin/buildlet -reverse-type host-ios-arm64-corellium-ios -coordinator farmer.golang.org
1111
sleep 1
1212
done

env/corellium/ios/files/profile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export PATH=$HOME/bin:$HOME/go/bin:$PATH
2-
export GOROOT_BOOTSTRAP=$HOME/go-darwin-arm64-bootstrap
2+
export GOROOT_BOOTSTRAP=$HOME/go-ios-arm64-bootstrap

env/corellium/ios/install.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# Put a builder key in `buildkey`.
88
#
99
# Use `bootstrap.bash` from the Go standard distribution to build a
10-
# darwin/arm64 bootstrap toolchain and put it in
11-
# `go-darwin-arm64-bootstrap.tbz`.
10+
# ios/arm64 bootstrap toolchain and put it in
11+
# `go-ios-arm64-bootstrap.tbz`.
1212
#
1313
# Finally, install.sh assumes an iPhone SDK in `iPhoneOS.sdk`.
1414

@@ -28,20 +28,20 @@ scp files/org.golang.builder.plist $HOST:/Library/LaunchDaemons/
2828
ios launchctl load -w /Library/LaunchDaemons/org.golang.builder.plist
2929
scp files/builder.sh $HOST:/var/root
3030

31-
scp go-darwin-arm64-bootstrap.tbz $HOST:/var/root
32-
ios tar xjf go-darwin-arm64-bootstrap.tbz
33-
scp buildkey $HOST:/var/root/.gobuildkey-host-darwin-arm64-corellium-ios
31+
scp go-ios-arm64-bootstrap.tbz $HOST:/var/root
32+
ios tar xjf go-ios-arm64-bootstrap.tbz
33+
scp buildkey $HOST:/var/root/.gobuildkey-host-ios-arm64-corellium-ios
3434
scp files/profile $HOST:/var/root/.profile
3535
rsync -va iPhoneOS.sdk $HOST:/var/root/
3636

3737
# Dummy sign Go bootstrap toolchain.
38-
ios find go-darwin-arm64-bootstrap -executable -type f| ios xargs -n1 ldid -S
38+
ios find go-ios-arm64-bootstrap -executable -type f| ios xargs -n1 ldid -S
3939

4040
ios mkdir -p /var/root/bin
4141

4242
# Build wrappers on the host.
43-
CGO_ENABLED=1 GOOS=darwin CC=$(go env GOROOT)/misc/ios/clangwrap.sh GOARCH=arm64 go build -o clangwrap -ldflags="-X main.sdkpath=/var/root/iPhoneOS.sdk" files/clangwrap.go
44-
CGO_ENABLED=1 GOOS=darwin CC=$(go env GOROOT)/misc/ios/clangwrap.sh GOARCH=arm64 go build -o arwrap files/arwrap.go
43+
CGO_ENABLED=1 GOOS=ios CC=$(go env GOROOT)/misc/ios/clangwrap.sh GOARCH=arm64 go build -o clangwrap -ldflags="-X main.sdkpath=/var/root/iPhoneOS.sdk" files/clangwrap.go
44+
CGO_ENABLED=1 GOOS=ios CC=$(go env GOROOT)/misc/ios/clangwrap.sh GOARCH=arm64 go build -o arwrap files/arwrap.go
4545
scp arwrap $HOST:/var/root/bin/ar
4646
scp clangwrap $HOST:/var/root/bin/clangwrap
4747
# Dummy sign them.

0 commit comments

Comments
 (0)