Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
if: ${{ matrix.format }}
run: ./gradlew verifyPython
- name: Build with Gradle
env:
DJL_COMPILE_JAVA: "true"
run: ./gradlew --refresh-dependencies build :jacoco:testCodeCoverageReport --stacktrace
- name: Upload test results
uses: actions/upload-artifact@v7
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/optimization_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ jobs:
IMAGE_REPO: ${{ inputs.image-repo }}
CONTAINER: "lmi"
run: |
SERVING_VERSION=${TEST_SERVING_VERSION:-"0.36.0"}
SERVING_VERSION=${TEST_SERVING_VERSION:-"0.38.0"}
SERVING_VERSION=$(echo $SERVING_VERSION | xargs) # trim whitespace

if [ -n "$OVERRIDE_TEST_CONTAINER" ]; then
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
format.version = "1.1"

[versions]
djl = "0.36.0"
serving = "0.36.0"
djl = "0.38.0"
serving = "0.38.0"
onnxruntime = "1.20.0"
commonsCli = "1.9.0"
commonsCodec = "1.18.0"
Expand Down
10 changes: 10 additions & 0 deletions serving/src/test/java/ai/djl/serving/WorkflowTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import org.apache.commons.cli.CommandLine;
import org.testng.Assert;
import org.testng.SkipException;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.Test;

Expand Down Expand Up @@ -70,6 +71,15 @@ public void testCriteria() throws IOException, BadWorkflowException {

@Test
public void testFunctions() throws IOException, BadWorkflowException {
// functions.json declares a custom WorkflowFunction that ships as a bundled .java source
// under workflows/libs/classes, so this test needs DJL to compile it at load time. That
// is opt-in as of DJL 0.37.0, so skip unless the opt-in is set.
boolean envOptIn = Boolean.parseBoolean(Utils.getenv("DJL_COMPILE_JAVA", "false"));
boolean propOptIn =
Boolean.parseBoolean(System.getProperty("ai.djl.compile_java", "false"));
if (!envOptIn && !propOptIn) {
throw new SkipException("Java compilation is disabled");
}
Path workflowFile = Paths.get("src/test/resources/workflows/functions.json");
runWorkflow(workflowFile, zeroInput);
}
Expand Down
Loading