Skip to content

Commit

Permalink
Bump go.mod versions for pulumi, update master, and exclude failing c…
Browse files Browse the repository at this point in the history
…onformance tests

This will hopefully be the last time this needs to be done manually
before Renovate bot handles bumping.
  • Loading branch information
brandonpollack23 committed Feb 19, 2025
1 parent cbdec7a commit 2060a58
Show file tree
Hide file tree
Showing 29 changed files with 247 additions and 56 deletions.
6 changes: 6 additions & 0 deletions cmd/pulumi-language-yaml/language_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@ func runTestingHost(t *testing.T) (string, testingrpc.LanguageTestClient) {

// Add test names here that are expected to fail and the reason why they are failing
var expectedFailures = map[string]string{
"l1-builtin-can": "#721 generation unimplemented",
"l1-builtin-try": "#721 generation unimplemented",
"l2-component-call-simple": "#722 generation unimplemented",
"l2-resource-option-retain-on-delete": "#723 generation unimplemented",
"l2-resource-option-deleted-with": "#724 test failing",
"l2-failed-create-continue-on-error": "#725 test failing",
"l2-provider-grpc-config-schema-secret": "Detected a secret leak in state",
"l2-explicit-parameterized-provider": "unexpected provider request with no version",
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
variables:
# Keywords in various languages should be renamed and work.
class: class_output_string
export: export_output_string
import: import_output_string
mod: mod_output_string
object:
object: object_output_string
self: self_output_string
this: this_output_string
if: if_output_string
outputs:
class: ${class}
export: ${export}
import: ${import}
mod: ${mod}
object: ${object}
self: ${self}
this: ${this}
if: ${if}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: l1-keyword-overlap
runtime: yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
resources:
component1:
type: component:ComponentCustomRefOutput
properties:
value: foo-bar-baz
component2:
type: component:ComponentCustomRefInputOutput
properties:
inputRef: ${component1.ref}
custom1:
type: component:Custom
properties:
value: ${component2.inputRef.value}
custom2:
type: component:Custom
properties:
value: ${component2.outputRef.value}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: l2-component-component-resource-ref
runtime: yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
packageDeclarationVersion: 1
name: component
version: 13.3.7
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
resources:
component1:
type: component:ComponentCustomRefOutput
properties:
value: foo-bar-baz
custom1:
type: component:Custom
properties:
value: ${component1.value}
custom2:
type: component:Custom
properties:
value: ${component1.ref.value}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: l2-component-program-resource-ref
runtime: yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
packageDeclarationVersion: 1
name: component
version: 13.3.7
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
variables:
localValue: hello
outputs:
dynamic:
fn::invoke:
function: any-type-function:dynListToDyn
arguments:
inputs:
- hello
- ${localValue}
- {}
return: result
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: l2-resource-invoke-dynamic-function
runtime: yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
packageDeclarationVersion: 1
name: any-type-function
version: 15.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
resources:
class:
type: simple:Resource
properties:
value: true
export:
type: simple:Resource
properties:
value: true
mod:
type: simple:Resource
properties:
value: true
import: # TODO(pulumi/pulumi#18246): Pcl should support scoping based on resource type just like HCL does in TF so we can uncomment this.
# output "import" {
# value = Resource["import"]
# }
type: simple:Resource
properties:
value: true
object:
type: simple:Resource
properties:
value: true
self:
type: simple:Resource
properties:
value: true
this:
type: simple:Resource
properties:
value: true
if:
type: simple:Resource
properties:
value: true
outputs:
class: ${class}
export: ${export}
mod: ${mod}
object: ${object}
self: ${self}
this: ${this}
if: ${if}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: l2-resource-keyword-overlap
runtime: yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
packageDeclarationVersion: 1
name: simple
version: 2.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
resources:
target:
type: simple:Resource
properties:
value: true
deletedWith:
type: simple:Resource
properties:
value: true
options: {}
notDeletedWith:
type: simple:Resource
properties:
value: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: l2-resource-option-deleted-with
runtime: yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
packageDeclarationVersion: 1
name: simple
version: 2.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
resources:
protected:
type: simple:Resource
properties:
value: true
options:
protect: true
unprotected:
type: simple:Resource
properties:
value: true
options:
protect: false
defaulted:
type: simple:Resource
properties:
value: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: l2-resource-option-protect
runtime: yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
packageDeclarationVersion: 1
name: simple
version: 2.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
resources:
retainOnDelete:
type: simple:Resource
properties:
value: true
options: {}
notRetainOnDelete:
type: simple:Resource
properties:
value: true
options: {}
defaulted:
type: simple:Resource
properties:
value: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: l2-resource-option-retain-on-delete
runtime: yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
packageDeclarationVersion: 1
name: simple
version: 2.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
packageDeclarationVersion: 1
name: any-type-function
version: 15.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
packageDeclarationVersion: 1
name: component
version: 13.3.7
28 changes: 15 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/pulumi/pulumi-yaml

go 1.21
go 1.22

toolchain go1.23.5

require (
github.com/blang/semver v3.5.1+incompatible
Expand All @@ -12,10 +14,10 @@ require (
github.com/hexops/autogold v1.3.0
github.com/iancoleman/strcase v0.2.0
github.com/pkg/errors v0.9.1
github.com/pulumi/pulumi/pkg/v3 v3.143.0
github.com/pulumi/pulumi/sdk/v3 v3.143.0
github.com/pulumi/pulumi/pkg/v3 v3.150.0
github.com/pulumi/pulumi/sdk/v3 v3.150.0
github.com/spf13/afero v1.9.5
github.com/stretchr/testify v1.9.0
github.com/stretchr/testify v1.10.0
github.com/zclconf/go-cty v1.13.2
google.golang.org/grpc v1.67.1
google.golang.org/protobuf v1.35.1
Expand All @@ -39,7 +41,7 @@ require (
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 // indirect
github.com/BurntSushi/toml v1.2.1 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/ProtonMail/go-crypto v1.0.0 // indirect
github.com/ProtonMail/go-crypto v1.1.3 // indirect
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect
github.com/agext/levenshtein v1.2.3 // indirect
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
Expand Down Expand Up @@ -68,16 +70,16 @@ require (
github.com/cheggaaa/pb v1.0.29 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/cyphar/filepath-securejoin v0.3.6 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/deckarep/golang-set/v2 v2.5.0 // indirect
github.com/djherbis/times v1.5.0 // indirect
github.com/edsrzf/mmap-go v1.1.0 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.5.0 // indirect
github.com/go-git/go-git/v5 v5.12.0 // indirect
github.com/go-git/go-billy/v5 v5.6.1 // indirect
github.com/go-git/go-git/v5 v5.13.1 // indirect
github.com/go-jose/go-jose/v3 v3.0.3 // indirect
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
Expand Down Expand Up @@ -149,7 +151,7 @@ require (
github.com/segmentio/asm v1.1.3 // indirect
github.com/segmentio/encoding v0.3.5 // indirect
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
github.com/skeema/knownhosts v1.2.2 // indirect
github.com/skeema/knownhosts v1.3.0 // indirect
github.com/spf13/cast v1.4.1 // indirect
github.com/spf13/cobra v1.8.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
Expand All @@ -170,16 +172,16 @@ require (
gocloud.dev v0.37.0 // indirect
gocloud.dev/secrets/hashivault v0.37.0 // indirect
golang.org/x/crypto v0.31.0 // indirect
golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect
golang.org/x/mod v0.18.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
golang.org/x/mod v0.19.0 // indirect
golang.org/x/net v0.33.0 // indirect
golang.org/x/oauth2 v0.22.0 // indirect
golang.org/x/sync v0.10.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/term v0.27.0 // indirect
golang.org/x/text v0.21.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.22.0 // indirect
golang.org/x/tools v0.23.0 // indirect
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
google.golang.org/api v0.169.0 // indirect
google.golang.org/genproto v0.0.0-20240311173647-c811ad7063a7 // indirect
Expand Down
Loading

0 comments on commit 2060a58

Please sign in to comment.