cdk pipelines: Pipeline in infinite loop / always mutates and deploys #26471
Labels
@aws-cdk/pipelines
CDK Pipelines library
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
Describe the bug
Seeing a serious issue where my CodePipeline always triggers a pipeline mutation. It continues building assets for each invocation but puts the Source and Builds steps in a loop. Something’s broken, but I don’t know where to look to unbreak it. I have deleted the stack and recreated, but it continues to happen. Something in the common CDK config? This started happening when I enabled caching in another branch, but I have since reverted the change. There is no caching on the pipeline anymore. There is no custom hashing or signature logic.
Expected Behavior
Once-through per push to the repository (perhaps two on an actual pipeline stack change when a mutation is warranted).
Current Behavior
Source ->
Build ->
UpdatePipeline -> Assets, etc.
Source ->
Build ->
UpdatePipeline -> Assets, etc.
Source ->
Build ->
UpdatePipeline -> Assets, etc.
Reproduction Steps
Don't know for sure how to reproduce. Perhaps overcache with custom and then turn off custom caching?
Possible Solution
No response
Additional Information/Context
The pipeline is not complex. GitHub source with token from SecretsManager.
npm ci
in the CDK directory andcdk synth
during build. In a monorepo where the CDK code is in acdk
subdirectory.cdk/cdk.out
is the primary output directory relative to repo root. Large ARM64 compute type for the build/synth step. Normal ARM64 instances for all other steps. One stage with an app stack. No direct filesystem calls. Nothing weird. Just CDK API.All build logs appear to be identical. No clear reason why a stack mutation would take place.
CDK CLI Version
2.87.0
Framework Version
No response
Node.js Version
18.16.1
OS
CodePipeline/CodeBuild's Linux
Language
Typescript
Language Version
~4.9.5
Other information
No response
The text was updated successfully, but these errors were encountered: