Hello! Anyone having experience with the Pulumi Gi...
# general
n
Hello! Anyone having experience with the Pulumi GitHub action? I have it up and running, but encountered multiple times, that if anything goes wrong or a pipeline is aborted while Pulumi is working, all subsequent pipelines will also fail, because the Pulumis state will be locked. I had the idea to add a step that runs the "cancel" command, when a step on the pipeline fails, but I thought that maybe someone has something smarter for this problem. Thank you!
l
What backend are you using? This hasn't happened to me, but I've only used the Pulumi backend.
n
This happens to both my Minio (S3) backend, and my current setup via file://, where I mount my state dir into the Runner pod
l
file:// in a GitHub action? Can you guarantee that the file system is even the same? Isn't GitHub allowed use different containers for every step?
But S3 should work.
n
Yes, I use my own selfhosted Forgejo instance and runner, to which I can mount what I want from my host system. And I mean Pulumi does work, if ran successfully, but if I would cancel the pipeline mid pulumi up, then the generated lock file would block every subsequent run, until I run pulumi cancel.
And I am looking for a way to automatically unstuck pulumi, if something goes wrong, so that I would not have to manually intervene
l
I'd guess that this is unrelated to GitHub. The file system issues are more likely to be causing the problem. But if you just want to solve it, then maybe remove the lock file after each Pulumi step?
Well maybe it's related to GitHub in that the action closes a connection to the runner in some way, that doesn't happen when you're on a similar system via a CLI.
But it's unlikely to be related to the Pulumi GitHub action. Maybe to the GitHub action framework.
n
Well the same does happen when using S3 as my backend. But yes, I also thought of removing the lock file after a failed step. Because usually the lock file is just removed after a successful run, right?
l
I believe so. Honestly it's been many years since I used any backend other than Pulumi's. But yes, that's my understanding.
a
What is the reason not to use pulumi cloud as backend?
l
Money would be the usual one 🙂 Also data residency concerns.