-
Notifications
You must be signed in to change notification settings - Fork 81
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
Move as much of tests/RunTests.hs into bazel, remove if possible #951
Comments
What's provided as a build context ? Is the builder blindly runs |
I don’t understand that question :)
Ideally, |
I was wondering how our code will be tested on the upstream integration CI? What control do we have on how it will be tested? What interface should we provide. As you correctly said, most of our tests can be rewrited as To understand how / what we must rewrite for the upstream CI system, we need to know how it behaves.
There is a lot of limitations in bazel which are not bug, but just limitations due to the fact that this project is not finished. |
IIRC a relatively common practice is to run bazel whithin bazel test (see for example https://github.com/bazelbuild/bazel-integration-testing) |
Actually, just having |
You should add that comment to the upstream issue. |
Which one? |
rules_go has rules_haskell could implement its own version of |
I will try to carefully suggest and gradually implement sequential steps to resolve this issue. Here is the list of tasks presented in RunTests.hs:
I will try to elaborate a bit on how
So I will try to create a PR's for every step consequentially. |
@k1nkreet thank you for the structured outline!
Yes, I agree that keeping this orthogonal is a good approach!
Good question, perhaps we could use transitions to create versions of tests in other configurations such as
Good catch. I think this one is an oversight from #1569. Before that |
Another alternative for bazel-in-bazel integration testing next to rules_go and bazel-integration-testing is rules_bazel_integration_test. |
Finally #1766 appeared at master. There is a mixed approached introduced in this PR:
There is a plenty of tests in |
For adding our repo to the upstream integration CI (#754, bazelbuild/continuous-integration#235) we need to pull many/all of our tests into bazel rules.
I’m pretty certain many of these can be implemented as simple
sh_test
s (orgenrule
s) instead.The text was updated successfully, but these errors were encountered: