init google scaffold generates incorrect networks INSERT and statecheck
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
Research direction
Start at the stackql-deploy init google entry point and locate the generated Compute Network resource definition. Use DESCRIBE METHOD google.compute.networks.insert to verify the required request-body fields, then compare the generated INSERT and statecheck with the working forms in the issue. Done means a freshly generated Google scaffold uses the data__ fields, matches autoCreateSubnetworks correctly, and completes the build flow without manual edits.
Written by the indexing model from the issue text.
Description
Summary
The Google scaffold generated by stackql-deploy init google contains two issues in the generated VPC resource definition:
- The
google.compute.networks.insertstatement does not use the method-specificdata__fields required for the request body. - The generated
statecheckcomparesautoCreateSubnetworkswithfalse, which did not match the deployed resource in my validation. Comparing it with0worked correctly.
After correcting both, I successfully validated the complete stackql-deploy build flow against a real GCP project.
Reproduction
Generate a Google stack:
stackql-deploy init google
Then run the generated stack with a valid GCP project.
The generated network resource contains an INSERT similar to:
INSERT INTO google.compute.networks
(project, name, autoCreateSubnetworks, routingConfig)
SELECT
'{{ project }}',
'{{ vpc_name }}',
false,
'{"routingMode": "REGIONAL"}';
When executed against google.compute.networks.insert, this resulted in a GCP HTTP 400 response:
Required field 'resource' not specified
Issue 1: generated INSERT fields
For this provider method, project is the path parameter, while the request-body fields use the data__ prefix.
The working INSERT is:
INSERT INTO google.compute.networks
(project, data__name, data__autoCreateSubnetworks, data__routingConfig)
SELECT
'{{ project }}',
'{{ vpc_name }}',
false,
'{"routingMode": "REGIONAL"}';
The method contract can be inspected directly with:
DESCRIBE METHOD google.compute.networks.insert;
Provider reference:
https://google-provider.stackql.io/services/compute/networks#insert-examples
The Google provider itself is working correctly; this appears to be an issue with the generated init google scaffold for this resource.
Issue 2: generated statecheck
The generated statecheck contains:
AND autoCreateSubnetworks = false
During validation, this returned no matching row even though the VPC had autoCreateSubnetworks disabled.
Changing it to:
AND autoCreateSubnetworks = 0
matched the deployed resource correctly and allowed the statecheck to pass.
End-to-end validation
After applying both changes, the stack completed successfully through the full resource lifecycle:
exists
create
statecheck
exports
successfully deployed resource
build complete
The deployment completed successfully against a real GCP project.
Expected behavior
A project generated by:
stackql-deploy init google
should produce a working scaffold that can be built without manually correcting the generated SQL.
For the generated Compute Network resource, the scaffold should:
- use the method-specific
data__fields required bygoogle.compute.networks.insert - generate a statecheck expression that correctly matches the returned
autoCreateSubnetworksvalue
Root cause
The issue is in the generated Google scaffold for the Compute Network resource, rather than the stackql-deploy runtime or the Google provider specification.
The provider issue originally opened during diagnosis has been closed after confirming the provider method works correctly with the proper INSERT contract.
- Dominant language
- Rust
- Stars
- 1
- Forks
- 0
- Avg merge
- 12m
- Merged PRs (30d)
- 3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from stackql/stackql-deploy-rs
-
[FEATURE] Waiter semantics for `callback`: stop on terminal failure, time-based bounds, backoff Openenhancement
Difficulty 5/5 Over a week Newbie friendliness 45/100
stackql/stackql-deploy-rs#60 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
stackql/stackql-deploy-rs#58 ·
All issues in stackql/stackql-deploy-rs
Similar issues
-
Browser (wasm) relay client cannot connect to relays whose URL has a trailing-dot FQDN hostname Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
n0-computer/iroh#4550 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
paritytech/zombienet-sdk#591 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
farion1231/cc-switch#7638 · 1 comment ·
-
onnx-ir re-exports ModelProto and GraphProto but not NodeProto, AttributeProto and AttributeType Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100