Fork me on GitHub
#babashka
<
2022-11-24
>
skylize02:11:46

This only happens when using a bb task

:task (clojure "-M:test:runner" "cljs")
instead of calling Clojure itself in cli
clojure -M:test:runner
https://clojurians.slack.com/archives/CCY2V0U6A/p1669087853603829

borkdude06:11:04

Please provide some repo as a repro

skylize19:11:40

Nevermind. I'm pretty sure I reproduced this without Babashka.

borkdude19:11:26

So not a bb issue then?

skylize19:11:56

Seemingly not. I was building a repro, and came across the same behavior in the not-bb case in the repro.

skylize20:11:57

Maybe something about bb is just exaggerating susceptibility to an already existing bug?

borkdude20:11:57

OK, I've never seen a problem like this in bb before. Perhaps you can also report in the kaocha channel that it probably wasn't bb 😅

borkdude20:11:24

But if you do have a repro, of course I'd like to know about it

skylize20:11:57

Yeah, I want to finish the repro to report to Kaocha. But it got really weird, and I want a break from it. I had an example_test.clcj that was triggering the bug. Renamed that to failing_test.cljc and added a passing_.cljc file. Added config to run each separately, and the bug went away. So confused, I reverted everything back and the bug was still gone. 🤯 So ... I guess I need to start from scratch? or ... I just don't know.

skylize22:11:31

I was thinking of switching to Olical/cljs-test-runner. But I assume I'll have the same trouble I'm having with cognitect-testrunner. :melting_face: (And it would be nice to at least try getting a useful repro done before I bail on Kaocha.)

Dimitar Uzunov13:11:40

Hi! So I'm wrapping an interactive session with a bb script - how do I capture an SIGINT without the clojure.repl namespace? I don't need a shutdown hook, just a way for Control-C not to terminate the script..

borkdude13:11:49

$ bb -e '(sun.misc.Signal/handle (sun.misc.Signal. "INT") (proxy [sun.misc.SignalHandler] [] (handle [sig] (prn :sigint)))) @(promise)'
^C:sigint
^C:sigint
^C:sigint
^C:sigint

Dimitar Uzunov13:11:02

Thanks Borkdude! This works!

👍 1
borkdude13:11:14

https://github.com/babashka/babashka: Native, fast starting Clojure interpreter for scripting 1.0.166 (2022-11-24) See the https://blog.michielborkent.nl/babashka-test-runner.html blog post for how to run tests with this release. • Compatibility with Cognitest https://github.com/cognitect-labs/test-runner and https://github.com/clojure/tools.namespace • Add run-test and run-test-var to clojure.test • Compile distributed uberjar using GraalVM, fixes babashka.process/exec for Nix • https://github.com/babashka/babashka/issues/1414: preserve metadata on exec task function argument map • https://github.com/babashka/babashka/issues/1269: add lib tests for sluj (https://github.com/bobisageek) • Update nix app example in docs • Add java.lang.Error and java.net.URLClassLoader (only for compatibility with the clojure.java.classpath lib) • Deps.clj deps.clj: 1.11.1.1200 • Upgrade timbre to 6.0.1 • Performance improvements in SCI • SCI: preserve stack information on throw expressions

🎉 6