Skip to content

Commit 119da41

Browse files
committed
feat: use codebuild stack via cdk
Signed-off-by: Arjun Raja Yogidas <[email protected]>
1 parent a31b2c2 commit 119da41

File tree

1 file changed

+1
-52
lines changed

1 file changed

+1
-52
lines changed

.github/workflows/mac-test.yaml

Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
GO_VERSION: '1.23.8'
1616
jobs:
1717
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 }}
1919
timeout-minutes: 30
2020
steps:
2121
- name: Clean macOS runner workspace
@@ -36,22 +36,6 @@ jobs:
3636
# Ensure Go is properly configured for ec2-user
3737
chown -R ec2-user:staff $GOPATH || true
3838
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-
5539
- name: Install Rosetta 2
5640
run: su ec2-user -c 'echo "A" | /usr/sbin/softwareupdate --install-rosetta --agree-to-license || true'
5741

@@ -104,46 +88,11 @@ jobs:
10488
10589
# Verify installation
10690
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..."
11691
11792
mkdir -p /private/var/run/finch-lima
11893
cat /etc/passwd
11994
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
12895
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-
14796

14897
# Run e2e tests inside the Finch VM
14998
- name: Run e2e tests

0 commit comments

Comments
 (0)