Skip to content

Himanshupal/sk 3168 flowvault java parity fix - #440

Merged
skyflow-himanshupal merged 2 commits into
flowvault-release/26.10.0from
himanshupal/SK-3168-flowvault-Java-parity-fix
Oct 26, 2026
Merged

skyflow-himanshupal merged 2 commits into
flowvault-release/26.10.0from
himanshupal/SK-3168-flowvault-Java-parity-fix

Conversation

@skyflow-himanshupal

Copy link
Copy Markdown
Collaborator

Adds the four unary operations from the Java flowvault design doc — vault().query(), vault().getTokens(), vault().uploadFiles() and vault().deleteFiles() — and migrates the flowvault SDK to the regenerated Fern client.

Why

  • Brings the Java flowvault SDK to parity with the Python flowvault SDK for ExecuteQuery, GetTokens, UploadFiles and DeleteFiles (SK-3168).
  • The Fern client was regenerated (records, tokens, query and files resources replace flowservice and the V1* types), so the existing operations were migrated to it.

Goal

  • Query: runs a SQL SELECT and returns fields, metadata.columns and the call's requestId.
  • GetTokens: returns the deterministic token for each value and token group, one row per input in request order.
  • UploadFiles: requests a signed URL per column, then uploads each file's bytes to it with HTTP PUT. Each column reports UPLOADED, FAILED or SKIPPED. Accepts filePath, base64 or fileObject.
  • DeleteFiles: deletes files from file columns by skyflowId or uniqueValues, returning {column, status} per record.
  • All four are unary, take *Options for custom headers, and come with Base* classes in common, validation, README sections and samples.
  • Non-goals: bulk/async variants and E2E tests (separate PR in sdk-integration-tests).

Testing

  • Unit tests cover validation, request building, response formatting, typed API errors, custom headers and per-record errors for all four operations.
  • UploadFilesFormatsTests runs real uploads against a local HTTP server: 30 file formats × 3 sources, checking bytes, Content-Type, file name and method. It also covers a large file, an empty file, overrides, a storage-side rejection and an upload longer than the vault-call timeout.
  • Existing tests were migrated to the new generated types.
  • Full suite passes on JDK 11: common 184, skyvault 575, flowvault 941.

Tech debt

  • Upload content types now come from an SDK-owned extension table, so the same file gets the same type on every JDK version.

@codecov

codecov Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.39%. Comparing base (b84ced4) to head (ead4aeb).
⚠️ Report is 4 commits behind head on flowvault-release/26.10.0.

Additional details and impacted files
@@                     Coverage Diff                      @@
##             flowvault-release/26.10.0     #440   +/-   ##
============================================================
  Coverage                        91.39%   91.39%           
  Complexity                         605      605           
============================================================
  Files                              197      197           
  Lines                             8126     8126           
  Branches                          1131     1131           
============================================================
  Hits                              7427     7427           
  Misses                             449      449           
  Partials                           250      250           
Flag Coverage Δ
common 90.19% <ø> (ø)
flowvault 88.96% <ø> (ø)
skyvault 95.02% <ø> (ø)
unittests-flowvault 90.53% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Module: common 90.19% <ø> (ø)
Module: skyvault 95.02% <ø> (ø)
Module: flowvault 88.96% <ø> (ø)
Service Account 87.36% <ø> (ø)
Vault Data 92.13% <ø> (ø)
Vault Tokens 99.03% <ø> (ø)
Vault Connection 100.00% <ø> (ø)
Vault Controller 83.32% <ø> (ø)
Detect 100.00% <ø> (ø)
Audit 100.00% <ø> (ø)
BIN Lookup 100.00% <ø> (ø)
Config 96.26% <ø> (ø)
Utils 90.94% <ø> (ø)
Errors 100.00% <ø> (ø)
Enums 100.00% <ø> (ø)
Logs 96.15% <ø> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b84ced4...ead4aeb. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@skyflow-himanshupal
skyflow-himanshupal changed the base branch from flowvault-release/26.10.3 to flowvault-release/26.10.0 October 26, 2026 12:13
@skyflow-himanshupal
skyflow-himanshupal merged commit fcb0e5f into flowvault-release/26.10.0 Oct 26, 2026
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants