-
Hello! Some context: We're using the Gruntworks ref arq and the Gruntworks pipeline, in GHA. We recently tried to delete our openvpn module and all its dependencies. To do so, we created a big PR that:
Upon creating the PR, the plan ran okay. All the Openvpn resources were flagged for deletion. However, when running the deploy itself, it fails with the following:
And then:
There's nothing else in the logs and we haven't got a clue what this error means. This is hardly the first time we delete a module via the pipeline. Could somebody lend us a hand? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi, Can be attempted to use in |
Beta Was this translation helpful? Give feedback.
-
@denis256 upon further review, we noticed that the plan part of the pipeline runs against the commit that holds the deleted modules: However, after the plan is finished and the pipeline moves on to deploy, it appears to run against master, which ofc no longer has the modules being deleted:
This understandably causes the deploy part to fail. My question is why? Why would the pipeline run plan against the commit and then run deploy against master? How can we delete modules via the gruntworks-pipeline if this is how it behaves? I'm almost certain we've deleted modules before and haven't faced this issue. |
Beta Was this translation helpful? Give feedback.
-
Nevermind, we seem to have found the problem. We merged another PR after this one, which finished before the first one. When the first one ran deploy, HEAD^ fetched the last commit that no longer had the modules, which is why it failed. |
Beta Was this translation helpful? Give feedback.
Nevermind, we seem to have found the problem. We merged another PR after this one, which finished before the first one. When the first one ran deploy, HEAD^ fetched the last commit that no longer had the modules, which is why it failed.