Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,25 @@ jobs:
- name: Start local Google Maven proxy
run: |
nohup python3 tools/google_maven_proxy.py --host 127.0.0.1 --port 38473 >/tmp/androidsa-google-maven-proxy.log 2>&1 &
proxy_pid="$!"

for attempt in $(seq 1 30); do
if curl --silent --fail http://127.0.0.1:38473/ >/dev/null; then
for attempt in $(seq 1 180); do
if curl --silent --show-error --fail http://127.0.0.1:38473/ >/dev/null; then
break
fi
if ! kill -0 "$proxy_pid" 2>/dev/null; then
echo "Local Google Maven proxy exited before becoming ready."
cat /tmp/androidsa-google-maven-proxy.log
exit 1
fi
sleep 1
done

curl --silent --fail http://127.0.0.1:38473/ >/dev/null
if ! curl --silent --show-error --fail http://127.0.0.1:38473/ >/dev/null; then
echo "Local Google Maven proxy did not become ready within timeout."
cat /tmp/androidsa-google-maven-proxy.log
exit 1
fi
{
echo "ANDROIDSA_GOOGLE_MAVEN_URL=http://127.0.0.1:38473/"
echo "ANDROIDSA_GOOGLE_MAVEN_PROXY_LOG=/tmp/androidsa-google-maven-proxy.log"
Expand Down
Loading