You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing GCP under PRC yielded failures in the label-related tests:
--- FAIL: TestLabelsCombinationsGo (0.00s)
--- FAIL: TestLabelsCombinationsGo/convoluted_test_case_found_by_random-sampling (14.78s)
examples_go_test.go:339: state1 = {"defaultLabels":{"x":"","y":"s"},"labels":{"x":""}}
examples_go_test.go:340: state2 = {"defaultLabels":{"x":""},"labels":{"x":"","y":""}}
program.go:1946: sample: labels-combinations-go
program.go:1951: pulumi: /opt/homebrew/bin/pulumi
command.go:46: **** Invoke '/opt/homebrew/Cellar/go/1.22.4/libexec/bin/go mod edit -replace github.com/pulumi/pulumi-gcp/sdk/v7=/Users/vvm/code/pulumi-gcp/sdk' in '/Users/vvm/go/src/stackName-1718038390063176000-941040'
command.go:121: Command completed without output
command.go:46: **** Invoke '/opt/homebrew/Cellar/go/1.22.4/libexec/bin/go mod tidy' in '/Users/vvm/go/src/stackName-1718038390063176000-941040'
command.go:121: Command completed without output
program.go:2096: projdir: /Users/vvm/go/src/stackName-1718038390063176000-941040
program.go:1336: Initializing project (dir /Users/vvm/go/src/stackName-1718038390063176000-941040; stack p-it-venelins-m-labels-com-d923da9f)
command.go:46: **** Invoke '/opt/homebrew/bin/pulumi login --cloud-url file:///var/folders/82/nqnqw81s1h56l5nv940f9mq00000gn/T/TestLabelsCombinationsGoconvoluted_test_case_found_by_random-sampling649358922/001' in '/Users/vvm/go/src/stackName-1718038390063176000-941040'
command.go:118: Wrote output to /Users/vvm/go/src/stackName-1718038390063176000-941040/command-output/pulumi-login.20240610-175310.1ca80.log
command.go:46: **** Invoke '/opt/homebrew/bin/pulumi stack init p-it-venelins-m-labels-com-d923da9f' in '/Users/vvm/go/src/stackName-1718038390063176000-941040'
command.go:118: Wrote output to /Users/vvm/go/src/stackName-1718038390063176000-941040/command-output/pulumi-stack-init.20240610-175311.32536.log
command.go:46: **** Invoke '/opt/homebrew/bin/pulumi config set-all --plaintext state2={"defaultLabels":{"x":""},"labels":{"x":"","y":""}} --plaintext gcp:config:project=pulumi-development --plaintext gcp:config:zone=us-west1-a --plaintext gcp:config:region=us-west1 --plaintext state1={"defaultLabels":{"x":"","y":"s"},"labels":{"x":""}}' in '/Users/vvm/go/src/stackName-1718038390063176000-941040'
command.go:121: Command completed without output
program.go:1503: Performing primary preview and update
command.go:46: **** Invoke '/opt/homebrew/bin/pulumi up --non-interactive --yes --skip-preview --event-log /var/folders/82/nqnqw81s1h56l5nv940f9mq00000gn/T/p-it-venelins-m-labels-com-d923da9f-events.json' in '/Users/vvm/go/src/stackName-1718038390063176000-941040'
command.go:118: Wrote output to /Users/vvm/go/src/stackName-1718038390063176000-941040/command-output/pulumi-update-initial.20240610-175322.f2563.log
command.go:46: **** Invoke '/opt/homebrew/bin/pulumi stack export --file /var/folders/82/nqnqw81s1h56l5nv940f9mq00000gn/T/p-it-venelins-m-labels-com-d923da9f1574371746/stack.json' in '/Users/vvm/go/src/stackName-1718038390063176000-941040'
command.go:121: Command completed without output
program.go:1890: Performing extra runtime validation.
examples_go_test.go:402: phase: 1
examples_go_test.go:403: state1: {"defaultLabels":{"x":"","y":"s"},"labels":{"x":""}}
examples_go_test.go:407:
Error Trace: /Users/vvm/code/pulumi-gcp/examples/examples_go_test.go:407
/Users/vvm/go/pkg/mod/github.com/pulumi/pulumi/pkg/[email protected]/testing/integration/program.go:1891
/Users/vvm/go/pkg/mod/github.com/pulumi/pulumi/pkg/[email protected]/testing/integration/program.go:1533
Error: Not equal:
expected: map[string]string{"x":"", "y":"s"}
actual : map[string]string{"y":"s"}
Diff:
--- Expected
+++ Actual
@@ -1,3 +1,2 @@
-(map[string]string) (len=2) {
- (string) (len=1) "x": (string) "",
+(map[string]string) (len=1) {
(string) (len=1) "y": (string) (len=1) "s"
Test: TestLabelsCombinationsGo/convoluted_test_case_found_by_random-sampling
Messages: key=bucket
program.go:1461: Destroying stack
command.go:46: **** Invoke '/opt/homebrew/bin/pulumi destroy --non-interactive --yes --skip-preview' in '/Users/vvm/go/src/stackName-1718038390063176000-941040'
command.go:118: Wrote output to /Users/vvm/go/src/stackName-1718038390063176000-941040/command-output/pulumi-destroy.20240610-175324.75a32.log
program.go:1477: Test failed, retaining stack 'p-it-venelins-m-labels-com-d923da9f'
Example
TestLabelsCombinationsGo
PATH=~/code/pulumi-gcp/bin:$PATH PULUMI_ENABLE_PLAN_RESOURCE_CHANGE=1 go test -run TestLabelsCombinationsGo -tags=all
Output of pulumi about
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).
The text was updated successfully, but these errors were encountered:
During PlanResourceChange these tests was discovered to fail. Looks like
this is actually an upstream bug - the provider takes empty string for a
label to mean "keep previous value". This was reproed in TF.
I've adjusted the tests to take this into account - they should now work
for both PRC and non-PRC. We can remove the non-PRC bit after enabling
PRC by default.
fixes#2078
What happened?
Testing GCP under PRC yielded failures in the label-related tests:
Example
TestLabelsCombinationsGo
PATH=~/code/pulumi-gcp/bin:$PATH PULUMI_ENABLE_PLAN_RESOURCE_CHANGE=1 go test -run TestLabelsCombinationsGo -tags=all
Output of
pulumi about
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).
The text was updated successfully, but these errors were encountered: