Skip to content

Commit

Permalink
ci: overwrite tmpdir in mac integration tests
Browse files Browse the repository at this point in the history
The test `test_t3_instance_names_no_config` always fails because of very
long path in tmpdir. This test requires socket path with fexed length,
otherwise it can cause socket path buffer overflow.

After the patch tmpdir was overwritten to the shorter one.

Closes #931
  • Loading branch information
themilchenko authored and oleg-jukovec committed Oct 9, 2024
1 parent 1998407 commit f89bd5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/full-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,10 @@ jobs:
- name: Run unit tests
run: mage unitfull

# We need to override TMPDIR here because of the very long path in macOS tests
# which causes a very long socket path error.
- name: Integration tests
run: mage integrationfull
run: TMPDIR=/tmp mage integrationfull

# Etcd can be still running after integration tests when:
# 1. pytest recieve SIGALRM (can be caused by pytest-timeout plugin)
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,10 @@ jobs:
- name: Unit tests
run: mage unit

# We need to override TMPDIR here because of the very long path in macOS tests
# which causes a very long socket path error.
- name: Run integration tests
run: mage integration
run: TMPDIR=/tmp mage integration

# Etcd can be still running after integration tests when:
# 1. pytest recieve SIGALRM (can be caused by pytest-timeout plugin)
Expand Down

0 comments on commit f89bd5b

Please sign in to comment.