renovatebot / renovate

Home of the Renovate CLI: Cross-platform Dependency Automation by Mend.io
https://mend.io/renovate
GNU Affero General Public License v3.0
16.49k stars 2.12k forks source link

Renovate exits with 0 status and stops processing further repos resolving terraform dependency #10811

Closed dlouzan closed 2 years ago

dlouzan commented 2 years ago

How are you running Renovate?

If using the hosted app, please skip to the next section. Otherwise, if self-hosted, please complete the following:

Please select which platform you are using:

Renovate version: 25.52.5 (gitlab template v1.46.8)

Describe the bug

This seems https://github.com/renovatebot/renovate/issues/6299 again caused by using a proxy on a corporate network, but on a different data source, in this case with a terraform dependency that is not available.

Running on the corporate environment where the proxy is set:

 INFO: Dependency extraction complete (repository=code-ops/terraform-provider-itam)
       "baseBranch": "main",
       "stats": {
         "managers": {
           "gitlabci": {"fileCount": 1, "depCount": 2},
           "gomod": {"fileCount": 1, "depCount": 1},
           "npm": {"fileCount": 1, "depCount": 3},
           "terraform": {"fileCount": 1, "depCount": 3}
         },
         "total": {"fileCount": 4, "depCount": 9}
       }
DEBUG: Dependency node has unsupported value fermium (repository=code-ops/terraform-provider-itam)
DEBUG: terraform-provider.getDependencies() (repository=code-ops/terraform-provider-itam)
       "lookupName": "code-ops/itam"
DEBUG: getLabels(https://index.docker.io, library/golang, latest) (repository=code-ops/terraform-provider-itam)

# Exits at this point with 0, stopping further processing

On localhost where no proxy is set, the resolution of the dependency fails and processing continues:

 INFO: Dependency extraction complete (repository=code-ops/terraform-provider-itam)
       "baseBranch": "main",
       "stats": {
         "managers": {
           "gitlabci": {"fileCount": 1, "depCount": 2},
           "gomod": {"fileCount": 1, "depCount": 1},
           "npm": {"fileCount": 1, "depCount": 3},
           "terraform": {"fileCount": 1, "depCount": 3}
         },
         "total": {"fileCount": 4, "depCount": 9}
       }
DEBUG: Dependency node has unsupported value fermium (repository=code-ops/terraform-provider-itam)
DEBUG: terraform-provider.getDependencies() (repository=code-ops/terraform-provider-itam)
       "lookupName": "code-ops/itam"
DEBUG: getLabels(https://index.docker.io, library/golang, latest) (repository=code-ops/terraform-provider-itam)
DEBUG: getManifestResponse(https://index.docker.io, library/golang, latest) (repository=code-ops/terraform-provider-itam)
DEBUG: getManifestResponse(https://index.docker.io, library/golang, sha256:264ebcddca05426de1c8a04cfb3a27fff72468c1d32b2d0f367d614e11449362) (repository=code-ops/terraform-provider-itam)
DEBUG: Datasource connection error (repository=code-ops/terraform-provider-itam)
       "datasource": "terraform-provider",
       "lookupName": "code-ops/itam",
       "url": undefined,
       "errCode": "ENOTFOUND"
DEBUG: Failed to look up dependency itam (repository=code-ops/terraform-provider-itam, packageFile=example/main.tf, dependency=itam)

# Processing continues

Relevant debug logs

Click me to see logs ``` ```

Have you created a minimal reproduction repository?

Please read the minimal reproductions documentation to learn how to make a good minimal reproduction repository.

Additional context

...

/cc @max-wittig @bufferoverflow @ercanucan @fgreinacher

dlouzan commented 2 years ago

Actually just confirmed on the corporate environment, unsetting the proxy variables fails the dependency resolution (as expected), but renovate does not die and continues processing.