-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: Add testing on macOS #268
Conversation
4c3af3b
to
81c8daf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to see a motivation in commit messages for test fixes. In the future it will be difficult to understand why it is necessary.
157256d
to
4a82ce9
Compare
e755d1f
to
31effa0
Compare
Added macOS testing into ci. Updated actions to versions with node16 runtime. Closes #157
Added workaround for macOs-12 testrace. Without it testrace sends SIGABRT after start. Part of #157
Changed checkTimeout time in test. The reason is that by default it updates the connects once every 1 second. And it doesn't have time to update for some reason in the case of a test in the same second. So set the update to half the time. Part of #157
Increased sleep duration. Added more checks. Part of #157
Changed action version from 2 to 3. Part of #157
c9ce4db
to
cc73cc2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see a flaky test on macOS:
2023-03-16T14:18:05.7459090Z --- FAIL: TestReconnect (0.62s)
2023-03-16T14:18:05.7567240Z multi_test.go:108: conn has incorrect addr: 127.0.0.1:3013 after disconnect server1
I think you need to make a change in TestReconnect
similar too:
- Stop the tarantool instance instead of just conn.Close() to avoid auto-reconnects.
- Ensure that the connection is gone from a connection pool (in a loop with N retries with a little delay between iterations).
- Restart the instance.
- Ensure that the connection is available for requests (in a loop with N retries with a little delay between iterations).
d474a64
to
34a606e
Compare
multi/multi_test.go
Outdated
if !ok { | ||
break | ||
} | ||
multiConn.getState() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
multiConn.getState() |
Rewrote TestReconnect. Instead of just conn.Close() used stop the tarantool instance to avoid auto-reconnect. Restarted it after. Added checks. Part of #157
Changed sleep duration time in test. The reason is that ttl time is set to 5 seconds in test. And it doesn't have time for some reason in the case of a test in the same time. So set the sleep duration to 10 seconds. Part of #157
34a606e
to
c76da2f
Compare
Added macOS testing into ci.
Closes #157