|
15 | 15 | GO_VERSION: '1.23.8' |
16 | 16 | jobs: |
17 | 17 | mac-test: |
18 | | - runs-on: codebuild-newFD-CI-test-${{ github.run_id }}-${{ github.run_attempt }} |
| 18 | + runs-on: codebuild-finch-daemon-arm64-2-instance-${{ github.run_id }}-${{ github.run_attempt }} |
19 | 19 | timeout-minutes: 30 |
20 | 20 | steps: |
21 | 21 | - name: Clean macOS runner workspace |
|
36 | 36 | # Ensure Go is properly configured for ec2-user |
37 | 37 | chown -R ec2-user:staff $GOPATH || true |
38 | 38 | chown -R ec2-user:staff $RUNNER_TOOL_CACHE/go || true |
39 | | - # - name: List available users and system info |
40 | | - # run: | |
41 | | - # su ec2-user -c 'echo "Current user: $(whoami)" |
42 | | - # echo "Current user ID: $(id -u)" |
43 | | - # echo "Current user home: $HOME" |
44 | | - # echo "Console user: $(stat -f "%Su" /dev/console)" |
45 | | - # echo "All users:" |
46 | | - # dscl . -list /Users | grep -v "^_" |
47 | | - # echo "Users with home directories:" |
48 | | - # ls -la /Users/ |
49 | | - # echo "Environment variables:" |
50 | | - # env | sort |
51 | | - # echo "Brew info:" |
52 | | - # which brew || echo "brew not found in PATH" |
53 | | - # echo "PATH: $PATH"' |
54 | | - |
55 | 39 | - name: Install Rosetta 2 |
56 | 40 | run: su ec2-user -c 'echo "A" | /usr/sbin/softwareupdate --install-rosetta --agree-to-license || true' |
57 | 41 |
|
@@ -104,46 +88,11 @@ jobs: |
104 | 88 |
|
105 | 89 | # Verify installation |
106 | 90 | su ec2-user -c 'source /Users/ec2-user/.brewrc && brew list | grep finch || echo "finch not installed"' |
107 | | -
|
108 | | - # # Create .finch directory and config for ec2-user |
109 | | - # echo "Creating .finch directory and config for ec2-user..." |
110 | | - # su ec2-user -c 'mkdir -p /Users/ec2-user/.finch' |
111 | | - # su ec2-user -c 'echo "cpus: 4" > /Users/ec2-user/.finch/finch.yaml' |
112 | | - # su ec2-user -c 'echo "memory: 8GiB" >> /Users/ec2-user/.finch/finch.yaml' |
113 | | -
|
114 | | - # # Fix ownership of var/run directories |
115 | | - # echo "Fixing ownership of /private/var/run directories..." |
116 | 91 | |
117 | 92 | mkdir -p /private/var/run/finch-lima |
118 | 93 | cat /etc/passwd |
119 | 94 | chown ec2-user:daemon /private/var/run/finch-lima |
120 | | - # chmod -R 775 /private/var/run/finch-lima |
121 | | -
|
122 | | - # Check finch version with HOME set to ec2-user's home |
123 | | - # echo "Checking finch version..." |
124 | | - # if ! su ec2-user -c 'finch version'; then |
125 | | - # echo "finch version command failed, starting VM..." |
126 | | - # su ec2-user -c 'finch vm start' |
127 | | - # fi |
128 | 95 | shell: bash |
129 | | - |
130 | | - # Check for Finch socket |
131 | | - # - name: Check for Finch socket |
132 | | - # run: | |
133 | | - # su ec2-user -c 'echo "Checking for Finch socket at /Applications/Finch/lima/data/finch/sock/finch.sock..." |
134 | | - |
135 | | - # # Check if the socket file exists |
136 | | - # if test -S /Applications/Finch/lima/data/finch/sock/finch.sock; then |
137 | | - # echo "Socket file exists" |
138 | | - # else |
139 | | - # echo "ERROR: Socket file not found at expected location /Applications/Finch/lima/data/finch/sock/finch.sock" |
140 | | - # exit 1 |
141 | | - # fi' |
142 | | - |
143 | | - # # Store the socket path for later steps (this needs to run as root to modify GITHUB_ENV) |
144 | | - # echo "SOCKET_PATH=/Applications/Finch/lima/data/finch/sock/finch.sock" >> $GITHUB_ENV |
145 | | - # shell: bash |
146 | | - |
147 | 96 |
|
148 | 97 | # Run e2e tests inside the Finch VM |
149 | 98 | - name: Run e2e tests |
|
0 commit comments