This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-09-02
Channels
- # announcements (6)
- # babashka (21)
- # beginners (38)
- # biff (2)
- # calva (14)
- # cider (5)
- # clerk (4)
- # cljdoc (2)
- # clojure (11)
- # clojure-europe (2)
- # clojure-norway (5)
- # clojure-spec (4)
- # core-typed (8)
- # data-science (5)
- # deps-new (15)
- # events (1)
- # fulcro (2)
- # graalvm (33)
- # holy-lambda (3)
- # hyperfiddle (19)
- # kaocha (1)
- # portal (5)
- # test-check (1)
- # xtdb (9)
- # yamlscript (2)
I'm working on a electric/xtdb/fly.io starter example (https://github.com/yayitswei/electric-xtdb-starter-fly-io), currently troubleshooting an uberjar issue in this #xtdb thread: https://clojurians.slack.com/archives/CG3AM2F7V/p1693613079965599?thread_ts=1677430221.688989&cid=CG3AM2F7V. lmk if you have any insights, thanks!
move user.clj off classpath uberjar build, put it in src-dev or something and adjust deps.edn accordingly
this has been addressed in the starter app i believe or if not is about to be in the next version
i cannot explain the issue but search this channel for the NoClassDefError
thanks for the tip, that did the trick. working deployment at https://electric-xtdb-starter.fly.dev/
took longer to troubleshoot because the cljs build was failing but the deployment continued. any good way to stop the build on cljs compilation failure?
for that matter, i'm having a hard time seeing the full build log. I'm using NO_COLOR=1 but still seeing the truncated logs -- are there any other tricks to see the full log?
builds are getting redone, file any issues on the repo and i’ll confirm when we fan out the changes to all the starter repos
(understand this is more of a http://fly.io question, i can ask around as well)
i don’t really understand the question about build logs, i think we use github actions for our builds so we go there for the logs? is this a docker question?
fly sends runtime logs to any configured cloud logger service, but i don’t think build logs would go there
iiuc the electric starter app is configured to build on a http://fly.io machine. i can see runtime logs on http://fly.io, but not build logs, it just flies by in that truncated format. i copied the electric starter app deploy configuration for the xtdb starter.
[deleted confused replies]
You can use this snippet to fail the shadow build, until we get it landed everywhere:
(as->
(shadow-api/release :prod
{:debug debug,
:verbose verbose,
:config-merge
[{:compiler-options {:optimizations (if optimize :advanced :simple)}
:closure-defines {'hyperfiddle.electric-client/ELECTRIC_USER_VERSION electric-user-version}}]})
shadow-status (assert (= shadow-status :done) "shadow-api/release error")) ; fail build on error
you'll need to adapt it to look like whatever your app has in build.clj, this has other changes
I have not fully tested it, iiuc an exception is sufficient but you can add a (System/exit 1) if CI needs us to "fail harder"