Datalog in clojure.tools.analyzer.query-test not working

Description

clojure.tools.analyzer.query-test has been failing since 2015-11-03, it never runs in CI.

git bisect determined commit a61b1699c15911d17f834745521a9837a8916eec introduced the failure

I checked CI and the latest build doesn't execute query-test, presumably because datomic.Datom isn't found.
See https://build.clojure.org/job/tools.analyzer/728/console

Expected:

Actual:

full repl repro:

It appears the datalog query still works.

Environment

Fails on clojure 1.8, 1.9, 1.10, passes on clojure 1.7

Activity

Show:
Nicola Mometto
June 8, 2020, 4:51 PM

Thanks, merged

Joe Lane
June 7, 2020, 11:28 PM

I created tanal-129-1.patch. The patch changes which query is used within the test depending upon the value in *clojure-version*. Assuming that it is expected behavior that the ast structure changed between clojure version 1.7 and 1.8+, I don’t think there is a bug after all.

Joe Lane
March 4, 2019, 9:40 PM

Cleaned up the ticket.

Fixed

Assignee

Nicola Mometto

Reporter

Joe Lane

Labels

Approval

None

Patch

None

Priority

Major