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

panic in pulumiservice.Environment.yaml v0.26 #411

Closed
desteves opened this issue Sep 20, 2024 · 0 comments · Fixed by #414
Closed

panic in pulumiservice.Environment.yaml v0.26 #411

desteves opened this issue Sep 20, 2024 · 0 comments · Fixed by #414
Assignees
Labels
kind/bug Some behavior is incorrect or out of spec p1 A bug severe enough to be the next item assigned to an engineer resolution/fixed This issue was fixed
Milestone

Comments

@desteves
Copy link

What happened?

The latest version of the pulumi service seems to have a bug with the Environment yaml field.

Using v0.23.2 does not have this potential bug as the resource is successfully created/previewed. See below for the error message encountered.

Example

Example code:

pulumi preview

## output

     └─ pulumiservice:index:Environment  aws-oidc-admin             1 error

Diagnostics:
  pulumi:pulumi:Stack (PROJECT-q):
    panic: interface conversion: interface {} is resource.Computed, not *asset.Asset
    goroutine 40 [running]:
    github.com/pulumi/pulumi/sdk/v3/go/common/resource.PropertyValue.AssetValue(...)
      /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/[email protected]/go/common/resource/properties.go:456
    github.com/pulumi/pulumi-pulumiservice/provider/pkg/provider.(*PulumiServiceEnvironmentResource).Check(0x1289f40?, 0xc000450fc0?)
      /home/runner/work/pulumi-pulumiservice/pulumi-pulumiservice/provider/pkg/provider/environment.go:241 +0x778
    github.com/pulumi/pulumi-pulumiservice/provider/pkg/provider.(*pulumiserviceProvider).Check(0xc000450240, {0xc00041b720?, 0x4107e5?}, 0x40?)
      /home/runner/work/pulumi-pulumiservice/pulumi-pulumiservice/provider/pkg/provider/provider.go:217 +0xdb
    github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Check_Handler.func1({0x1298c18, 0xc0004c4bd0}, {0x100b2c0?, 0xc000450fc0})
      /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/[email protected]/proto/go/provider_grpc.pb.go:615 +0x72
    github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x1298c18, 0xc0004c4ae0}, {0x100b2c0, 0xc000450fc0}, 0xc0002f6860, 0xc0003e6d50)
      /home/runner/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/go/otgrpc/server.go:57 +0x3d0
    github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Check_Handler({0x106ec60?, 0xc000450240}, {0x1298c18, 0xc0004c4ae0}, 0xc0003f7200, 0xc0002f7a00)
      /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/[email protected]/proto/go/provider_grpc.pb.go:617 +0x135
    google.golang.org/grpc.(*Server).processUnaryRPC(0xc0002c3400, {0x1298c18, 0xc0004c4a50}, {0x12a1ae0, 0xc0001f4900}, 0xc000437e60, 0xc0003bd020, 0x1a8e9c8, 0x0)
      /home/runner/go/pkg/mod/google.golang.org/[email protected]/server.go:1369 +0xe23
    google.golang.org/grpc.(*Server).handleStream(0xc0002c3400, {0x12a1ae0, 0xc0001f4900}, 0xc000437e60)
      /home/runner/go/pkg/mod/google.golang.org/[email protected]/server.go:1780 +0x1016
    google.golang.org/grpc.(*Server).serveStreams.func2.1()
      /home/runner/go/pkg/mod/google.golang.org/[email protected]/server.go:1019 +0x8b
    created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 37
      /home/runner/go/pkg/mod/google.golang.org/[email protected]/server.go:1030 +0x135

Output of pulumi about

@desteves ➜ /workspaces/examples/aws-ts-oidc-provider-pulumi-cloud (update-aws-ts-oidc) $ pulumi about
CLI          
Version      3.133.0
Go Version   go1.23.1
Go Compiler  gc

Plugins
KIND      NAME           VERSION
resource  aws            6.52.0
resource  command        1.0.1
language  nodejs         unknown
resource  pulumiservice  0.26.0
resource  tls            5.0.6

Host     
OS       ubuntu
Version  20.04
Arch     x86_64

This project is written in nodejs: executable='/home/codespace/nvm/current/bin/node' version='v20.16.0'

Current Stack: diana-pulumi-corp/PROJECT/q

Found no resources associated with q

Found no pending operations associated with q


Dependencies:
NAME                   VERSION
@pulumi/aws            6.52.0
@pulumi/command        1.0.1
@pulumi/pulumi         3.133.0
@pulumi/pulumiservice  0.26.0
@pulumi/tls            5.0.6
@types/node            22.5.5
typescript             5.6.2

Additional context

No response

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).

@desteves desteves added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Sep 20, 2024
@komalali komalali added this to the 0.111 milestone Sep 21, 2024
@komalali komalali removed the needs-triage Needs attention from the triage team label Sep 21, 2024
@seanyeh seanyeh self-assigned this Sep 23, 2024
@seanyeh seanyeh modified the milestones: 0.111, 0.110 Sep 23, 2024
@komalali komalali added the p1 A bug severe enough to be the next item assigned to an engineer label Sep 23, 2024
@pulumi-bot pulumi-bot added the resolution/fixed This issue was fixed label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec 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.

4 participants