Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow failure: cron #5100

Closed
pulumi-bot opened this issue Jan 14, 2025 · 3 comments · Fixed by #5107
Closed

Workflow failure: cron #5100

pulumi-bot opened this issue Jan 14, 2025 · 3 comments · Fixed by #5107
Assignees
Labels
kind/engineering Work that is not visible to an external user p1 A bug severe enough to be the next item assigned to an engineer resolution/fixed This issue was fixed

Comments

@pulumi-bot
Copy link
Contributor

pulumi-bot commented Jan 14, 2025

Workflow Failure

cron has failed. See the list of failures below:

@pulumi-bot pulumi-bot added kind/engineering Work that is not visible to an external user needs-triage Needs attention from the triage team p1 A bug severe enough to be the next item assigned to an engineer labels Jan 14, 2025
@flostadler
Copy link
Contributor

TestRegress2534 failed:

=== RUN   TestRegress2534
    provider_test.go:215: installing packages and plugins
    provider_test.go:215: PULUMI_BACKEND_URL=file:///tmp/TestRegress2534536316515/002
    provider_test.go:215: PULUMI_DEBUG_GRPC=/tmp/TestRegress2534536316515/003/grpc.json
    provider_test.go:215: creating stack test
    examples_py_test.go:169: deploying
    examples_py_test.go:173: Provisioned target group with arn=arn:aws:elasticloadbalancing:us-west-2:894850187425:targetgroup/test-8e4404f/81fe1a05e75cabe8
    examples_py_test.go:175: workdir = /tmp/TestRegress2534536316515/001/regress-2534
    provider_test.go:50: stdout: Previewing import (test):
        
        @ previewing import....
         =  aws:lb:TargetGroup newtg import 
        @ previewing import....
            pulumi:pulumi:Stack regress-2534-test  
        Resources:
            = 1 to import
            3 unchanged
        
        Importing (test):
        
        @ importing....
         =  aws:lb:TargetGroup newtg importing (0s) 
        @ importing....
         =  aws:lb:TargetGroup newtg imported (0.78s) 
        Outputs:
            targetGroupArn: "arn:aws:elasticloadbalancing:us-west-2:894850187425:targetgroup/test-8e4404f/81fe1a05e75cabe8"
            targetGroupUrn: "urn:pulumi:test::regress-2534::aws:lb/targetGroup:TargetGroup::test"
        
        Resources:
            = 1 imported
            3 unchanged
        
        Duration: 2s
        
    provider_test.go:51: stderr: error: loading package '&{aws 6.66.3  <nil>}': req: [email protected]: entries: map[aws:6.66.3:0xc0021ad600] (returned [email protected][681](https://github.com/pulumi/pulumi-aws/actions/runs/12762077951/job/35571523984#step:15:682)4523+bf974ad)
    provider_test.go:52: code=255
    provider_test.go:53: 
        	Error Trace:	/home/runner/work/pulumi-aws/pulumi-aws/examples/provider_test.go:53
        	            				/home/runner/work/pulumi-aws/pulumi-aws/examples/examples_py_test.go:177
        	Error:      	Received unexpected error:
        	            	exit status 255
        	Test:       	TestRegress2534
    provider_test.go:215: cleaning up stack
    provider_test.go:215: failed to destroy stack: failed to destroy stack: exit status 255
        code: 255
        stdout: Destroying (test):
        
        @ destroying....
         -  aws:lb:TargetGroup test deleting (0s) 
         -  aws:lb:TargetGroup test deleted (0.60s) 
         -  aws:ec2:Vpc main deleting (0s) 
         -  aws:lb:TargetGroup newtg deleting (0s) 
         -  aws:lb:TargetGroup newtg deleting (0s) error: resource "urn:pulumi:test::regress-2534::aws:lb/targetGroup:TargetGroup::newtg" cannot be deleted
         -  aws:lb:TargetGroup newtg **deleting failed** error: resource "urn:pulumi:test::regress-2534::aws:lb/targetGroup:TargetGroup::newtg" cannot be deleted
        @ destroying....
         -  aws:ec2:Vpc main deleted (0.84s) 
            pulumi:pulumi:Stack regress-2534-test  error: update failed
            pulumi:pulumi:Stack regress-2534-test **failed** 1 error
        Diagnostics:
          pulumi:pulumi:Stack (regress-2534-test):
            error: update failed
        
          aws:lb:TargetGroup (newtg):
            error: resource "urn:pulumi:test::regress-2534::aws:lb/targetGroup:TargetGroup::newtg" cannot be deleted
            because it is protected. To unprotect the resource, either remove the `protect` flag from the resource in your Pulumi program and run `pulumi up`, or use the command:
            `pulumi state unprotect 'urn:pulumi:test::regress-2534::aws:lb/targetGroup:TargetGroup::newtg'`
        
        Resources:
            - 2 deleted
        
        Duration: 3s
        
        
        stderr: 
        
--- FAIL: TestRegress2534 (36.51s)

Retrying...

@flostadler flostadler removed the needs-triage Needs attention from the triage team label Jan 14, 2025
@flostadler flostadler self-assigned this Jan 14, 2025
@flostadler
Copy link
Contributor

flostadler commented Jan 14, 2025

Still failing. This line is really odd, but maybe that's just what's printed because we're using the locally built provider:

provider_test.go:51: stderr: error: loading package '&{aws 6.66.3  <nil>}': req: [email protected]: entries: map[aws:6.66.3:0xc0006ebd40] (returned [email protected]+bf974ad)

Digging in

This was referenced Jan 14, 2025
@pulumi-bot pulumi-bot added the resolution/fixed This issue was fixed label Jan 14, 2025
@flostadler
Copy link
Contributor

I have a hunch that this has to do with an unreleased feature in pu/pu: pulumi/pulumi@3cf47c8
That would also explain why it's not happening locally for me.

pu/pu is now loading the package reference (see). This internally compares the request version (from the SDK) with the actual version from the provider:
https://github.com/pulumi/pulumi/blame/5c436e08e8606128f231505dfe8241b3ec6268f0/pkg/codegen/schema/loader.go#L236

Those do not match in our case because we're running with an attached provider (=> 6.66.3 vs 6.67.0-alpha.1736814523+bf974ad)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/engineering Work that is not visible to an external user p1 A bug severe enough to be the next item assigned to an engineer resolution/fixed This issue was fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants