Do the commit check before setting up workdir #454
Labels
good-first-issue
Start here if you'd like to start contributing to Pulumi
impact/performance
Something is slower than expected
kind/enhancement
Improvements or new features
Hello!
Issue details
Today, pulumi operator checks if the commit of a stack has changed after creating the working directory. Creating the working directory involves installing all the dependencies just to check a commit and stop there because the commit hasn't changed.
This is a waste of resources and time as when we want to update the stack, we will not see the pulumi operator doing anything until it has finished preparing the working directory for the previous execution.
In the logs(at the bottom), you can see how it
It takes a minute to check a commit, and is doing it every minute so there is a high chance that everytime we change a config/commit we have to wait up to a minute for the previous run of pulumi check to finish.
Currently you are calling:
And then not returning it until the workdir is setup, and therefore, dependencies installed
Can we move the creation of workdir outside and check the revision earlier?
Affected area/feature
The text was updated successfully, but these errors were encountered: