Loading…
Reference in a new issue
No description provided.
Delete branch "2662"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes swamp-club #2662, #2660, #2657, #2647 and #2656.
Problem
parameterslist onto an existing method when the preferred version had none, sorequiredflags survived. That tightened a method the preferred version defines.generate:gcpstill exited 0. Investigating this turned up a second silent path:parseGcpDiscoveryDocumentswallowed per-resource exceptions. In both cases orphan pruning then deleted the published models.fetch-schema:gcppulledpreviewversions, so three preview-only resources shipped in@swamp/gcp/compute.Fix
GCP pipeline
parameters/propertiescollection that the merge creates on an existing definition is added as optional. A new method keeps its own flags.generate:gcpexits 2 once it has written everything that did generate. An uncaught crash still exits 1.isStableGcpVersionexcludes alpha, beta and preview versions, both at fetch time and at generate time.PUT updates keep unset fields (#2656, #2657)
codegen/shared/liveFill.tschooses which fields to copy:regionobject is never echoed back where the request takes a slug);tsigs.secretand ai-searchtokens.cf_api_key.updateMaskis a partial update, so it behaves like PATCH.autoscalers) keeps the old stored-state fallback for create-required fields only.Nightly
regenerate-models: each provider step now continues on error.model/output discarded.Docs:
gcp.mdnow states correctly that method runs validateGlobalArgsSchemawith.partial().Model changes
networksecurity/firewallendpoints_wildfireverdictchangerequestsis removed because the API no longer publishes it.@swamp/gcp/computeacceleratorinterconnects,acceleratorinterconnectmemberinstancesandhacontrollers. These were preview-only resources.Behaviour change to call out
On a PUT update, leaving out an optional field now keeps its value instead of clearing it. To clear a field, set it explicitly to an empty value where the API accepts one.
Testing
gcp/pipeline_test.tscovers the merge, the fallback, parse errors, kept models (resource-level and document-level failures) and preview skipping.shared/liveFill_test.tscovers the field-selection rules.datasetsagainst floci-gcp. On main, an update setting onlydescriptionwipedfriendlyNameandlabels. On this branch they are kept, including a value changed outside swamp.verify-buildpassed 14/14 onde6c611c3andverify-reviewspassed 6/6. The attestation is posted to swamp-club #2662.Not tested / known limits
Follow-ups (non-blocking review findings)
datasetsupdate reads the dataset id fromexisting["name"], a field datasets don't have. I'm filing it as its own issue.🤖 Generated with Claude Code
https://claude.ai/code/session_01M8fdcEbuKuk5xeY7UNrJP6
Some schemas, notably Google's, keep server-set fields such as creation times, emails and unique ids in the request body and mark them only in the description ("Output only.", "Read-only."). The PUT live fill no longer echoes those back; create-required fields are still always filled. Immutable fields stay filled, since a full-replacement PUT must repeat their current value. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M8fdcEbuKuk5xeY7UNrJP6