-
Notifications
You must be signed in to change notification settings - Fork 146
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
Fixing broken macOS tests and CI #1068
base: main
Are you sure you want to change the base?
Conversation
433fce2
to
293e840
Compare
@BourgerieQuentin @youben11 , what would you advise please?
|
293e840
to
bd41b7b
Compare
ok I have switched off for a moment the remaining problems: with that it works on my machine, let's check in the CI |
0df01e6
to
b7b944c
Compare
Hopefully we can have working mac tests with this. |
b7b944c
to
f82baf9
Compare
We have added issues:
in https://github.com/zama-ai/concrete/actions/runs/11054029497/job/30709829273. Flaky test, I imagine, @youben11 ? |
the mac CI was broken, https://github.com/zama-ai/concrete/actions/runs/11054015693/job/30709811618?pr=1068 |
Hopefully I fixed it, let me try |
4ab8bd6
to
4eb5d2d
Compare
Much better, thanks @aPere3 (https://github.com/zama-ai/concrete/actions/runs/11121222171/job/30899873375?pr=1068). Remains the notebook tests on mac, let me have a look. |
Pushed a fix (hopefully) |
15efc35
to
b290fd0
Compare
It's still broken, https://github.com/zama-ai/concrete/actions/runs/11142605562/job/30965928567?pr=1068 make: ./scripts/jupyter/jupyter.sh: No such file or directory What's that |
1f101ab
to
6bc1a7c
Compare
Now notebooks launch but
I would say SHA256 is too memory intensive, maybe. |
We could have a way to blacklist some tests for mac. |
6bc1a7c
to
1239f63
Compare
macOS CI works!! let me remove the debugging stuff. |
1239f63
to
051eded
Compare
|
||
# Remove one test which is known to fail on mac, since it consumes | ||
# too much RAM | ||
rm examples/sha256/sha256.ipynb |
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.
ok with you @BourgerieQuentin ?
051eded
to
b3af79d
Compare
Finger crossed |
Had this issue: https://github.com/zama-ai/concrete-internal/issues/880 |
Had this issue as well: https://github.com/zama-ai/concrete-internal/issues/881 |
This is supposed to work, now we have flaky or other issues. |
Relaunching. |
b3af79d
to
efb9ee4
Compare
The CI is green, let's merge this @BourgerieQuentin ? |
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.
All good with a minor note
- fixing the mac CI - fixing the broken tests and notebooks - fixing z3-solver version
efb9ee4
to
a696600
Compare
Rebasing. |
There is a problem, https://github.com/zama-ai/concrete/actions/runs/11214137966/job/31168628506?pr=1068:
|
Try to use latest nightly if it's happening locally |
@youben11 : I am not setting any nightly in particular. If you mean the CI already uses nightlies, maybe we can wait tomorrow. |
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.
cherry-picked will be merged in another PR. But can you reply to the comment thanks
@@ -510,10 +511,11 @@ def f(x, y): # pylint: disable=unused-argument | |||
@pytest.mark.dataflow | |||
def test_dataflow_circuit(helpers): | |||
""" | |||
Test execution with dataflow_parallelize=True. | |||
Test execution with dataflow_parallelize=True, unless on macOS. |
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.
should be skipped thanks to the marker?
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.
no this test is not skipped, we just force dataflow_parallelize=False
on mac and it works
the test which is skipped is test_zero_matmul
in the other file.
@@ -145,6 +145,9 @@ test-notebooks: | |||
eval $(shell make silent_cp_activate) | |||
./scripts/jupyter/jupyter.sh | |||
|
|||
test-notebooks-macos: |
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.
Why a specific target for macos?
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 removed the eval $(shell make silent_cp_activate)
, as it's done on pytest-macos
eg. I am not sure it's strictly needed but as I had issues, I thought it could be related. Up to you to try without that, but at least, in my settings, it works.
@BourgerieQuentin : I replied to your questions, tell me if you want more details or help, and feel free to close this PR |
fix(ci): fixing broken tests on macOS
refs https://github.com/zama-ai/concrete-internal/issues/#861
refs #https://github.com/zama-ai/concrete-internal/issues/861
refs https://github.com/zama-ai/concrete-internal/issues/#879
refs #https://github.com/zama-ai/concrete-internal/issues/879