Repository navigation
feat: parity batch 12 (BigQuery async jobs and load/extract options; Connect attached files and replication; Neptune Gremlin realism; OCI Identity federation and bulk tags; Compute interconnects and catalogue) - #2546
Conversation
…O extract, CAST FORMAT Jobs inserted through jobs.insert now move PENDING, RUNNING, DONE on a worker, with cancel, jobTimeoutMs and timeoutMs long-polling. Load jobs honour custom quotes, schemaUpdateOptions, hive partitioning and maxBadRecords. Extract shards across several destination URIs and writes AVRO. CAST ... FORMAT covers date and time types. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…ansfer, evaluation scoring Attached files upload and download through pre-signed S3 URLs when S3 is wired. ReplicateInstance and cross-region routing are routed and persisted. TransferContact creates a linked TRANSFER contact. Evaluation scoring honours weights, exclusions, automatic fail targets and thresholds. GetMetricDataV2 gains transfer and handle-time metrics. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…schema merge, CAST FORMAT ranges A replayed requestId no longer reports an unfinished or failed job as an empty success. Jobs dropped by Reset or Restore do not execute. Jobs are refused after Close. Append loads compare modes and nested RECORD fields. Hive partition columns are validated. CAST FORMAT rejects out-of-range day, year and offset parts and applies AT TIME ZONE only to TIMESTAMP. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…time lab mode rdf:JSON literals are canonicalised per RFC 8785. datetime() keeps milliseconds and the input offset when neptune_lab_mode has DatetimeMillisecond=enabled. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…n URIs The custom-quote splitter no longer copies the input into runes. Extract jobs with more than 500 destination URIs are rejected. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…e delete, upload window Evaluation weights are capped and negative option scores floor at zero so scores never become NaN. DeleteInstance removes attachment objects from S3. Uploads left PROCESSING for an hour read as FAILED. The bucket is created only after the request validates. CONTACTS_TRANSFERRED_IN is not a GetMetricDataV2 metric and is removed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…e objects, GraphBinary subgraph datetime() read the lab mode under the backend lock while holding the graph semaphore, which could deadlock against a snapshot; the flag is now held per graph. Value objects with @type reject @language and @direction, and a @JSON term in a @list container yields one literal. subgraph() results encode as the GraphBinary Graph type. Meta-properties are dropped as Neptune does. Adds a differential test for the CSV quote splitter. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…rted steps, traverser bulk Vertex properties default to set cardinality and list is rejected, as the Neptune compliance page states. io() writes, program(), tx() and lambdas return UnsupportedOperationException. barrier() merges equal traversers with bulk, applies the withSack merge operator and supports normSack. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…te and UUID values Dropping one value of a multi-valued property no longer removes the key. Dedup and barrier keys include the property value and are length-prefixed. Date values keep their type across GraphSON, GraphBinary and snapshots. UUID property values are rejected as Neptune documents. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…viders, stored credentials, cross-service compartment delete BulkEditTags and BulkDeleteTags run as tagging work requests with per-resource errors. Network sources, the authentication policy, region subscriptions, SAML2 identity providers and group mappings are routed and persisted. Customer secret keys and SMTP credentials are stored and credential creation replays on opc-retry-token. DeleteCompartment refuses a compartment that still holds buckets, DNS resources or streams. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…strict SAML metadata, bounded bulk edits SMTP passwords are stored as a salted digest and legacy plaintext is digested on restore. Verification derives once even for unknown users and outside the lock. Replay secrets are pruned. SAML metadata must carry a base64 certificate and an absolute http(s) redirect URL. Bulk tag edits validate value types, cap tags per resource and scope the retry token. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…ses, GPUs, consensus peering, wider catalogue Regional security policies and edge policy attachment are routed with in-use protection. Licenses, interconnects, interconnect attachments, instant snapshot groups, future reservations and accelerator types are real resources. guestAccelerators are validated at insert. updatePeering supports the CONSENSUS strategy. The catalogue covers 43 regions and more machine families, and regions and projects report quota usage. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
…Local SSD, consensus state on mixed peerings GPU types outside the catalogue that were accepted before are accepted again, and custom N1 machine types may carry GPUs. N2D instances accept Local SSD. A CONSENSUS update no longer writes handshake state onto an INDEPENDENT peer. listPreconfiguredExpressionSets is not routed until its expressions can be sourced. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
|
Important Review skippedToo many files! This PR contains 204 files, which is 104 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. CodeRabbit couldn't verify your organization's usage billing state, so no usage-priced review was started. Retry after the billing service recovers.
|
There was a problem hiding this comment.
Devin Review found 5 potential issues.
9 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
| for i, r := range rows { | ||
| row := make([]any, len(merged)) | ||
| for j, f := range merged { | ||
| if p, found := pos[strs.Fold(f.Name)]; found { | ||
| row[j] = r[p] | ||
| } | ||
| } | ||
|
|
||
| out[i] = row | ||
| } |
There was a problem hiding this comment.
🔴 Nested column values swap on append
When a load reorders RECORD fields, reconcileAppend keeps the old schema order but saves nested values in source order. recordCells reads by position, so values appear under the wrong nested column names.
Learn more
BigQuery stores RECORD values as positional slices, and recordCells interprets them in schema order. mergeField recursively merges nested field definitions while preserving the existing order. The append path only rearranges top-level columns, so it commits nested slices whose layout differs from the merged schema.
Example: Append a JSON row with the explicit RECORD schema [last_name, first_name] to a table whose RECORD schema is [first_name, last_name]. The load succeeds, but a query reads the loaded last name as the first name and vice versa.
Recommended fix: Reconcile each source cell against its source and merged fields recursively. Apply the same logic to each element of a repeated RECORD, preserve null records, and validate with reordered fields and fields added between existing source fields.
Was this helpful? React with 👍 or 👎 to provide feedback.
| func dropPropValue(props map[string]any, key string, val any) { | ||
| vals, multi := props[key].([]any) | ||
| if !multi { | ||
| delete(props, key) | ||
|
|
||
| return | ||
| } |
There was a problem hiding this comment.
🔴 Duplicate property drops erase surviving values
When two traversers drop the same value, dropPropValue can delete the different value left by the first drop.
Learn more
A Gremlin traversal can reach the same vertex through multiple paths. stepProperties emits a separate property object for each selected value and traverser. When stepDrop processes those objects, the first deletion can turn a two-value set into one scalar. The second deletion still refers to the removed value, but the scalar branch deletes the surviving value without checking it.
Example: A vertex has color values red and blue. Visit it twice, select properties('color').hasValue('red'), then call drop(). Both traversers target red, yet the second deletion removes blue.
Recommended fix: In the scalar branch, delete only when the current value matches the selected value using the same equality as the multi-value branch.
| func dropPropValue(props map[string]any, key string, val any) { | |
| vals, multi := props[key].([]any) | |
| if !multi { | |
| delete(props, key) | |
| return | |
| } | |
| func dropPropValue(props map[string]any, key string, val any) { | |
| current, exists := props[key] | |
| vals, multi := current.([]any) | |
| if !multi { | |
| if exists && sameValue(current, val) { | |
| delete(props, key) | |
| } | |
| return | |
| } |
Was this helpful? React with 👍 or 👎 to provide feedback.
| for _, d := range members { | ||
| name := memberSnapshotName(in.Name, d.Name) | ||
| if _, dup := b.instantSnaps[key(c.project, c.loc, name)]; dup { | ||
| return errExists(relPath(c.project, c.scope, c.loc, collInstantSnaps, name)) | ||
| } | ||
|
|
||
| s := b.newInstantSnapshot(c.project, c.scope, c.loc, name, d) | ||
| s.SourceInstantSnapshotGroup = in.SelfLink | ||
| s.SourceInstantSnapshotGroupId = strconv.FormatUint(in.Id, 10) | ||
| snaps = append(snaps, s) | ||
| } | ||
|
|
||
| for _, s := range snaps { | ||
| b.instantSnaps[key(c.project, c.loc, s.Name)] = s | ||
| } |
There was a problem hiding this comment.
🔴 Snapshot groups silently omit disks
When long disk names truncate to the same name, prepInstantSnapshotGroup checks neither member against the other. The later snapshot overwrites the first, but group creation succeeds.
Learn more
Instant snapshot group creation prepares one snapshot per disk before writing those snapshots to the backend. The name comes from memberSnapshotName, which truncates the disk suffix when there is not enough space. The check only sees already stored snapshots, so two entries prepared in the same call can share a key. Inserting the second overwrites the first without an error.
Example: Attach two disks whose names each start with 61 a characters and end in b and c, respectively, to the same consistency group. For snapshot group g, their generated names both begin g- and contain only the common 61-character prefix. The created group has one snapshot instead of two.
Recommended fix: Generate a distinct, valid name for each member, including a stable suffix when truncation is required. Track generated keys during preparation and reject collisions before storing any member.
Was this helpful? React with 👍 or 👎 to provide feedback.
| }) | ||
| if err != nil { | ||
| return nil, err | ||
| } |
There was a problem hiding this comment.
🟥 Upload URLs can overwrite approved attachments
After CompleteAttachedFileUpload approves a file, its unexpired upload URL still grants writes to the same S3 object. storeURL binds the size, not the content, so recipients can download replacement bytes under the approved status.
Was this helpful? React with 👍 or 👎 to provide feedback.
| b.runs.Set(key, run) | ||
|
|
||
| b.wg.Go(func() { b.work(rctx, run, job, kind, cfg, media) }) |
There was a problem hiding this comment.
🟨 Invalid CSV loads can terminate the emulator
A CSV load with an invalid skip-row count reaches unchecked slicing in parseCSVInput. startJob runs the load outside HTTP panic recovery, so the panic can terminate the emulator.
Was this helpful? React with 👍 or 👎 to provide feedback.
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
…rted types Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY
📊 Code Coverage Report
📄 Impacted Files Breakdown
Tip This project maintains a minimum coverage threshold of 85%. Maintain or improve coverage on new code to ensure long-term stability. Last updated: Sat, 21 Nov 2026 05:44:44 GMT |
Summary
Parity work across five services. Every feature commit was followed by an independent review pass; its fixes are the
fix(...)commit after each feature commit.jobs.insertis asynchronous (PENDING, RUNNING, DONE) with cancel,jobTimeoutMsandtimeoutMslong-polling. Load jobs honour custom quotes,schemaUpdateOptions, hive partitioning andmaxBadRecords. Extract shards across several destination URIs and writes AVRO.CAST ... FORMATfor date and time types.ReplicateInstanceand cross-region routing.TransferContact. Evaluation scoring with weights, exclusions, automatic fail targets and thresholds.@json(RFC 8785) and@direction. openCypher extendeddatetime()behind theDatetimeMillisecondlab mode. Gremlin defaults to set cardinality, rejects what the compliance page lists as unsupported, supports traverser bulk andbarrier(normSack), encodessubgraph()in GraphBinary, and keepsDatevalues typed.opc-retry-tokenreplay, andDeleteCompartmentrefusing compartments that still hold buckets, DNS resources or streams.guestAcceleratorsvalidation,GRPC_WITH_TLShealth checks, CONSENSUSupdatePeering, 43 regions with more machine families, and quota usage computed from state.Behaviour changes
jobs.insertreturns PENDING instead of DONE; clients must wait on the job as they do against the real service.property(k, v)on a vertex now adds a value (set cardinality); useproperty(single, k, v)to replace.Known limits
Recorded in each service's
PARITY.md: BigQuery cancel does not interrupt a statement already executing; Connect error codes forTransferContactare not verifiable from the pinned SDK; OCI Identity policy enforcement and access levels remain out of scope;securityPolicies.listPreconfiguredExpressionSetsis not routed.Test plan
go build ./...,go vet ./...(pluse2eandintegrationtags),go fix -diff ./...emptyparitylint./dashboard/...with-race -shuffle on./internal/appwith-race, leak suite, root packagegolangci-linton touched packages,./internal/app/...,./dashboard/...test/terraform/gcp🤖 Generated with Claude Code
https://claude.ai/code/session_01NVwMjLknMM32Xje6Qik6wY