-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[codegen/go] pulumiTypes.go is too large to compile #8950
Comments
Output from verbose debugger: out.txt |
Also getting the same issue with Go Version 1.16.12. Just takes all memory and freezes. This is causing an issue building a production system. |
Is there a chance this could be looked at? Causing me a headache for a production build. |
Output from verbose logging (pulumi up --logtostderr -v=9 2> out.txt), from https://www.pulumi.com/docs/troubleshooting/#verbose-logging This is being run with go version 1.16. I0128 11:30:21.376753 32552 backend.go:414] found username for access token I0128 11:30:22.584718 32552 backend.go:414] found username for access token |
The issue here is that the schema is highly nested due to the schema that we are ingesting from the TF provider upstream. We would need to rebuild that part of the schema completely and diverge from the upstream provider - this is a major breaking change and not something we can commit to easily |
Interestingly, if you just try to compile the wafv2 pulumi/pulumi-aws/sdk/go/aws/wafv2$ go build -x ./pulumiTypes.go
λ go build -x ./pulumiTypes.go
WORK=/var/folders/l2/vv4rcyx972x1mml3ltxfw1fm0000gn/T/go-build179084767
mkdir -p $WORK/b001/
cat >$WORK/b001/importcfg << 'EOF' # internal
# import config
packagefile context=/usr/local/go/pkg/darwin_amd64/context.a
packagefile github.com/pulumi/pulumi/sdk/v3/go/pulumi=/Users/joeduffy/Library/Caches/go-build/21/2190a8526d7221b752f863c5d52a104ea904407ec1c4fd424ddb948511c72a44-d
packagefile reflect=/usr/local/go/pkg/darwin_amd64/reflect.a
EOF
cd /Users/joeduffy/dev/code/src/github.com/pulumi/pulumi-aws/sdk/go/aws/wafv2
/usr/local/go/pkg/tool/darwin_amd64/compile -o $WORK/b001/_pkg_.a -trimpath "$WORK/b001=>" -p command-line-arguments -lang=go1.16 -complete -buildid viOndUgGembTsJ1BBtCR/viOndUgGembTsJ1BBtCR -goversion go1.17.4 -D _/Users/joeduffy/dev/code/src/github.com/pulumi/pulumi-aws/sdk/go/aws/wafv2 -importcfg $WORK/b001/importcfg -pack -c=4 ./pulumiTypes.go
... never returns ... |
For what it's worth, I ran this for a bit longer, and it did actually return:
That's just
|
Any update on this? |
This will be fixed by pulumi/pulumi-aws#2589 in 6.0 of the provider |
Hello!
Issue details
Originally filed on pulumi-aws with title: New WAFv2 rule (in go) causes CPU to spike and doesn't run
When trying to create a new wafv2.rulegroup in Go, the CPU shoots up to nearly max and won't even show a preview.
Steps to reproduce
The following code causes this issue to happen:
a similar program in typescript doesn't have the same outcome (the preview shows and and the resource is created):
Expected: New rule group is created
Actual: new rule group fails to be created and the program just hangs. It doesn't even show a preview
The text was updated successfully, but these errors were encountered: