Skip to content

Commit 07919b5

Browse files
authored
Merge branch 'main' into agent-workflow-examples
2 parents 64c8b0e + b9150cb commit 07919b5

File tree

311 files changed

+26996
-8032
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

311 files changed

+26996
-8032
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,13 @@ body:
4646
- Java and Maven version via `mvn --version`: ...
4747
- SAP Cloud SDK for AI version: ...
4848
- Spring Boot or CAP version: ...
49-
- <details><summary>Dependency tree via `mvn dependency:tree`</summary>
50-
51-
```
52-
Dependency tree here
53-
```
54-
</details>
49+
50+
<details><summary>Dependency tree via <code>mvn dependency:tree</code></summary>
51+
52+
```
53+
Dependency tree here
54+
```
55+
</details>
5556
validations:
5657
required: true
5758
- type: textarea

.github/workflows/continuous-integration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
7373
- name: "Slack Notification"
7474
if: ${{ github.ref == 'refs/heads/main' && failure() }}
75-
uses: slackapi/[email protected].0
75+
uses: slackapi/[email protected].1
7676
with:
7777
webhook: ${{ secrets.SLACK_WEBHOOK }}
7878
webhook-type: incoming-webhook

.github/workflows/deploy-snapshot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040

4141
- name: "Slack Notification"
4242
if: failure()
43-
uses: slackapi/[email protected].0
43+
uses: slackapi/[email protected].1
4444
with:
4545
webhook: ${{ secrets.SLACK_WEBHOOK }}
4646
webhook-type: incoming-webhook

.github/workflows/e2e-test.yaml

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,25 @@ jobs:
3939
mvn $MVN_ARGS
4040
4141
- name: "Run tests"
42+
id: run_tests
4243
run: |
4344
MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} surefire:test -pl :spring-app -DskipTests=false"
44-
mvn $MVN_ARGS "-Daicore.landscape=${{ matrix.environment }}"
45+
mvn $MVN_ARGS "-Daicore.landscape=${{ matrix.environment }}" | tee mvn_output.log # tee writes to both the console and a file
46+
47+
awk '/Results:/, /----/' mvn_output.log > test_error.log || true # true ensures the step doesn't fail if no match is found.
48+
ERROR_MSG=$(cat test_error.log | tail +4 | head -n -4 | awk '{gsub(/"/, "\\\""); printf "%s\\n", $0}') # Slack formatting
49+
echo "$ERROR_MSG"
50+
echo "error_message=$ERROR_MSG" >> $GITHUB_OUTPUT
51+
52+
if grep -q "BUILD FAILURE" mvn_output.log; then
53+
echo "Maven build failed."
54+
exit 1
55+
elif grep -q "BUILD SUCCESS" mvn_output.log; then
56+
echo "Maven build succeeded."
57+
else
58+
echo "Maven build status unknown."
59+
exit 1
60+
fi
4561
env:
4662
# See "End-to-end test application instructions" on the README.md to update the secret
4763
AICORE_SERVICE_KEY: ${{ secrets[matrix.secret-name] }}
@@ -69,12 +85,17 @@ jobs:
6985

7086
- name: "Slack Notification"
7187
if: failure()
72-
uses: slackapi/[email protected].0
88+
uses: slackapi/[email protected].1
7389
with:
7490
webhook: ${{ secrets.SLACK_WEBHOOK }}
7591
webhook-type: incoming-webhook
7692
payload: |
77-
{
78-
"text": "⚠️ End-to-end tests failed! 😬 Please inspect & fix by clicking <https://github.com/SAP/ai-sdk-java/actions/runs/${{ github.run_id }}|here>"
79-
}
80-
93+
blocks:
94+
- type: "section"
95+
text:
96+
type: "mrkdwn"
97+
text: "⚠️ End-to-end tests failed! 😬 Please inspect & fix by clicking <https://github.com/SAP/ai-sdk-java/actions/runs/${{ github.run_id }}|here>"
98+
- type: "section"
99+
text:
100+
type: "plain_text"
101+
text: "${{ steps.run_tests.outputs.error_message }}"

.github/workflows/fosstars-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676

7777
- name: "Slack Notification"
7878
if: failure()
79-
uses: slackapi/[email protected].0
79+
uses: slackapi/[email protected].1
8080
with:
8181
webhook: ${{ secrets.SLACK_WEBHOOK }}
8282
webhook-type: incoming-webhook

.github/workflows/spec-update.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
required: false
1010
options:
1111
- core
12-
- grounding
12+
- document-grounding
1313
- orchestration
1414
- prompt-registry
1515
default: orchestration
@@ -83,12 +83,12 @@ jobs:
8383
API_URL="$API_BASE_URL/cloudsdk/cloud-sdk-java-tests/contents/aicore.yaml?ref=$REF"
8484
FILE_PATH='core/src/main/resources/spec/aicore.yaml'
8585
;;
86-
grounding)
86+
document-grounding)
8787
API_URL="$API_BASE_URL/AI/rage-proxy-inference/contents/docs/public/business_api_hub/api_hub_merged_spec.yaml?ref=$REF"
8888
FILE_PATH='core-services/document-grounding/src/main/resources/spec/grounding.yaml'
8989
;;
9090
orchestration)
91-
API_URL="$API_BASE_URL/AI/llm-orchestration/contents/src/spec/api.yaml?ref=$REF"
91+
API_URL="$API_BASE_URL/AI/llm-orchestration/contents/src/spec/v2.yaml?ref=$REF"
9292
FILE_PATH='orchestration/src/main/resources/spec/orchestration.yaml'
9393
;;
9494
prompt-registry)

.github/workflows/weekly-spec-update.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
matrix:
1313
file:
1414
- core
15-
- grounding
15+
- document-grounding
1616
- prompt-registry
1717

1818
steps:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ The following table lists the required versions, based on the latest release:
4545
| SAP Cloud SDK | 5.6.0 | latest |
4646
| (optional) CAP Java | 3.0.0 | latest |
4747
| (optional) Spring Boot | 3.0 | latest |
48+
| (optional) Spring AI | 1.0.0 | latest |
4849

4950
See [an example `pom.xml` in our Spring Boot application](sample-code/spring-app/pom.xml).
5051

core-services/document-grounding/pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.sap.ai.sdk</groupId>
66
<artifactId>sdk-parent</artifactId>
7-
<version>1.9.0-SNAPSHOT</version>
7+
<version>1.10.0-SNAPSHOT</version>
88
<relativePath>../../pom.xml</relativePath>
99
</parent>
1010
<artifactId>document-grounding</artifactId>
@@ -30,6 +30,11 @@
3030
<organizationUrl>https://www.sap.com</organizationUrl>
3131
</developer>
3232
</developers>
33+
<scm>
34+
<connection>scm:git:git://github.com/SAP/ai-sdk-java.git</connection>
35+
<developerConnection>scm:git:ssh://github.com:SAP/ai-sdk-java.git</developerConnection>
36+
<url>https://github.com/SAP/ai-sdk-java/tree/main</url>
37+
</scm>
3338
<properties>
3439
<project.rootdir>${project.basedir}/../../</project.rootdir>
3540
<coverage.complexity>80%</coverage.complexity>

0 commit comments

Comments
 (0)