test-reporter icon indicating copy to clipboard operation
test-reporter copied to clipboard

Add parallel builds example for CircleCI v2 beta

Open dinjas opened this issue 8 years ago • 8 comments

I see a CircleCI example, but it's not clear to me what I need to do to use with the beta version of their v2 (docker-based) platform. Do you have an example of that?

Thanks!

dinjas avatar Jun 13 '17 22:06 dinjas

Hi @dinjas!

We have more CI examples available on our docs site: https://docs.codeclimate.com/docs/setting-up-test-coverage

Let me know if you have any further questions after checking that out!

dblandin avatar Jun 13 '17 22:06 dblandin

Thanks @dblandin, that's where I came from :)

The config for v2 looks a bit different and I'm not sure how to integrate with the newer setup. Circle has an example v2 config here: https://github.com/CircleCI-Public/circleci-demo-ruby-rails/blob/master/.circleci/config.yml

dinjas avatar Jun 13 '17 22:06 dinjas

Ah, I see. I've been able to setup a 2.0 build using the machine executor which offers shared state between steps, but haven't yet dug into a working solution for 2.0 using the primary docker executor. As I recall, I don't think you have access to build artifacts between steps since your're then dealing with remote docker containers.

I'll do some digging and report back. Let me know if you come with anything sooner.

dblandin avatar Jun 13 '17 22:06 dblandin

Will do, thanks!

dinjas avatar Jun 13 '17 22:06 dinjas

Hey @dinjas,

Looks like we've added some example configuration documenting how use the new test reporter in a Circle 2.0 project: https://docs.codeclimate.com/docs/circle-ci-test-coverage-example#section-circleci-20

Let me know if that makes sense and works for you!

dblandin avatar Aug 25 '17 19:08 dblandin

Thanks @dblandin! This looks promising, I'll give it a shot when I have an opportunity to - early next week hopefully.

dinjas avatar Aug 25 '17 20:08 dinjas

I've played around with that a little bit, but the example does not line up to what I am doing exactly (Rails vs PHP) and I have not had opportunity to dig into it further. Will update here if I get the chance to do so, but might be some time as this is somewhat low priority for me right now.

dinjas avatar Sep 13 '17 17:09 dinjas

@dblandin I'm running into the same issue. The last doc you pointed to doesn't mention parallelism. It would be great if you could add docs for parallelism and Circle CI 2.0. The closest I was able to get was using this script: https://gist.github.com/leemachin/1aeb217d989f3981cc3f06d88938bd33 which worked for total coverage, but the diff coverage doesn't seem to be right in GitHub. It says 33% (80% threshold).

monfresh avatar Mar 20 '18 03:03 monfresh