-
Notifications
You must be signed in to change notification settings - Fork 93
Add a simple Github CI #20
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
Conversation
|
I need to read more about GitHub's CI setup, but at first look it seems like a good idea. However, I am confused by the test failures you reported. What hardware was in use for the failures? |
Reading from Github Documentation it's based on M1 more precisely 3 vCPU. The complete OS / Software is here: https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md |
The test that failed is testing that the timing-related parts of the API are working correctly. It's hard to test things related to timing since scheduling can delay things arbitrarily. I could relax the timing, to add more slop. In that test (cv_wait_example_test.c), the strings "one", "two", "three" are added to a priority queue So for this to fail in the way it did, two 0.5s waits (plus some thread scheduling) must have taken more than the 1.2s wait If a virtual machine has been given only a small fraction of a CPU to run on, it becomes more likely. If you wanted to test this conjecture about the cause on that platform, you could look for the ten calls to |
It makes sense as sometimes it's working and sometimes not. |
|
Perhaps I wasn't clear. You need to double all the arguments to all ten of the calls to nsync_time_ms(), The last push you did increases only the 1200 to 2400. That will probably change the error you get, but it will still fail. |
4f6970c to
88daf00
Compare
|
@m3bm3b sorry i was in a hurry and read a bit fast your comment. Should be good now. This CI passed on my repo but doesn't show properly here 🤔 Could be due to: |
|
I will close this MR and properly reopen one from my master branch |
Hi @m3bm3b,
This is a simple workflow to test and run on multiple OS / Architecture
It seems that the Nsync fails on MacOS both X86 and ARM64
Pipeline status on my Fork
https://github.com/clementperon/nsync/actions/runs/9733627516/job/26860771134