https://pulumi.com logo
#general
Title
# general
f

full-doctor-81511

01/12/2023, 6:48 PM
hi, a step for preview in one of the github actions started throwing errors without anything changing and i cant figure out the issue. and im out of ideas
Copy code
preview:
    needs: build
    name: Pulumi Preview
    runs-on: ubuntu-latest
    env:
      NODE_ENV: production
      PULUMI_STACK: org/app-name/prod
      PULUMI_ROOT: infra
      PULUMI_DEBUG_PROMISE_LEAKS: true
    steps:
      - uses: actions/checkout@v2
      - uses: <docker://pulumi/actions:latest>
        with:
          args: preview --stack $PULUMI_STACK
        env:
          AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
          AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
          PULUMI_CI: pr
Diagnostics:
  pulumi:pulumi:Stack (audio-app-infra-prod):
    Promise leak detected:
    CONTEXT(1): resolveURN(resource:audio-app-infra-prod[pulumi:pulumi:Stack])
    STACK_TRACE:
    Error:
        at Object.debuggablePromise (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/debuggable.js:69:75)
        at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:341:61
        at Generator.next (<anonymous>)
        at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:21:71
        at new Promise (<anonymous>)
        at __awaiter (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:17:12)
        at prepareResource (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:331:12)
        at Object.registerResource (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:213:24)
        at new Resource (/github/workspace/infra/node_modules/@pulumi/pulumi/resource.js:215:24)
        at new ComponentResource (/github/workspace/infra/node_modules/@pulumi/pulumi/resource.js:386:9)
    Promise leak detected:
    CONTEXT(2): resolveURNIsKnown(resource:audio-app-infra-prod[pulumi:pulumi:Stack])
    STACK_TRACE:
    Error:
        at Object.debuggablePromise (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/debuggable.js:69:75)
        at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:344:55
        at Generator.next (<anonymous>)
        at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:21:71
        at new Promise (<anonymous>)
        at __awaiter (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:17:12)
        at prepareResource (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:331:12)
        at Object.registerResource (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:213:24)
        at new Resource (/github/workspace/infra/node_modules/@pulumi/pulumi/resource.js:215:24)
        at new ComponentResource (/github/workspace/infra/node_modules/@pulumi/pulumi/resource.js:386:9)
    Promise leak detected:
    CONTEXT(5): monitor.registerResource(resource:audio-app-infra-prod[pulumi:pulumi:Stack])-initial
    STACK_TRACE:
    Error:
        at Object.debuggablePromise (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/debuggable.js:69:75)
        at runAsyncResourceOp (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:662:75)
        at Object.<anonymous> (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:257:9)
        at Generator.next (<anonymous>)
        at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:21:71
        at new Promise (<anonymous>)
        at __awaiter (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:17:12)
        at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:219:63
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
    Promise leak detected:
    CONTEXT(6): rpcKeepAlive
    STACK_TRACE:
    Error:
        at Object.debuggablePromise (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/debuggable.js:69:75)
        at Object.rpcKeepAlive (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/settings.js:363:38)
        at runAsyncResourceOp (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:670:29)
        at Object.<anonymous> (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:257:9)
        at Generator.next (<anonymous>)
        at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:21:71
        at new Promise (<anonymous>)
        at __awaiter (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:17:12)
        at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:219:63
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
    Promise leak detected:
    CONTEXT(7): monitor.registerResource(resource:audio-app-infra-prod[pulumi:pulumi:Stack])-final
    STACK_TRACE:
    Error:
        at Object.debuggablePromise (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/debuggable.js:69:75)
        at runAsyncResourceOp (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:671:34)
        at Object.<anonymous> (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:257:9)
        at Generator.next (<anonymous>)
        at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:21:71
        at new Promise (<anonymous>)
        at __awaiter (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:17:12)
        at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:219:63
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
    Promise leak detected:
    CONTEXT(8): monitor.registerResource(resource:audio-app-infra-prod[pulumi:pulumi:Stack])
    STACK_TRACE:
    Error:
        at Object.debuggablePromise (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/debuggable.js:69:75)
        at Object.<anonymous> (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:263:47)
        at Generator.next (<anonymous>)
        at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:21:71
        at new Promise (<anonymous>)
        at __awaiter (/github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:17:12)
        at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:257:43
        at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:667:16
        at Generator.next (<anonymous>)
        at /github/workspace/infra/node_modules/@pulumi/pulumi/runtime/resource.js:21:71
 
    error: an unhandled error occurred: Program exited with non-zero exit code: 1
 

warning: A new version of Pulumi is available. To upgrade from version '3.12.0' to '3.51.0', visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.
m

millions-furniture-75402

01/12/2023, 9:37 PM
Does your plan have leaky promisses?
Copy code
Promise leak detected:
f

full-doctor-81511

01/12/2023, 9:55 PM
i ended up rewriting the action step based on pulumi docs for preview and after some testing it looks like its working fine now. what is strage is that the next step is similar to this one but doesnt break
3 Views