Re: CI, macports, darwin version problems
Joe Conway <mail@joeconway.com>
From: Joe Conway <mail@joeconway.com>
To: Thomas Munro <thomas.munro@gmail.com>,
Christophe Pettus <christophe.pettus@pgexperts.com>
Cc: Andres Freund <andres@anarazel.de>, Nazir Bilal Yavuz
<byavuz81@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2024-08-02T12:07:40Z
Lists: pgsql-hackers
On 8/1/24 21:42, Thomas Munro wrote:
> On Thu, Aug 1, 2024 at 6:08 AM Christophe Pettus
> <christophe.pettus@pgexperts.com> wrote:
>> A quick search shows that the issue is most likely an old version of `tart`. I've upgraded both to the current cirrus/cli version. Can you let me know if things look resolved?
>
> I re-enabled it in the pool that cfbot uses for a couple of hours, and
> it said[1]:
>
> Persistent worker failed to start the task: tart command returned
> non-zero exit code: "root privileges are required to run and
> passwordless sudo was not available"
>
> I recall Joe and Andres dealing with something like that at some point
> on their Macs, but I don't have the details...
>
> [1] https://cirrus-ci.com/task/5597845632319488
I think the solution was that the ci runner had to be executed directly
as the ci user.
8<-----------------
macmini:~ ci-run$ cat /Users/ci-run/bin/ci1.sh
#!/bin/bash
WORKER_NAME=jc-m2-1
TOKEN=/Users/ci-run/cirrus-token.txt
WORKER_YML=/Users/ci-run/cirrus-worker-macos.yml
BREW_BIN=/opt/homebrew/bin
CIRRUS=${BREW_BIN}/cirrus
CAT=/bin/cat
export PATH=${BREW_BIN}:${PATH}
${CIRRUS} worker run \
-f "${WORKER_YML}" \
--name "${WORKER_NAME}" \
--token "$(${CAT} ${TOKEN})"
macmini:~ ci-run$ /Users/ci-run/bin/ci1.sh &
8<-----------------
I tried making this run like a service using launchctl, but that was
giving the permissions errors. I finally gave up trying to figure it out
and just accepted that I need to manually start the script whenever I
reboot the mac.
BTW, if there are any MacOS launchctl wizards around, I am all ears :-)
--
Joe Conway
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com
Commits
-
ci: Pin MacPorts version to 2.9.3.
- 541f493dc128 15.8 landed
- daca4f1419e8 16.4 landed
- 5f03da8518ce 17.0 landed
- 64c39bd5047e 18.0 landed
-
ci: Upgrade macOS version from 13 to 14.
- 0151b4d6bdf0 15.8 landed
- 9302f6fa58ba 16.4 landed
- f8c1bb2bb90d 17.0 landed
- d01ce180d9b5 18.0 landed