circleci

rm -rf /home/circleci/.gitconfig
2019-06-06T19:26:51.001700Z

Maybe someone can help me here, I have a CircleCi setup with two docker containers, one running my own code, and another running a s3 mock. Now, when calling this s3 mock on my own machine, thats instant, but on CircleCi it takes 20 seconds. That sounds like some timeout/backoff being triggered, but how could I debug what is ‘different’ on CircleCI?

borkdude 2019-06-06T19:29:52.002Z

@lennart.buit are you testing with the local circleci CLI command?

2019-06-06T19:30:26.002400Z

No I am not, maybe worth a try, didn’t even know that was a thing

borkdude 2019-06-06T19:31:09.002800Z

it’s especially handy for testing your config before deploying (which I do too often to test…)

2019-06-06T19:31:34.003200Z

yeah, I am using it to validate, but I didn’t expect that it actually could run tests for me

2019-06-06T19:31:46.003400Z

thats nifty!

2019-06-06T19:53:03.005300Z

I don’t experience the same slowness locally through the CLI, the first invocation to the S3 mock is ‘slow’ at ~6 seconds, the last is alright at 700ms. At least nowhere near the 20 seconds I am seeing on CircleCi. So somewhere I am paying a 20 second penalty on Circle

borkdude 2019-06-06T19:58:21.005500Z

are the logs public?

2019-06-06T19:58:34.005700Z

no — sorry

borkdude 2019-06-06T19:58:40.005900Z

good luck then 😉

2019-06-06T19:58:59.006100Z

yeah 😞

2019-06-06T19:59:53.006300Z

thanks for the help tho!

borkdude 2019-06-06T20:00:30.006800Z

maybe it’s downloading/doing stuff that could be cached?

borkdude 2019-06-06T20:01:00.007200Z

or maybe you could avoid the mock by talking to the real S3 with a test bucket?

2019-06-06T20:03:41.008400Z

Yeah, I probably should do the latter, but the purist in me is complaining :’). Its so strange because it actually works, its not just failing, its just succeeding very slowly

polymeris 2019-06-06T20:04:43.009100Z

I have a repo with an S3 mock (localstack) and the calls to it don't take 20s, if that helps in any way: https://circleci.com/gh/polymeris/cljs-aws/442

2019-06-06T20:05:07.009400Z

yeah also using localstack, that will be a great help indeed!

polymeris 2019-06-06T20:05:26.009600Z

This is the config https://github.com/polymeris/cljs-aws/blob/master/.circleci/config.yml#L54