cljdoc

https://cljdoc.org/ & https://github.com/cljdoc/cljdoc
Jakub Holý 2019-11-01T12:12:47.050100Z

update: fixed (on master, not sure whether/when it will be deployed automatically) @martinklepsch Search is broken, the backend obviously returns EDN instead of JSON, even though the response header reads content-type: application/json. I am looking into it. The problem is here:

(cond-> context
                        (nil? (get-in context [:response :headers "Content-Type"]))
                        (update-in [:response] coerce-to content-type transformer'))
- we did set Content-Type for the search and thus coerce-to is not triggered to transform the EDN to JSON. I guess the right thing is to not set the response type (we are lying now: we say json but send EDN) and let the negotation (with only json allowed) to figure it out. I will push a fix to master ASAP. But we should check that we don't have the same problem elsewhere...

✅ 1
martinklepsch 2019-11-01T12:34:45.050500Z

Oh, interesting. I’ve tried curl with the proper Accept header and it also returns EDN…

Jakub Holý 2019-11-01T12:39:59.050900Z

fix is on master. Will it autodeploy?

Jakub Holý 2019-11-01T12:41:09.051100Z

The header does not help - we used to set Content-Type at the bottom of the interceptor stack together with Clojure data. The cond-> above then just skips converting the data and they only get stringified.

martinklepsch 2019-11-01T12:45:35.051300Z

It will autodeploy, yes

martinklepsch 2019-11-01T12:48:28.051500Z

Your fix looks good, I like how the stuff you did with coerce-body makes the code more concise there

martinklepsch 2019-11-01T13:50:21.051700Z

@holyjak curious what you think about this: https://github.com/cljdoc/cljdoc/pull/361

martinklepsch 2019-11-01T13:53:31.052Z

Oh and regarding deployment: each commit should have a tickmark/orange circle/red cross indicating CI/CD status

👍 1
dominicm 2019-11-01T21:25:22.053600Z

I followed https://github.com/cljdoc/cljdoc/blob/master/doc/userguide/faq.md#how-do-i-set-scm-info-for-my-project and copied the <scm> in the pom.xml and replace laforge99 with SevereOverfl0w and aatree with high. I'm getting issues still https://cljdoc.org/builds/21487

dominicm 2019-11-01T21:28:08.054200Z

What's the simplest way for me to try and run a build locally (including git import) I've done 5 releases so far debugging this 😄

dominicm 2019-11-01T21:28:31.054500Z

oh derp. I hadn't pushed yet before building.

dominicm 2019-11-01T21:28:32.054600Z

sigh.

dominicm 2019-11-01T21:28:41.054900Z

read the error Dominic 🙂

dominicm 2019-11-01T21:30:01.055100Z

Where's the rebuild button?

dominicm 2019-11-01T21:30:15.055300Z

(https://cljdoc.org/d/io.dominic/high/0.9.0)

schmee 2019-11-01T21:31:06.055700Z

@dominicm it is hidden in the top right next to “SCM”

dominicm 2019-11-01T21:34:08.055800Z

where?

dominicm 2019-11-01T21:35:09.056300Z

oh I found it

dominicm 2019-11-01T21:35:13.056500Z

that's literally invisible

dominicm 2019-11-01T21:35:37.056700Z

https://cljdoc.org/d/io.dominic/high/0.9.0/doc/readme still marked as failing, even though that worked

seancorfield 2019-11-01T21:54:03.057400Z

Hah, I didn't even know you could force a rebuild!

seancorfield 2019-11-01T21:54:25.057800Z

I wonder if that was there when I was having similar problems before?

dominicm 2019-11-01T21:54:47.058500Z

I had to read the source, then inspect the source

martinklepsch 2019-11-01T22:45:34.059Z

It’s been there for a looooong time

martinklepsch 2019-11-01T22:46:03.059900Z

@dominicm there’s docs on how to run builds locally. Check the guide for library authors for a link to that