Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
e094b95
SK-2967 split out the common things from v2 and v3 into common module
skyflow-bharti Jul 10, 2026
05c58d2
SK-2967 add interface for skyflow
skyflow-bharti Jul 10, 2026
f92349c
SK-2967 move common code from v2 and flowvault
skyflow-bharti Jul 13, 2026
6f2f55c
SK-2967 fix tests
skyflow-bharti Jul 13, 2026
7356089
SK-2967 add base insert request and refactor the base skyflow
skyflow-bharti Jul 14, 2026
77ec4af
SK-2967 move vault url in v3
skyflow-bharti Jul 14, 2026
0e9a9c7
SK-2967 update generated code
skyflow-bharti Jul 16, 2026
21493da
Merge branch 'main' into SK-2967-java-sdk-add-flow-db-vault-api-suppo…
skyflow-bharti Jul 16, 2026
b82be16
Merge pull request #347 from skyflowapi/SK-2967-java-sdk-add-flow-db-…
skyflow-bharti Jul 16, 2026
4c2b3a7
SK-2967 update the internal release
skyflow-bharti Jul 16, 2026
91125b1
Merge pull request #349 from skyflowapi/SK-2967-java-sdk-add-flow-db-…
skyflow-bharti Jul 16, 2026
80e18fd
SK-2967 update script version
skyflow-bharti Jul 16, 2026
f6a6992
Merge pull request #350 from skyflowapi/SK-2967-java-sdk-add-flow-db-…
skyflow-bharti Jul 16, 2026
a7cda5c
[AUTOMATED] Private Release 1.15.1-dev-f6a6992
skyflow-bharti Jul 16, 2026
678704e
SK-2967 update internal release workflow
skyflow-bharti Jul 16, 2026
807824c
Merge pull request #351 from skyflowapi/SK-2967-java-sdk-add-flow-db-…
skyflow-bharti Jul 16, 2026
e14faed
[AUTOMATED] Private Release 1.15.1-dev-807824c
skyflow-bharti Jul 16, 2026
ca1cfb4
SK-2967 add interfaces
skyflow-bharti Jul 17, 2026
556e552
SK-2967 fix internal release workflows
skyflow-bharti Jul 17, 2026
cd30d53
Merge pull request #353 from skyflowapi/SK-2967-java-sdk-add-flow-db-…
skyflow-bharti Jul 17, 2026
7cea4eb
[AUTOMATED] Private Release 1.15.1-dev-cd30d53
skyflow-bharti Jul 17, 2026
eacdd60
SK-2967 fix internal release workflows
skyflow-bharti Jul 17, 2026
347dbce
Merge branch 'release/26.7.1' into SK-2967-java-sdk-add-flow-db-vault…
skyflow-bharti Jul 17, 2026
139086e
Merge pull request #354 from skyflowapi/SK-2967-java-sdk-add-flow-db-…
skyflow-bharti Jul 17, 2026
f1763a5
[AUTOMATED] Private Release 1.15.1-dev-139086e
skyflow-bharti Jul 17, 2026
d161a42
SK-2967 fix internal release workflows
skyflow-bharti Jul 17, 2026
efdbfc4
Merge branch 'release/26.7.1' into SK-2967-java-sdk-add-flow-db-vault…
skyflow-bharti Jul 17, 2026
08e1761
SK-2967 fix internal release workflows
skyflow-bharti Jul 17, 2026
7dd73d5
SK-2967 fix internal release workflows
skyflow-bharti Jul 17, 2026
5ee3646
SK-2967 add back the bulk interfaces
skyflow-bharti Jul 17, 2026
a9c2b55
SK-2967 implement client
skyflow-bharti Jul 20, 2026
1b6f88c
SK-2967 fix compile errors
skyflow-bharti Jul 20, 2026
073e630
SK-2967 fix compile errors
skyflow-bharti Jul 20, 2026
64d51ef
SK-2967 revert generated code
skyflow-bharti Jul 20, 2026
27492d9
Merge branch 'flowvault-release/26.7.1.2' into SK-2967-java-sdk-add-f…
skyflow-bharti Jul 21, 2026
30628cf
SK-2967 improve the issues
skyflow-bharti Jul 21, 2026
7caa863
SK-2984 Add contract testing for v2 SDK (#352)
saileshwar-skyflow Jul 24, 2026
5c519c1
SK-2967 added query and get methods
skyflow-bharti Jul 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"**/*.{java,md,xml,yml,yaml,json,txt,properties}"
],
"words": [
"japicmp",
"Skyflow",
"skyflow",
"skyflowapi",
Expand Down
118 changes: 118 additions & 0 deletions .github/workflows/contract-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
name: Contract Tests

on:
pull_request:
branches:
- main
- release/*

jobs:
contract-tests:
name: Contract Tests
runs-on: ubuntu-latest

permissions:
contents: read
pull-requests: write

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'

- name: Verify API surface snapshot
run: mvn -B install -pl common,v2 -am -DskipTests -Dmaven.javadoc.skip=true -Dgpg.skip=true

- name: Show API surface diff
if: failure()
run: |
echo "### API surface changes detected ###"
echo "See v2/target/japicmp/default-cli.diff for the full comparison against v2/api-report/skyflow-java.baseline.jar."
echo "If this change is intentional, run scripts/contract-snapshot-update.sh and commit the updated baseline jar."
echo ""
cat v2/target/japicmp/default-cli.diff || true

- name: Upload API surface diff on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: api-surface-diff
path: v2/target/japicmp/**
retention-days: 7

# The step above only shows a diff when the CURRENT build differs from the
# committed baseline - once someone runs contract-snapshot-update.sh and
# commits the refreshed baseline jar, that check goes green and shows nothing.
# A reviewer looking at a green PR that touches api-report/skyflow-java.baseline.jar
# (a binary file) would otherwise have no way to see WHAT was just approved as
# the new contract. These steps explicitly diff the OLD committed baseline
# (from the PR's base branch) against the NEW committed baseline (from this PR)
# and post it as a PR comment, regardless of whether the check above passed.
- name: Check if contract baseline was updated in this PR
id: baseline-diff-check
if: always() && github.event.pull_request
run: |
git fetch origin "${{ github.event.pull_request.base.ref }}" --depth=1
if git diff --name-only "origin/${{ github.event.pull_request.base.ref }}" HEAD -- v2/api-report/skyflow-java.baseline.jar | grep -q .; then
echo "changed=true" >> "$GITHUB_OUTPUT"
else
echo "changed=false" >> "$GITHUB_OUTPUT"
fi

- name: Diff old vs new contract baseline
if: always() && steps.baseline-diff-check.outputs.changed == 'true'
run: |
curl -sL -o /tmp/japicmp-cli.jar "https://repo.maven.apache.org/maven2/com/github/siom79/japicmp/japicmp/0.26.0/japicmp-0.26.0-jar-with-dependencies.jar"
mvn -q -B dependency:build-classpath -pl v2 -Dmdep.outputFile=/tmp/v2-classpath.txt -Dmaven.javadoc.skip=true -Dgpg.skip=true
git show "origin/${{ github.event.pull_request.base.ref }}:v2/api-report/skyflow-java.baseline.jar" > /tmp/old-baseline.jar

java -jar /tmp/japicmp-cli.jar \
-o /tmp/old-baseline.jar \
-n v2/api-report/skyflow-java.baseline.jar \
-a protected \
-e "com.skyflow.generated.*;com.skyflow.utils.*" \
--old-classpath "$(cat /tmp/v2-classpath.txt)" \
--new-classpath "$(cat /tmp/v2-classpath.txt)" \
-m \
--markdown > /tmp/contract-baseline-diff.md || true

cat /tmp/contract-baseline-diff.md

- name: Comment contract baseline change on PR
if: always() && steps.baseline-diff-check.outputs.changed == 'true'
uses: actions/github-script@v7
with:
script: |
const fs = require('fs');
const summary = fs.readFileSync('/tmp/contract-baseline-diff.md', 'utf8');
const marker = '<!-- contract-baseline-diff -->';
const body = `${marker}\n## Contract baseline change detected\n\nThis PR updates \`v2/api-report/skyflow-java.baseline.jar\` (the approved public API contract). Here is exactly what it changes, comparing the baseline on \`${{ github.event.pull_request.base.ref }}\` against the baseline committed in this PR:\n\n${summary}`;
const { data: comments } = await github.rest.issues.listComments({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
});
const existing = comments.find(c => c.body && c.body.includes(marker));
if (existing) {
await github.rest.issues.updateComment({
owner: context.repo.owner,
repo: context.repo.repo,
comment_id: existing.id,
body,
});
} else {
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body,
});
}
25 changes: 21 additions & 4 deletions .github/workflows/internal-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish package to the JFROG Artifactory
name: Publish module to the JFROG Artifactory
on:
push:
tags-ignore:
Expand All @@ -7,20 +7,37 @@ on:
- "*.md"
branches:
- release/*
- flowvault-release/*

jobs:
resolve-module:
runs-on: ubuntu-latest
outputs:
module: ${{ steps.set-module.outputs.module }}
steps:
- name: Resolve module from branch name
id: set-module
run: |
if [[ "${{ github.ref_name }}" == flowvault-release/* ]]; then
echo "module=flowvault" >> "$GITHUB_OUTPUT"
else
echo "module=v2" >> "$GITHUB_OUTPUT"
fi

build-and-deploy:
needs: resolve-module
uses: ./.github/workflows/shared-build-and-deploy.yml
with:
ref: ${{ github.ref_name }}
server-id: central
profile: jfrog
tag: 'internal'
module: ${{ needs.resolve-module.outputs.module }}
secrets:
server-username: ${{ secrets.ARTIFACTORY_USERNAME }}
server-password: ${{ secrets.ARTIFACTORY_PASSWORD }}
gpg-key: ${{ secrets.JFROG_GPG_KEY }}
gpg-passphrase: ${{ secrets.JFROG_GPG_PASSPHRASE }}
skyflow-credentials: ${{ secrets.SKYFLOW_CREDENTIALS }} >> .env
test-expired-token: ${{ secrets.TEST_EXPIRED_TOKEN }} >> .env
test-reusable-token: ${{ secrets.TEST_REUSABLE_TOKEN }} >> .env
skyflow-credentials: ${{ secrets.SKYFLOW_CREDENTIALS }}
test-expired-token: ${{ secrets.TEST_EXPIRED_TOKEN }}
test-reusable-token: ${{ secrets.TEST_REUSABLE_TOKEN }}
26 changes: 19 additions & 7 deletions .github/workflows/shared-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ on:
description: 'Release Tag'
required: true
type: string

module:
description: 'Module to build and publish'
required: false
type: string
default: ''

secrets:
server-username:
required: true
Expand Down Expand Up @@ -61,10 +68,10 @@ jobs:
server-password: SERVER_PASSWORD
gpg-private-key: ${{ secrets.gpg-key }} # Value of the GPG private key to import
gpg-passphrase: GPG_PASSPHRASE # env variable for GPG private key passphrase

- name: Resolve Branch for the Tagged Commit
id: resolve-branch
if: ${{ inputs.tag == 'beta' || inputs.tag == 'public' }}
if: ${{ inputs.tag == 'beta' || inputs.tag == 'public' }}
run: |
TAG_COMMIT=$(git rev-list -n 1 ${{ github.ref_name }})
BRANCH_NAME=$(git for-each-ref --points-at="$TAG_COMMIT" --format='%(refname:short)' refs/remotes/origin | grep -v '/HEAD$' | sed 's#^origin/##' | head -n 1)
Expand All @@ -85,9 +92,9 @@ jobs:
run: |
chmod +x ./scripts/bump_version.sh
if ${{ inputs.tag == 'internal' }}; then
./scripts/bump_version.sh "${{ steps.previoustag.outputs.tag }}" "$(git rev-parse --short "$GITHUB_SHA")"
./scripts/bump_version.sh "${{ steps.previoustag.outputs.tag }}" "$(git rev-parse --short "$GITHUB_SHA")" "${{ inputs.module }}"
else
./scripts/bump_version.sh "${{ steps.previoustag.outputs.tag }}"
./scripts/bump_version.sh "${{ steps.previoustag.outputs.tag }}" "" "${{ inputs.module }}"
fi

- name: Commit changes
Expand All @@ -99,7 +106,7 @@ jobs:
git checkout ${{ env.branch_name }}
fi

git add pom.xml
git add ${{ inputs.module }}/pom.xml
if [[ "${{ inputs.tag }}" == "internal" ]]; then
git commit -m "[AUTOMATED] Private Release ${{ steps.previoustag.outputs.tag }}-dev-$(git rev-parse --short $GITHUB_SHA)"
git push origin ${{ github.ref_name }} -f
Expand All @@ -125,9 +132,14 @@ jobs:
json: ${{ secrets.TEST_CREDENTIALS_FILE_STRING }}

- name: Publish package
run: mvn --batch-mode deploy -P ${{ inputs.profile }}
run: |
if [[ "${{ inputs.tag }}" == "internal" ]]; then
mvn --batch-mode -pl ${{ inputs.module }} -am deploy -P jfrog -DskipTests
elif [[ "${{ inputs.tag }}" == "beta" || "${{ inputs.tag }}" == "public" ]]; then
mvn --batch-mode -pl ${{ inputs.module }} -am deploy -P ${{ inputs.profile }}
fi

env:
SERVER_USERNAME: ${{ secrets.server-username }}
SERVER_PASSWORD: ${{ secrets.server-password }}
GPG_PASSPHRASE: ${{ secrets.gpg-passphrase }}
GPG_PASSPHRASE: ${{ secrets.gpg-passphrase }}
24 changes: 24 additions & 0 deletions common/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.skyflow</groupId>
<artifactId>skyflow</artifactId>
<version>1.0.0</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>common</artifactId>
<version>1.0.0</version>
<name>${project.groupId}:${project.artifactId}</name>


<properties>
<maven.deploy.skip>true</maven.deploy.skip>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>
Loading
Loading