Fork me on GitHub
#datomic
<
2019-11-20
>
dvingo00:11:15

has anyone run into an issue where a "local/root" dependency will not be included in the zip file when doing a push? I'm getting a class not found error on deploy for one of the namespaces in a local root and when I unzipped the s3 asset it turned out that the source files are not being pulled into the build. I can compile and execute the code locally , so I'm at a loss for what's going on. There are also other local/root dependencies that are being included in the build.

Alex Miller (Clojure team)01:11:19

local dep deps.edn changes may not force a recompute (at least in clj in general, not sure exactly about push). you might try using -Sforce

dvingo01:11:33

thanks! I'm not at my work computer so will let you know how it goes tomorrow

dvingo15:11:50

no luck 😞 even tried cloning the repo again to a new directory.

dvingo15:11:22

any reason the datomic ions dev code couldn't be open sourced? This would make debugging problems like this at last tractable instead of poking random buttons of the opaque box.

dvingo16:11:09

Figured out a way around this for now - to compile the app:

mkdir classes 
clj -A:dev -e "(compile 'user-settings.core)"
;; add "classes" to deps.edn :paths
I have no idea why ions push is not working but the local/root deps are all in the classes and the deploy is now working. This seems like a bug.

dmarjenburgh20:11:58

I think only the files in the default class path are pushed, not paths in aliases. Maybe that could be it?

dvingo20:11:03

Thanks for the reply. Good call, unfortunately this is in the main :deps map

dvingo20:11:13

Also, the compile strategy stopped working and deploy was trying to run some very old version of the app. I'm not sure how this is happening or how I'm the first to run into this..

dvingo22:11:40

OMG... it turned out to be that the local/root project did not have a :paths [] set. Add this :paths ["src"] got the dep to be included in the push....

dvingo22:11:52

Figured it out because other local deps were being included just fine but they had :paths set.

grzm16:11:34

@stuarthalloway As mentioned in person: Two nice-to-haves for the datomic cloud client api: - some system generated unique value identifying a Datomic database so the application can confirm the database it's connecting to (say, a database with a particular db-name has been deleted and another created with the same name: I'd like to be able to detect that at an application level for things like automated testing) - a way to map t value to tx eid, say I have a database, which returns a t value, I'd like to also know what tx that corresponds to.

onetom03:11:43

when i was looking into how to get the uri of a database object i found this:

(.-db_id ^datomic.peer.Connection conn)
=> "m13n-8ba32b12-7f6e-4d64-bf95-f3e32c95d589"
im wondering if that uuid is actually such a db id u were talking about

grzm20:11:36

@jaret Looking forward to seeing you at the Conj! As an aside, what's the current story with AWS integration testing with CodeDeploy/CodeBuild and cross-region S3 buckets? Is that still busticated? (Not that I consider it a Cognitect thing: I fully place that on AWS silliness.)

jaret20:11:31

Still busticated in the sense you have to copy to a bucket in each region as far as I am aware. > AWS CodeDeploy performs deployments with AWS resources located in the same region. To deploy an application to multiple regions, define the application in your target regions, copy the application bundle to an Amazon S3 bucket in each region, and then start the deployments using either a serial or parallel rollout across the regions.

jaret20:11:09

I can double check with team and aws rep

grzm20:11:04

That would be AWSome. Feel free to invoke "our paying customers are (im)patiently waiting for this" on my behalf.

grzm20:11:15

Cheers. There are somethings that I really like about immutability: AWS immutability with respect to this issue is not one of them 😉

👍 8
grzm20:11:41

I've been getting some AWS emails about Nodejs 8.10 begin deprecated/removed in early 2020. I see that Datomic Cloud stuff spun up with the most recent versions of the templates includes Nodejs 8.10 runtimes. Is there going to be a release sometime soon that will include a newer runtime?

marshall20:11:00

its in the pipeline, waiting for AWS to approve/ship it

💯 4
shaun-mahood23:11:55

Hope everyone on the Datomic team has a great time at the Conj - wish I could be there! I found a bad link on the docs - https://docs.datomic.com/cloud/troubleshooting.html#troubleshooting-ions has a link to https://docs.datomic.com/ions/ions-reference.html#lambda-ion which doesn't seem to exist.