pulumi / upgrade-provider

A tool to automate provider upgrades on your local machine
7 stars 1 forks source link

GCP upgrade failing #155

Closed t0yv0 closed 1 year ago

t0yv0 commented 1 year ago

What happened?

GCP upgrade failed with the following error:

../upstream/go.mod: open /home/runner/work/pulumi-gcp/pulumi-gcp/upstream/go.mod: no such file or directory

https://github.com/pulumi/pulumi-gcp/actions/runs/6224216436/job/16891916772#step:3:1446

The workflow definition is just this:

    steps:
    - name: Call upgrade provider action
      uses: pulumi/pulumi-upgrade-provider-action@v0.0.6
      with:
        kind: all

And pulumi/pulumi-upgrade-provider-action installs upgrade-provider floating version at main branch.

github.com/pulumi/upgrade-provider v0.0.0-20230915232329-b8901aa1bf6b is the version that got picked.

The job attempts a --kind all upgrade.

Locally I seem to succeed performing the following GCP update:

This takes a while but succeeds.

I wonder what is the difference between upstream handling in local vs CI?

Example

See above

Output of pulumi about

N/A

Additional context

N/A

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

mikhailshilkov commented 1 year ago

It looks like you upgraded it yesterday and released 6.66.0. Should we close this issue or will we investigate further?

t0yv0 commented 1 year ago

I've resolved the issue by hand but I think the next GCP upgrade will be failing just the same. Indeed it does:

https://github.com/pulumi/pulumi-gcp/actions/runs/6224898788/job/16894131144#step:3:1445

I think these things are worth tracking if we want to get to the goal of fewer automatic upgrade failures.

guineveresaenger commented 1 year ago

I have seen this as well - it happens to me when I do not run make upstream before upgrading.

guineveresaenger commented 1 year ago

Similar failure here: https://github.com/pulumi/pulumi-aiven/actions/runs/6267858861/job/17021716924#step:3:1132

iwahbe commented 1 year ago

I believe that this is a duplicate of https://github.com/pulumi/upgrade-provider/issues/172. The issue was fixed by https://github.com/pulumi/upgrade-provider/pull/195.