Fork me on GitHub
#datomic
<
2023-06-28
>
cch113:06:25

More Ion questions: does anybody have insight as to how one might introspect within a running Ion to know the Git SHA it represents? An obvious solution is to create an un-reproducible deploy that contains a resource file of the SHA -but that feels dirty. Another way might be some kind of AWS query of CodeDeploy/StepFunctions -clearly Datomic Ions do that themselves to track the status of a specific deploy. But ideally there would be a function in the datomic.ion namespace or at least some artifact carrying the SHA that came with the deploy.

souenzzo21:06:47

in ~2019, when I did it, it was via AWS API's asking the clouddeploy service. this information does not exists in any datomic lib/service.

steveb8n11:06:44

I use a bb task as part of CI deploy to save a record with the git sha and tag in the db. Works well

cch115:06:56

Thanks for this input -both solutions are workable. I wish there were a means of identification tied directly to the code. It really should be part of the API. (@U1QJACBUM!)