-
Notifications
You must be signed in to change notification settings - Fork 198
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 tasks for compiler are not running any tests #753
Comments
The compiler tests are run, but from a The script running it is called The main CI build is set up on the umbrella repository in the Travis CI, which handles almost everything. It builds the compiler, then compiles the test KSY formats to source codes, and publishes the compiler to some package repositories if changed (see the CI infrastructure section in the docs). The second important build is on the There are also builds for generating format gallery, documentation and Web IDE, but they work on their own (apart from the devel Web IDE rebuild after the main build publishes a new compiler package to the npm repository). I must admit that I didn't really know that we have some build running in Circle CI. Looking to it, I think the build set on compiler repo currently doesn't serve any purpose. The internal compiler tests are currently sort of unused, they're not published anywhere in some readable form (unlike "integration" KSY test formats: https://ci.kaitai.io/). The old CI dashboard at http://kaitai.io/ci/ apparently displayed some of these results, but the new one at https://ci.kaitai.io/ still doesn't. |
Thanks for this detailed answer and all the pointers! I am currently trying to wrap my head around KaitaiStruct, and I am having a hard time understanding how to validate my local setup and what the expectations around Pull Requests in this repository are... In particular:
|
This is because there are So the repos of the runtime libraries as submodules in the Actually, in my opinion, the "main umbrella repo with all things as submodules" is a bad thing. It just increases overhead, because you have to constantly make sure that the submodules point to the This of course confuses the newbies, just look at the people that forked the Next thing is the PR response. Ideally, when someone opens a pull request in the compiler repo, it should trigger the CI build and provide the results in that repo, if it breaks/doesn't break something. This is not transparent currently, you don't know what the change does until you merge it and push a commit to the main repo referencing it (which triggers the build), unless you check it out locally. |
Thanks for that long and detailed answer!
afaict, the CI build is only kicked off as soon as the master repository is updated, but will then pick the latest dependencies, independent of the referenced commits in the repo, right? This is, at least to me, an unexpected configuration...
I tend to agree. At least to me as a newbie, it would have been much easier to setup my local dev-environment if Kaitai would be a monorepo. Also, the benefits from a "multi-repository"-setup are not yet clear to me. Anyhow, I am not sure if there are any follow-up items out of this discussion. |
OK, closing. |
It seems that the current CI setup accidentally doesn't run any tests, while still displaying a "passing" state.
Looking at https://circleci.com/gh/kaitai-io/kaitai_struct_compiler/552, the step
exits with
It doesn't seem to actually execute any tests.
On my local machine running
sbt test
results inThe text was updated successfully, but these errors were encountered: