Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 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
685a82f
SK-3026 insert and detokenize added accordingt to doc
skyflow-bharti Aug 2, 2026
9476dce
SK-3026 fix test env
skyflow-bharti Aug 2, 2026
5364d8e
SK-3026 fix response building
skyflow-bharti Aug 2, 2026
65e4c73
SK-3026 fix spell check
skyflow-bharti Aug 2, 2026
470f913
SK-3026 fix spell check
skyflow-bharti Aug 2, 2026
c1c5719
SK-3026 point codecov at per-module jacoco reports
Devesh-Skyflow Aug 2, 2026
5bbe58c
SK-3026 fix codecov component paths for the modular layout
Devesh-Skyflow Aug 2, 2026
c314875
SK-3026 added retries
skyflow-bharti Aug 2, 2026
8745817
SK-3026 update the name of vaultURL
skyflow-bharti Aug 2, 2026
671dbf3
Merge pull request #384 from skyflowapi/SK-3026-java-sdk-fix-contract…
skyflow-bharti Aug 2, 2026
0e65c69
[AUTOMATED] Private Release 3.0.0-beta.13-dev-671dbf3
skyflow-bharti Aug 2, 2026
0d4db0a
SK-3026 fix the doc error in release
skyflow-bharti Aug 2, 2026
734ce68
[AUTOMATED] Private Release 3.0.0-beta.13-dev-0d4db0a
skyflow-bharti Aug 2, 2026
f933cfa
Merge pull request #387 from skyflowapi/flowvault-release/26.8.1
skyflow-bharti Aug 2, 2026
019e876
SK-3020 fix v2 release
skyflow-bharti Aug 2, 2026
202473d
SK-3026 added samples folder in each modules v2 and v3
skyflow-bharti Aug 2, 2026
1fd71da
[AUTOMATED] Private Release 3.0.0-beta.13-dev-202473d3
skyflow-bharti Aug 2, 2026
a341d09
SK-3026 added samples folder in each modules v2 and v3
skyflow-bharti Aug 2, 2026
738e753
[AUTOMATED] Private Release 3.0.0-beta.13-dev-a341d09f
skyflow-bharti Aug 2, 2026
1dea6f8
SK-3037: rework delete and tokenize to the FlowDB contract (#385)
saileshwar-skyflow Aug 2, 2026
cfeaab8
[AUTOMATED] Private Release 3.0.0-beta.13-dev-1dea6f89
saileshwar-skyflow Aug 2, 2026
9a074a9
SK-3026 fix insert issue
skyflow-bharti Aug 2, 2026
c082d32
[AUTOMATED] Private Release 3.0.0-beta.13-dev-9a074a90
skyflow-bharti Aug 2, 2026
61de168
SK-3026 Fix api exception level issue
skyflow-bharti Aug 2, 2026
1b0bf6e
[AUTOMATED] Private Release 3.0.0-beta.13-dev-61de168d
skyflow-bharti Aug 2, 2026
f70f738
SK-3026 Fix api exception level issue for detokenize
skyflow-bharti Aug 2, 2026
bd4af72
[AUTOMATED] Private Release 3.0.0-beta.13-dev-f70f738d
skyflow-bharti Aug 2, 2026
28dcc89
SK-3026 fix naming for skyflow id in detokenize
skyflow-bharti Aug 2, 2026
d373373
[AUTOMATED] Private Release 3.0.0-beta.13-dev-28dcc895
skyflow-bharti Aug 2, 2026
1458dbd
SK-3026 add request id in insert and detokenize
skyflow-bharti Aug 2, 2026
cf98b8d
[AUTOMATED] Private Release 3.0.0-beta.13-dev-1458dbdb
skyflow-bharti Aug 2, 2026
ed84cb8
SK-3026 update options name in insert and detokenize
skyflow-bharti Aug 3, 2026
b4756e8
[AUTOMATED] Private Release 3.0.0-beta.13-dev-ed84cb86
skyflow-bharti Aug 3, 2026
3671a19
SK-3026 fix spell check
skyflow-bharti Aug 3, 2026
57e14ce
[AUTOMATED] Private Release 3.0.0-beta.13-dev-3671a19a
skyflow-bharti Aug 3, 2026
16df1ee
Merge pull request #389 from skyflowapi/flowvault-release/26.8.1.1
skyflow-bharti Aug 3, 2026
a7ebe17
[AUTOMATED] Private Release 3.0.0-beta.13-dev-16df1ee5
skyflow-bharti Aug 3, 2026
6577fa7
SK-3037 give the bulk tokenize and delete interfaces their own option…
saileshwar-skyflow Aug 3, 2026
70d9c98
[AUTOMATED] Private Release 3.0.0-beta.13-dev-6577fa70
saileshwar-skyflow Aug 3, 2026
9bd1b4b
SK-3026 retry logic update
skyflow-bharti Aug 3, 2026
a136e02
[AUTOMATED] Private Release 3.0.0-beta.13-dev-9bd1b4be
skyflow-bharti Aug 3, 2026
969e339
Merge branch 'flowvault-release/26.8.1' into flowvault-release/26.8.1.1
skyflow-bharti Aug 3, 2026
26cc382
[AUTOMATED] Private Release 3.0.0-beta.13-dev-969e339a
skyflow-bharti Aug 3, 2026
eb744eb
SK-3026 fix spell check
skyflow-bharti Aug 3, 2026
128e2ed
[AUTOMATED] Private Release 3.0.0-beta.13-dev-eb744eb6
skyflow-bharti Aug 3, 2026
f2f6bb2
SK-3026 update v2 folder to skyvault
skyflow-bharti Aug 3, 2026
1b93d71
[AUTOMATED] Private Release 3.0.0-beta.13-dev-f2f6bb20
skyflow-bharti Aug 3, 2026
5e36805
SK-3026 add unit tests
skyflow-bharti Aug 3, 2026
7ce8fe2
[AUTOMATED] Private Release 3.0.0-beta.13-dev-5e368050
skyflow-bharti Aug 3, 2026
f72e221
Merge pull request #392 from skyflowapi/flowvault-release/26.8.1.1
skyflow-bharti Aug 3, 2026
9f7364f
[AUTOMATED] Private Release 3.0.0-beta.13-dev-f72e2218
skyflow-bharti Aug 3, 2026
50ebcd0
Merge pull request #393 from skyflowapi/flowvault-release/26.8.1
skyflow-bharti Aug 3, 2026
1a385f0
SK-3026 fix release for v2
skyflow-bharti Aug 3, 2026
76f7c7c
[AUTOMATED] Private Release 3.0.0-beta.13-dev-1a385f0e
skyflow-bharti Aug 3, 2026
57e6a0d
[AUTOMATED] Private Release 3.0.0-beta.13-dev-76f7c7c0
skyflow-bharti Aug 3, 2026
136825f
[AUTOMATED] Private Release 3.0.0-beta.13-dev-57e6a0dc
skyflow-bharti Aug 3, 2026
4e7ffe1
[AUTOMATED] Private Release 3.0.0-beta.13-dev-136825f7
skyflow-bharti Aug 3, 2026
4f2c767
[AUTOMATED] Private Release 3.0.0-beta.13-dev-4e7ffe1a
skyflow-bharti Aug 3, 2026
5735896
[AUTOMATED] Private Release 3.0.0-beta.13-dev-4f2c767a
skyflow-bharti Aug 3, 2026
a2fd951
[AUTOMATED] Private Release 3.0.0-beta.13-dev-57358962
skyflow-bharti Aug 3, 2026
96e30df
[AUTOMATED] Private Release 3.0.0-beta.13-dev-a2fd9515
skyflow-bharti Aug 3, 2026
72303f8
[AUTOMATED] Private Release 3.0.0-beta.13-dev-96e30dff
skyflow-bharti Aug 3, 2026
bc23a80
[AUTOMATED] Private Release 3.0.0-beta.13-dev-72303f8f
skyflow-bharti Aug 3, 2026
8134c9f
[AUTOMATED] Private Release 3.0.0-beta.13-dev-bc23a801
skyflow-bharti Aug 3, 2026
f4d8a7e
[AUTOMATED] Private Release 3.0.0-beta.13-dev-8134c9f1
skyflow-bharti Aug 3, 2026
52d98ab
[AUTOMATED] Private Release 3.0.0-beta.13-dev-f4d8a7ed
skyflow-bharti Aug 3, 2026
859a2fd
[AUTOMATED] Private Release 3.0.0-beta.13-dev-52d98ab7
skyflow-bharti Aug 3, 2026
eb414f8
[AUTOMATED] Private Release 3.0.0-beta.13-dev-859a2fd9
skyflow-bharti Aug 3, 2026
05fcd9b
[AUTOMATED] Private Release 3.0.0-beta.13-dev-eb414f8d
skyflow-bharti Aug 3, 2026
5994da7
[AUTOMATED] Private Release 3.0.0-beta.13-dev-05fcd9b6
skyflow-bharti Aug 3, 2026
5e2f216
[AUTOMATED] Private Release 3.0.0-beta.13-dev-5994da74
skyflow-bharti Aug 3, 2026
bf1b316
[AUTOMATED] Private Release 3.0.0-beta.13-dev-5e2f2169
skyflow-bharti Aug 3, 2026
9128b6e
[AUTOMATED] Private Release 3.0.0-beta.13-dev-bf1b3165
skyflow-bharti Aug 3, 2026
eb2766a
[AUTOMATED] Private Release 3.0.0-beta.13-dev-9128b6ea
skyflow-bharti Aug 3, 2026
9fc4dfe
[AUTOMATED] Private Release 3.0.0-beta.13-dev-eb2766a2
skyflow-bharti Aug 3, 2026
fcfe107
[AUTOMATED] Private Release 3.0.0-beta.13-dev-9fc4dfec
skyflow-bharti Aug 3, 2026
463e7ff
[AUTOMATED] Private Release 3.0.0-beta.13-dev-fcfe1073
skyflow-bharti Aug 3, 2026
5c14932
[AUTOMATED] Private Release 3.0.0-beta.13-dev-463e7ffa
skyflow-bharti Aug 3, 2026
e5f6bf2
[AUTOMATED] Private Release 3.0.0-beta.13-dev-5c149322
skyflow-bharti Aug 3, 2026
f869d8e
[AUTOMATED] Private Release 3.0.0-beta.13-dev-e5f6bf2a
skyflow-bharti Aug 3, 2026
f842cd2
[AUTOMATED] Private Release 3.0.0-beta.13-dev-f869d8ed
skyflow-bharti Aug 3, 2026
13d6b41
[AUTOMATED] Private Release 3.0.0-beta.13-dev-f842cd2d
skyflow-bharti Aug 3, 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
  •  
  •  
  •  
17 changes: 14 additions & 3 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 Expand Up @@ -96,9 +97,18 @@
"nocreds",
"nodir",
"detok",
"qhdmceurtnlz",
"ngrok",
"obac"
"obac",
"siom",
"vaultid",
"recordss",
"synthesise",
"synthesised",
"deserialise",
"deserialised",
"unmodelled",
"recordss",
"rarr"
],
"languageSettings": [
{
Expand All @@ -118,7 +128,8 @@
"**/target/**",
"*.lock",
"Rule/**",
"src/main/java/com/skyflow/generated/**",
"**/src/main/java/com/skyflow/generated/**",
"**/generated/**",
"**/*.ts",
"**/processed-*",
"samples/src/main/java/com/example/credentials.json",
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
server-password: ${{ secrets.CENTRAL_PUBLISHER_PORTAL_PASSWORD }}
gpg-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.MAVEN_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 }}
PAT_ACTIONS: ${{ secrets.PAT_ACTIONS }}
test-credentials-file-string: ${{ secrets.TEST_CREDENTIALS_FILE_STRING }}
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,skyvault -am -DskipTests -Dmaven.javadoc.skip=true -Dgpg.skip=true

- name: Show API surface diff
if: failure()
run: |
echo "### API surface changes detected ###"
echo "See skyvault/target/japicmp/default-cli.diff for the full comparison against skyvault/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 skyvault/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: skyvault/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 -- skyvault/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 skyvault -Dmdep.outputFile=/tmp/skyvault-classpath.txt -Dmaven.javadoc.skip=true -Dgpg.skip=true
git show "origin/${{ github.event.pull_request.base.ref }}:skyvault/api-report/skyflow-java.baseline.jar" > /tmp/old-baseline.jar

java -jar /tmp/japicmp-cli.jar \
-o /tmp/old-baseline.jar \
-n skyvault/api-report/skyflow-java.baseline.jar \
-a protected \
-e "com.skyflow.generated.*;com.skyflow.utils.*" \
--old-classpath "$(cat /tmp/skyvault-classpath.txt)" \
--new-classpath "$(cat /tmp/skyvault-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 \`skyvault/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,
});
}
9 changes: 9 additions & 0 deletions .github/workflows/endorlabsScan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ jobs:
name: "credentials.json"
json: ${{ secrets.TEST_CREDENTIALS_FILE_STRING }}

- name: Distribute test fixtures to modules
run: |
# Surefire runs each module's tests with the module directory as the working
# directory, so dotenv and ./credentials.json lookups miss the repo-root copies.
for module in common skyvault flowvault; do
cp .env "$module/.env"
cp credentials.json "$module/credentials.json"
done

- name: Compile Package
run: mvn -B package -f pom.xml -Dmaven.javadoc.skip=true

Expand Down
27 changes: 23 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,39 @@ 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=skyvault" >> "$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 }}
PAT_ACTIONS: ${{ secrets.PAT_ACTIONS }}
test-credentials-file-string: ${{ secrets.TEST_CREDENTIALS_FILE_STRING }}
60 changes: 56 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,65 @@ jobs:
echo TEST_EXPIRED_TOKEN=${{ secrets.TEST_EXPIRED_TOKEN }} >> .env
echo TEST_REUSABLE_TOKEN=${{ secrets.TEST_REUSABLE_TOKEN }} >> .env

- name: Distribute test fixtures to modules
run: |
# Surefire runs each module's tests with the module directory as the working
# directory, so dotenv and ./credentials.json lookups miss the repo-root copies.
for module in common skyvault flowvault; do
cp .env "$module/.env"
cp credentials.json "$module/credentials.json"
done

- name: Build & Run tests with Maven
run: mvn -B package -f pom.xml -Dmaven.javadoc.skip=true

- name: Codecov
uses: codecov/codecov-action@v2.1.0
# JaCoCo records packages as "com/skyflow/..." with no module prefix, and all three
# modules share the com.skyflow package (deliberate split-package convention). So
# "com/skyflow/config/VaultConfig.java" matches BOTH skyvault and flowvault, Codecov
# resolves it to one of them, and the other module's file silently reports no data.
# Prefixing each report with its own source root makes every path unique and match the
# repo exactly, so all three modules' files are attributed correctly.
- name: Qualify JaCoCo report paths with their module
run: |
for module in common skyvault flowvault; do
report="$module/target/site/jacoco/jacoco.xml"
if [ ! -f "$report" ]; then
echo "Error: expected $report to exist after the build."
exit 1
fi
tmp="$(mktemp)"
sed "s|<package name=\"|<package name=\"$module/src/main/java/|g" "$report" > "$tmp"
mv "$tmp" "$report"
done

# One upload per module, each with its own flag, so Codecov reports per-module
# coverage instead of merging three same-named package trees into one number.
- name: Codecov (common)
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_REPO_UPLOAD_TOKEN }}
files: common/target/site/jacoco/jacoco.xml
flags: common
name: codecov-common
verbose: true
fail_ci_if_error: true

- name: Codecov (skyvault)
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_REPO_UPLOAD_TOKEN }}
files: skyvault/target/site/jacoco/jacoco.xml
flags: skyvault
name: codecov-skyvault
verbose: true
fail_ci_if_error: true

- name: Codecov (flowvault)
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_REPO_UPLOAD_TOKEN }}
files: target/site/jacoco/jacoco.xml
name: codecov-skyflow-java
files: flowvault/target/site/jacoco/jacoco.xml
flags: flowvault
name: codecov-flowvault
verbose: true
fail_ci_if_error: true
60 changes: 56 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,68 @@ jobs:
echo TEST_EXPIRED_TOKEN=${{ secrets.TEST_EXPIRED_TOKEN }} >> .env
echo TEST_REUSABLE_TOKEN=${{ secrets.TEST_REUSABLE_TOKEN }} >> .env

- name: Distribute test fixtures to modules
run: |
# Surefire runs each module's tests with the module directory as the working
# directory, so dotenv and ./credentials.json lookups miss the repo-root copies.
for module in common skyvault flowvault; do
cp .env "$module/.env"
cp credentials.json "$module/credentials.json"
done

- name: Build & Run tests with Maven
run: mvn -B package -f pom.xml -Dmaven.javadoc.skip=true

- name: Codecov
uses: codecov/codecov-action@v2.1.0
# JaCoCo records packages as "com/skyflow/..." with no module prefix, and all three
# modules share the com.skyflow package (deliberate split-package convention). So
# "com/skyflow/config/VaultConfig.java" matches BOTH skyvault and flowvault, Codecov
# resolves it to one of them, and the other module's file silently reports no data.
# Prefixing each report with its own source root makes every path unique and match the
# repo exactly, so all three modules' files are attributed correctly.
- name: Qualify JaCoCo report paths with their module
run: |
for module in common skyvault flowvault; do
report="$module/target/site/jacoco/jacoco.xml"
if [ ! -f "$report" ]; then
echo "Error: expected $report to exist after the build."
exit 1
fi
tmp="$(mktemp)"
sed "s|<package name=\"|<package name=\"$module/src/main/java/|g" "$report" > "$tmp"
mv "$tmp" "$report"
done

# One upload per module, each with its own flag, so Codecov reports per-module
# coverage instead of merging three same-named package trees into one number.
- name: Codecov (common)
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_REPO_UPLOAD_TOKEN }}
files: common/target/site/jacoco/jacoco.xml
flags: common
name: codecov-common
verbose: true
fail_ci_if_error: true

- name: Codecov (skyvault)
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_REPO_UPLOAD_TOKEN }}
files: skyvault/target/site/jacoco/jacoco.xml
flags: skyvault
name: codecov-skyvault
verbose: true
fail_ci_if_error: true

- name: Codecov (flowvault)
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_REPO_UPLOAD_TOKEN }}
files: target/site/jacoco/jacoco.xml
name: codecov-skyflow-java
files: flowvault/target/site/jacoco/jacoco.xml
flags: flowvault
name: codecov-flowvault
verbose: true
fail_ci_if_error: true

spellcheck:
name: Run spellcheck
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
server-password: ${{ secrets.CENTRAL_PUBLISHER_PORTAL_PASSWORD }}
gpg-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.MAVEN_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 }}
PAT_ACTIONS: ${{ secrets.PAT_ACTIONS }}
test-credentials-file-string: ${{ secrets.TEST_CREDENTIALS_FILE_STRING }}
Loading
Loading