pulumi / providertest

Incubating facilities for testing Pulumi providers
Apache License 2.0
5 stars 0 forks source link

Retry pulumi install #89

Open t0yv0 opened 2 months ago

t0yv0 commented 2 months ago

Hello!

Issue details

Consider retry/backoff on pulumi install. Dependency installation can cause tests to be flaky. Consider for example this one: https://github.com/pulumi/pulumi-awsx/issues/1336

    provider_nodejs_test.go:65: installing packages and plugins
      pulumiTest.go:103: failed to install packages and plugins: exit status 255
          Installing dependencies...

          npm error code ECONNRESET
          npm error errno ECONNRESET
          npm error network Invalid response body while trying to fetch https://registry.npmjs.org/@pulumi%2fdocker: aborted
          npm error network This is a problem related to network connectivity.
          npm error network In most cases you are behind a proxy or have bad network settings.
          npm error network
          npm error network If you are behind a proxy, please make sure that the
          npm error network 'proxy' config is set properly.  See: 'npm help config'

          npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2024-07-02T07_16_34_262Z-debug-0.log
          error: installing dependencies: dependency installation failed: exit status 1

Affected area/feature