[build] env/openbsd-amd64: update build image script to OpenBSD 7.6

8 views
Skip to first unread message

Joel Sing (Gerrit)

unread,
Oct 9, 2024, 9:13:13 AM10/9/24
to Heschi Kreinick, Dmitri Shuralyov, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
Attention needed from Dmitri Shuralyov and Heschi Kreinick

Joel Sing has uploaded the change for review

Joel Sing would like Heschi Kreinick and Dmitri Shuralyov to review this change.

Commit message

env/openbsd-amd64: update build image script to OpenBSD 7.6

OpenBSD 7.6 has been released, meaning that the only two supported
versions are 7.5 and 7.6. Update the image build script for 7.6.

Additionally, bump the maxproc limit for the swarming user, which
will hopefully reduce the number of failures due to fork/exec
returning EAGAIN.

Updates golang/go#66474
Updates golang/go#69823
Change-Id: Ie2667de2defefbb6a56adca3dec92d7663c615e4

Change diff

diff --git a/env/openbsd-amd64/README b/env/openbsd-amd64/README
index 6520b67..a552832 100644
--- a/env/openbsd-amd64/README
+++ b/env/openbsd-amd64/README
@@ -3,18 +3,18 @@

make.bash should be run on a Linux box with expect and qemu.
Debian packages: expect qemu-utils qemu-system-x86 growisofs genisoimage.
- VERSION=7.2 ARCH=amd64 ./make.bash
+ VERSION=7.6 ARCH=amd64 ./make.bash

After it completes, it creates a file openbsd-${VERSION}-${ARCH}-gce.tar.gz

Then:
- gsutil cp -a public-read openbsd-7.2-amd64-gce.tar.gz gs://go-builder-data/openbsd-amd64-72.tar.gz
+ gsutil cp -a public-read openbsd-7.6-amd64-gce.tar.gz gs://go-builder-data/openbsd-amd64-76.tar.gz
Or just use the web UI at:
https://console.developers.google.com/project/symbolic-datum-552/storage/browser/go-builder-data/

Then:
- gcloud compute --project symbolic-datum-552 images delete openbsd-amd64-72
- gcloud compute --project symbolic-datum-552 images create openbsd-amd64-72 --source-uri gs://go-builder-data/openbsd-amd64-72.tar.gz
+ gcloud compute --project symbolic-datum-552 images delete openbsd-amd64-76
+ gcloud compute --project symbolic-datum-552 images create openbsd-amd64-76 --source-uri gs://go-builder-data/openbsd-amd64-76.tar.gz

The VM needs to be run with the GCE metadata attribute "buildlet-binary-url" set to a URL
of the OpenBSD buildlet (cross-compiled, typically).
diff --git a/env/openbsd-amd64/make.bash b/env/openbsd-amd64/make.bash
index 12892f2..5322381 100755
--- a/env/openbsd-amd64/make.bash
+++ b/env/openbsd-amd64/make.bash
@@ -7,7 +7,7 @@
set -u

# Update to the version listed on https://openbsd.org
-readonly VERSION="${VERSION:-7.2}"
+readonly VERSION="${VERSION:-7.6}"
readonly RELNO="${VERSION/./}"
readonly SNAPSHOT=false

@@ -63,18 +63,17 @@
:vmemoryuse-cur=infinity: \
:memoryuse-max=infinity: \
:memoryuse-cur=infinity: \
- :maxproc-max=1024: \
- :maxproc-cur=1024: \
+ :maxproc-max=2048: \
+ :maxproc-cur=2048: \
:openfiles-max=4096: \
:openfiles-cur=4096: \
:tc=default:
EOLOGIN
usermod -L moreres swarming
syspatch
-# Run syspatch twice in case syspatch itself needs patching (this is the case with OpenBSD
-# 7.1: https://www.openbsd.org/errata71.html )
+# Run syspatch twice in case syspatch itself needs patching (this has been needed previously).
syspatch
-pkg_add -iv ${PKG_ADD_OPTIONS} bash curl git python3 sudo--gettext
+pkg_add -iv ${PKG_ADD_OPTIONS} bash curl git python%3 sudo--gettext
chown root:wheel /etc/sudoers
halt -p
EOF
@@ -124,7 +123,7 @@
EOF
chmod +x ${SITE}/install.site
mkdir -p ${SITE}/usr/local/bin
-CGO_ENABLED=0 GOOS=openbsd GOARCH=${ARCH/i386/386} go1.21.0 build -o ${SITE}/usr/local/bin/bootstrapswarm golang.org/x/build/cmd/bootstrapswarm
+CGO_ENABLED=0 GOOS=openbsd GOARCH=${ARCH/i386/386} go1.23.2 build -o ${SITE}/usr/local/bin/bootstrapswarm golang.org/x/build/cmd/bootstrapswarm
tar --mode a=rx,u=rwx --owner root:0 --group wheel:0 -C ${SITE} -zcf ${WORK}/site${RELNO}.tgz .

# Autoinstall script.

Change information

Files:
  • M env/openbsd-amd64/README
  • M env/openbsd-amd64/make.bash
Change size: S
Delta: 2 files changed, 10 insertions(+), 11 deletions(-)
Open in Gerrit

Related details

Attention is currently required from:
  • Dmitri Shuralyov
  • Heschi Kreinick
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: build
Gerrit-Branch: master
Gerrit-Change-Id: Ie2667de2defefbb6a56adca3dec92d7663c615e4
Gerrit-Change-Number: 618895
Gerrit-PatchSet: 1
Gerrit-Owner: Joel Sing <jo...@sing.id.au>
Gerrit-Reviewer: Dmitri Shuralyov <dmit...@google.com>
Gerrit-Reviewer: Heschi Kreinick <hes...@google.com>
Gerrit-Attention: Heschi Kreinick <hes...@google.com>
Gerrit-Attention: Dmitri Shuralyov <dmit...@google.com>
unsatisfied_requirement
satisfied_requirement
open
diffy

Dmitri Shuralyov (Gerrit)

unread,
Oct 9, 2024, 1:02:47 PM10/9/24
to Joel Sing, goph...@pubsubhelper.golang.org, Cherry Mui, Dmitri Shuralyov, Dmitri Shuralyov, golang-co...@googlegroups.com
Attention needed from Cherry Mui, Dmitri Shuralyov and Joel Sing

Dmitri Shuralyov added 3 comments

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Dmitri Shuralyov . resolved

Thanks.

File env/openbsd-amd64/make.bash
Line 76, Patchset 1 (Latest):pkg_add -iv ${PKG_ADD_OPTIONS} bash curl git python%3 sudo--gettext
Dmitri Shuralyov . unresolved

What's the effect of '%' here?

Line 126, Patchset 1 (Latest):CGO_ENABLED=0 GOOS=openbsd GOARCH=${ARCH/i386/386} go1.23.2 build -o ${SITE}/usr/local/bin/bootstrapswarm golang.org/x/build/cmd/bootstrapswarm
Dmitri Shuralyov . unresolved

(minor) Now that the go.mod defines the minimum Go language version (and thus toolchain), there's less need to maintain the go version via the filename, and more viable to rely on 'go' being up-to-date enough or to select a newer version [if needed](https://go.dev/doc/toolchain#select). So consider changing this to just `go`. Also see a similar discussion [here](https://go-review.googlesource.com/c/build/+/616836/3..7/env/freebsd-amd64/make.bash#b134).

Open in Gerrit

Related details

Attention is currently required from:
  • Cherry Mui
  • Dmitri Shuralyov
  • Joel Sing
Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: build
    Gerrit-Branch: master
    Gerrit-Change-Id: Ie2667de2defefbb6a56adca3dec92d7663c615e4
    Gerrit-Change-Number: 618895
    Gerrit-PatchSet: 1
    Gerrit-Owner: Joel Sing <jo...@sing.id.au>
    Gerrit-Reviewer: Cherry Mui <cher...@google.com>
    Gerrit-Reviewer: Dmitri Shuralyov <dmit...@google.com>
    Gerrit-CC: Dmitri Shuralyov <dmit...@golang.org>
    Gerrit-Attention: Joel Sing <jo...@sing.id.au>
    Gerrit-Attention: Cherry Mui <cher...@google.com>
    Gerrit-Attention: Dmitri Shuralyov <dmit...@google.com>
    Gerrit-Comment-Date: Wed, 09 Oct 2024 17:02:42 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Dmitri Shuralyov (Gerrit)

    unread,
    Oct 9, 2024, 1:02:59 PM10/9/24
    to Joel Sing, goph...@pubsubhelper.golang.org, Cherry Mui, Dmitri Shuralyov, golang-co...@googlegroups.com
    Attention needed from Cherry Mui and Joel Sing

    Dmitri Shuralyov voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Cherry Mui
    • Joel Sing
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: build
    Gerrit-Branch: master
    Gerrit-Change-Id: Ie2667de2defefbb6a56adca3dec92d7663c615e4
    Gerrit-Change-Number: 618895
    Gerrit-PatchSet: 1
    Gerrit-Owner: Joel Sing <jo...@sing.id.au>
    Gerrit-Reviewer: Cherry Mui <cher...@google.com>
    Gerrit-Reviewer: Dmitri Shuralyov <dmit...@google.com>
    Gerrit-CC: Dmitri Shuralyov <dmit...@golang.org>
    Gerrit-Attention: Joel Sing <jo...@sing.id.au>
    Gerrit-Attention: Cherry Mui <cher...@google.com>
    Gerrit-Comment-Date: Wed, 09 Oct 2024 17:02:54 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    unsatisfied_requirement
    open
    diffy

    Cherry Mui (Gerrit)

    unread,
    Oct 9, 2024, 4:23:09 PM10/9/24
    to Joel Sing, goph...@pubsubhelper.golang.org, Dmitri Shuralyov, Dmitri Shuralyov, golang-co...@googlegroups.com
    Attention needed from Joel Sing

    Cherry Mui voted and added 1 comment

    Votes added by Cherry Mui

    Code-Review+1

    1 comment

    Patchset-level comments
    Cherry Mui . resolved

    LGTM with Dmitri's comments addressed. Thanks.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Joel Sing
    Submit Requirements:
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement satisfiedReview-Enforcement
      • requirement is not satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: build
      Gerrit-Branch: master
      Gerrit-Change-Id: Ie2667de2defefbb6a56adca3dec92d7663c615e4
      Gerrit-Change-Number: 618895
      Gerrit-PatchSet: 1
      Gerrit-Owner: Joel Sing <jo...@sing.id.au>
      Gerrit-Reviewer: Cherry Mui <cher...@google.com>
      Gerrit-Reviewer: Dmitri Shuralyov <dmit...@google.com>
      Gerrit-CC: Dmitri Shuralyov <dmit...@golang.org>
      Gerrit-Attention: Joel Sing <jo...@sing.id.au>
      Gerrit-Comment-Date: Wed, 09 Oct 2024 20:23:05 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      unsatisfied_requirement
      satisfied_requirement
      open
      diffy

      Joel Sing (Gerrit)

      unread,
      Oct 21, 2024, 8:35:34 AM10/21/24
      to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
      Attention needed from Joel Sing

      Joel Sing uploaded new patchset

      Joel Sing uploaded patch set #2 to this change.
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Joel Sing
      Submit Requirements:
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement satisfiedReview-Enforcement
      • requirement is not satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: newpatchset
      Gerrit-Project: build
      Gerrit-Branch: master
      Gerrit-Change-Id: Ie2667de2defefbb6a56adca3dec92d7663c615e4
      Gerrit-Change-Number: 618895
      Gerrit-PatchSet: 2
      unsatisfied_requirement
      satisfied_requirement
      open
      diffy

      Joel Sing (Gerrit)

      unread,
      Oct 21, 2024, 8:36:07 AM10/21/24
      to goph...@pubsubhelper.golang.org, Cherry Mui, Dmitri Shuralyov, Dmitri Shuralyov, golang-co...@googlegroups.com
      Attention needed from Dmitri Shuralyov

      Joel Sing voted and added 2 comments

      Votes added by Joel Sing

      Commit-Queue+1

      2 comments

      File env/openbsd-amd64/make.bash
      Line 76, Patchset 1:pkg_add -iv ${PKG_ADD_OPTIONS} bash curl git python%3 sudo--gettext
      Dmitri Shuralyov . resolved

      What's the effect of '%' here?

      Joel Sing

      It selects a specific branch of a package (search for 'pkgname%branch' on https://man.openbsd.org/pkg_add.1, for full details) - the python3 meta package was removed for OpenBSD 7.6, meaning that there is now python-2.7 and python-3.11. Using python%3 removes the ambiguity and selects python-3.11 now (and python-3.* for the future).

      Line 126, Patchset 1:CGO_ENABLED=0 GOOS=openbsd GOARCH=${ARCH/i386/386} go1.23.2 build -o ${SITE}/usr/local/bin/bootstrapswarm golang.org/x/build/cmd/bootstrapswarm
      Dmitri Shuralyov . resolved

      (minor) Now that the go.mod defines the minimum Go language version (and thus toolchain), there's less need to maintain the go version via the filename, and more viable to rely on 'go' being up-to-date enough or to select a newer version [if needed](https://go.dev/doc/toolchain#select). So consider changing this to just `go`. Also see a similar discussion [here](https://go-review.googlesource.com/c/build/+/616836/3..7/env/freebsd-amd64/make.bash#b134).

      Joel Sing

      Sure, done.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Dmitri Shuralyov
      Submit Requirements:
        • requirement is not satisfiedCode-Review
        • requirement satisfiedNo-Unresolved-Comments
        • requirement satisfiedReview-Enforcement
        • requirement is not satisfiedTryBots-Pass
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: build
        Gerrit-Branch: master
        Gerrit-Change-Id: Ie2667de2defefbb6a56adca3dec92d7663c615e4
        Gerrit-Change-Number: 618895
        Gerrit-PatchSet: 2
        Gerrit-Owner: Joel Sing <jo...@sing.id.au>
        Gerrit-Reviewer: Cherry Mui <cher...@google.com>
        Gerrit-Reviewer: Dmitri Shuralyov <dmit...@google.com>
        Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
        Gerrit-CC: Dmitri Shuralyov <dmit...@golang.org>
        Gerrit-Attention: Dmitri Shuralyov <dmit...@golang.org>
        Gerrit-Comment-Date: Mon, 21 Oct 2024 12:36:00 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Dmitri Shuralyov <dmit...@golang.org>
        unsatisfied_requirement
        satisfied_requirement
        open
        diffy

        Dmitri Shuralyov (Gerrit)

        unread,
        Oct 21, 2024, 6:55:52 PM10/21/24
        to Joel Sing, goph...@pubsubhelper.golang.org, Dmitri Shuralyov, Michael Pratt, Go LUCI, Cherry Mui, Dmitri Shuralyov, golang-co...@googlegroups.com
        Attention needed from Joel Sing

        Dmitri Shuralyov voted and added 1 comment

        Votes added by Dmitri Shuralyov

        Code-Review+2

        1 comment

        Patchset-level comments
        Dmitri Shuralyov . resolved

        Thanks.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Joel Sing
        Submit Requirements:
        • requirement satisfiedCode-Review
        • requirement satisfiedNo-Unresolved-Comments
        • requirement satisfiedReview-Enforcement
        • requirement satisfiedTryBots-Pass
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: build
        Gerrit-Branch: master
        Gerrit-Change-Id: Ie2667de2defefbb6a56adca3dec92d7663c615e4
        Gerrit-Change-Number: 618895
        Gerrit-PatchSet: 2
        Gerrit-Owner: Joel Sing <jo...@sing.id.au>
        Gerrit-Reviewer: Cherry Mui <cher...@google.com>
        Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
        Gerrit-Reviewer: Dmitri Shuralyov <dmit...@google.com>
        Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
        Gerrit-CC: Michael Pratt <mpr...@google.com>
        Gerrit-Attention: Joel Sing <jo...@sing.id.au>
        Gerrit-Comment-Date: Mon, 21 Oct 2024 22:55:47 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Joel Sing (Gerrit)

        unread,
        Oct 22, 2024, 9:33:55 AM10/22/24
        to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Dmitri Shuralyov, Michael Pratt, Go LUCI, Cherry Mui, Dmitri Shuralyov, golang-co...@googlegroups.com

        Joel Sing submitted the change

        Change information

        Commit message:
        env/openbsd-amd64: update build image script to OpenBSD 7.6

        OpenBSD 7.6 has been released, meaning that the only two supported
        versions are 7.5 and 7.6. Update the image build script for 7.6.

        Additionally, bump the maxproc limit for the swarming user, which
        will hopefully reduce the number of failures due to fork/exec
        returning EAGAIN.

        Updates golang/go#66474
        Updates golang/go#69823
        Change-Id: Ie2667de2defefbb6a56adca3dec92d7663c615e4
        Reviewed-by: Cherry Mui <cher...@google.com>
        Reviewed-by: Dmitri Shuralyov <dmit...@google.com>
        Reviewed-by: Dmitri Shuralyov <dmit...@golang.org>
        Files:
        • M env/openbsd-amd64/README
        • M env/openbsd-amd64/make.bash
        Change size: S
        Delta: 2 files changed, 10 insertions(+), 11 deletions(-)
        Branch: refs/heads/master
        Submit Requirements:
        • requirement satisfiedCode-Review: +2 by Dmitri Shuralyov, +1 by Cherry Mui, +1 by Dmitri Shuralyov
        • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
        Open in Gerrit
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: merged
        Gerrit-Project: build
        Gerrit-Branch: master
        Gerrit-Change-Id: Ie2667de2defefbb6a56adca3dec92d7663c615e4
        Gerrit-Change-Number: 618895
        Gerrit-PatchSet: 3
        open
        diffy
        satisfied_requirement

        Dmitri Shuralyov (Gerrit)

        unread,
        Feb 28, 2025, 3:15:29 PM2/28/25
        to Joel Sing, goph...@pubsubhelper.golang.org, Dmitri Shuralyov, Michael Pratt, Go LUCI, Cherry Mui, Dmitri Shuralyov, golang-co...@googlegroups.com

        Dmitri Shuralyov added 1 comment

        File env/openbsd-amd64/make.bash
        Line 76, Patchset 1:pkg_add -iv ${PKG_ADD_OPTIONS} bash curl git python%3 sudo--gettext
        Dmitri Shuralyov . resolved

        What's the effect of '%' here?

        Joel Sing

        It selects a specific branch of a package (search for 'pkgname%branch' on https://man.openbsd.org/pkg_add.1, for full details) - the python3 meta package was removed for OpenBSD 7.6, meaning that there is now python-2.7 and python-3.11. Using python%3 removes the ambiguity and selects python-3.11 now (and python-3.* for the future).

        Dmitri Shuralyov

        One of the documented requirements at https://go.dev/wiki/DashboardBuilders is that a python3 binary is present in PATH (sent CL 653735 to clarify). The new image fails to start up because that's no longer the case:

        ```
        + su -l swarming -c /usr/local/bin/bootstrapswarm --hostname golang-ciw-n1-openbsd-amd64-76-us-central1-b-0-m1cy --swarming chromium-swarm.appspot.com
        2025/02/28 11:22:50 Bootstrapping the swarming bot with GCE authentication
        2025/02/28 11:22:50 retrieving the GCE VM token
        2025/02/28 11:22:50 Downloading the swarming bot
        2025/02/28 11:22:50 Starting the swarming bot /home/swarming/.swarming/swarming_bot.zip
        2025/02/28 11:22:50 command execution python3 /home/swarming/.swarming/swarming_bot.zip start_bot: exec: "python3": executable file not found in $PATH
        + echo giving up
        giving up
        ```

        @jo...@sing.id.au How would you suggest we resolve this? Thanks. We can continue on issue #69823 if that's easier.

        Open in Gerrit

        Related details

        Attention set is empty
        Submit Requirements:
        • requirement satisfiedCode-Review
        • requirement satisfiedNo-Unresolved-Comments
        • requirement satisfiedReview-Enforcement
        • requirement satisfiedTryBots-Pass
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: build
        Gerrit-Branch: master
        Gerrit-Change-Id: Ie2667de2defefbb6a56adca3dec92d7663c615e4
        Gerrit-Change-Number: 618895
        Gerrit-PatchSet: 3
        Gerrit-Owner: Joel Sing <jo...@sing.id.au>
        Gerrit-Reviewer: Cherry Mui <cher...@google.com>
        Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
        Gerrit-Reviewer: Dmitri Shuralyov <dmit...@google.com>
        Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
        Gerrit-CC: Michael Pratt <mpr...@google.com>
        Gerrit-Comment-Date: Fri, 28 Feb 2025 20:15:25 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Joel Sing <jo...@sing.id.au>
        Comment-In-Reply-To: Dmitri Shuralyov <dmit...@golang.org>
        satisfied_requirement
        open
        diffy

        Joel Sing (Gerrit)

        unread,
        Mar 4, 2025, 9:38:16 AM3/4/25
        to goph...@pubsubhelper.golang.org, Dmitri Shuralyov, Michael Pratt, Go LUCI, Cherry Mui, Dmitri Shuralyov, golang-co...@googlegroups.com

        Joel Sing added 1 comment

        File env/openbsd-amd64/make.bash
        Line 76, Patchset 1:pkg_add -iv ${PKG_ADD_OPTIONS} bash curl git python%3 sudo--gettext
        Dmitri Shuralyov . resolved

        What's the effect of '%' here?

        Joel Sing

        It selects a specific branch of a package (search for 'pkgname%branch' on https://man.openbsd.org/pkg_add.1, for full details) - the python3 meta package was removed for OpenBSD 7.6, meaning that there is now python-2.7 and python-3.11. Using python%3 removes the ambiguity and selects python-3.11 now (and python-3.* for the future).

        Dmitri Shuralyov

        One of the documented requirements at https://go.dev/wiki/DashboardBuilders is that a python3 binary is present in PATH (sent CL 653735 to clarify). The new image fails to start up because that's no longer the case:

        ```
        + su -l swarming -c /usr/local/bin/bootstrapswarm --hostname golang-ciw-n1-openbsd-amd64-76-us-central1-b-0-m1cy --swarming chromium-swarm.appspot.com
        2025/02/28 11:22:50 Bootstrapping the swarming bot with GCE authentication
        2025/02/28 11:22:50 retrieving the GCE VM token
        2025/02/28 11:22:50 Downloading the swarming bot
        2025/02/28 11:22:50 Starting the swarming bot /home/swarming/.swarming/swarming_bot.zip
        2025/02/28 11:22:50 command execution python3 /home/swarming/.swarming/swarming_bot.zip start_bot: exec: "python3": executable file not found in $PATH
        + echo giving up
        giving up
        ```

        @jo...@sing.id.au How would you suggest we resolve this? Thanks. We can continue on issue #69823 if that's easier.

        Joel Sing

        That's rather strange - the python package installs /usr/local/bin/python3 and /usr/local/bin is included in the PATH that is exported before the su invocation (none of this really changed with the make.bash update). If I build the image and boot it everything appears to be correct.

        Is there a chance that the image failed to build correctly and that the python package did not actually get installed?

        The build output should include:

        ```
        Adding python-3.11.10p1:libb2-0.98.1v0
        python-3.11.10p1 (processing)
        python-3.11.10p1 (extracting)
        python-3.11.10p1 (skipping)
        python-3.11.10p1 (installing)
        ```

        Are you able to boot the image and see if /usr/local/bin/python3 exists (or provide a way to access the image so I can check)?

        Open in Gerrit

        Related details

        Attention set is empty
        Submit Requirements:
        • requirement satisfiedCode-Review
        • requirement satisfiedNo-Unresolved-Comments
        • requirement satisfiedReview-Enforcement
        • requirement satisfiedTryBots-Pass
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: build
        Gerrit-Branch: master
        Gerrit-Change-Id: Ie2667de2defefbb6a56adca3dec92d7663c615e4
        Gerrit-Change-Number: 618895
        Gerrit-PatchSet: 3
        Gerrit-Owner: Joel Sing <jo...@sing.id.au>
        Gerrit-Reviewer: Cherry Mui <cher...@google.com>
        Gerrit-Reviewer: Dmitri Shuralyov <dmit...@golang.org>
        Gerrit-Reviewer: Dmitri Shuralyov <dmit...@google.com>
        Gerrit-Reviewer: Joel Sing <jo...@sing.id.au>
        Gerrit-CC: Michael Pratt <mpr...@google.com>
        Gerrit-Comment-Date: Tue, 04 Mar 2025 14:38:11 +0000
        satisfied_requirement
        open
        diffy
        Reply all
        Reply to author
        Forward
        0 new messages