Skip to content

Commit

Permalink
ci: fix macos tests
Browse files Browse the repository at this point in the history
Docker didn't work on macOS machine in special jobs in CI. The tests
stop and fail after a timeout expires.

After the patch, a special `colima` utility was added to CI that to
help the docker work properly.
  • Loading branch information
themilchenko committed Sep 20, 2024
1 parent 2319f9e commit 677f818
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/full-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ jobs:

- name: Install dependencies
run: |
brew install --overwrite go mage wget node
brew install --overwrite go mage wget node docker colima
pip3 install -r test/requirements.txt
- name: Install etcd
Expand All @@ -190,6 +190,9 @@ jobs:
run: |
echo "TT_CLI_TARANTOOL_PREFIX=${GITHUB_WORKSPACE}/include/" >> $GITHUB_ENV
- name: Start colima and patch mount options
run: colima start --vm-type vz --mount /private/var/folders:w

- name: Run unit tests
run: mage unitfull

Expand All @@ -212,6 +215,10 @@ jobs:
TARANTOOL_BIN=${GITHUB_WORKSPACE}/bin/tarantool;
pkill -SIGINT -f ${TARANTOOL_BIN} || true
- name: Kill colima
if: always()
run: colima delete

# ee suffix means that the job runs ee integration tests.
full-ci-macOS-ee:
if: |
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ jobs:

- name: Install dependencies
run: |
brew install --overwrite go mage node
brew install --overwrite go mage node docker colima
pip3 install -r test/requirements.txt
- name: Install etcd
Expand Down Expand Up @@ -189,6 +189,9 @@ jobs:
- name: Unit tests
run: mage unit

- name: Start colima and patch mount options
run: colima start --vm-type vz --mount /private/var/folders:w

- name: Run integration tests
run: mage integration

Expand All @@ -201,3 +204,7 @@ jobs:
run: |
ETCD_TT_BIN=${ETCD_PATH}etcd;
pkill -SIGINT -f ${ETCD_TT_BIN} || true
- name: Kill colima
if: always()
run: colima delete

0 comments on commit 677f818

Please sign in to comment.