-
Notifications
You must be signed in to change notification settings - Fork 207
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
Fix workspace crates tests not being run #2396
Conversation
4b26a64
to
6eb0503
Compare
@Nemo157 This PR fixes the tests of the I saw that the CI jobs were run on my fork as well so as bonus I also restricted CI to only run on the |
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.
thank you for working on this fix!
I have one question about the branch limitation.
Apart from that I'm actually not sure about the caching feature in general any more (which I added, so that's on me). It definitely improves CI times, but also it lead to us silently not running a part of the tests. And relying on test binary naming feels volatile at the least.
we could try to just use Swatinem/rust-cache
in all jobs, and not share any binaries between the jobs. What do you think?
Also mentioned in the issue is that doctests aren't run, which in my mind is another reason to drop the artifact caching we are using and accept slower CI times before we have to rely on more cargo internals to keep the cache working. |
Yeah, relying on test binary names is not great. I tried using
Yes, that would be great. I can try to do it, but won't have time to do it until a few days. |
This was broken for a long time, so having it broken for a little longer is not a big issue IMO. |
last week I also started doing this (dropping the binary caching), though I didn't dig through the remaining test failures yet: |
e13ab2c
to
ab2fce9
Compare
aef5680
to
88050fa
Compare
88050fa
to
23aa737
Compare
I've updated the PR to remove the custom CI binary caching. I've consolidated the "build" and "build_test" jobs into a single "test" job. I also contains some tests fixes, but I did not fixed the ignored test since none are worth it, they mainly serve as copy/paste examples. Let me if would like anything else. @rustbot label -S-waiting-on-author +S-waiting-on-review |
|
Oops, forgot this. Fixed. Note: CI failure is I believe |
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.
Sorry for the delay, vacation came in between.
Thank you for the contribution!
Fixes #2391