-
Notifications
You must be signed in to change notification settings - Fork 227
Quarkus + Langchain4j Dapr Workflows extension + Agent registry #1693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
salaboy
wants to merge
13
commits into
dapr:master
Choose a base branch
from
salaboy:1688-langchain4j
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
9943d89
initial commit with quarkus modules
salaboy eee2076
chore: Removed unused protos (#1690)
javier-aliaga 5478a02
fixing checkstyle and deps
salaboy ffb8a17
updating checkstyle and tests paths
salaboy ad054ec
renaming file
salaboy 32b5bb9
fixing spotbugs and adding exclusions
salaboy 8fa3e89
Add baggage support (#1659)
siri-varma 91384b7
using new protos
salaboy 0777814
quarkus readme
salaboy c216390
Merge branch 'master' into 1688-langchain4j
salaboy 6fdb204
fix(registry): add team index for dapr-agents compatibility
javier-aliaga 3bf62ab
chore(quarkus): decouple version from SDK for independent releases
javier-aliaga 57dc653
ci(quarkus): add independent build/release workflows
javier-aliaga File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| name: Quarkus Agentic Build | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: | ||
| - master | ||
| - release-quarkus-* | ||
| paths: | ||
| - 'quarkus/**' | ||
| tags: | ||
| - quarkus-v* | ||
|
|
||
| pull_request: | ||
| branches: | ||
| - master | ||
| - release-quarkus-* | ||
| paths: | ||
| - 'quarkus/**' | ||
|
|
||
| jobs: | ||
| build: | ||
| name: "Build & Test" | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| env: | ||
| JDK_VER: 17 | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: Set up OpenJDK ${{ env.JDK_VER }} | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: ${{ env.JDK_VER }} | ||
| - name: Build quarkus modules | ||
| run: | | ||
| cd quarkus | ||
| ../mvnw clean install -B -q -DskipITs=true | ||
| - name: Upload test reports | ||
| if: always() | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: quarkus-test-reports | ||
| path: quarkus/**/target/surefire-reports/ | ||
|
|
||
| publish: | ||
| runs-on: ubuntu-latest | ||
| needs: [ build ] | ||
| timeout-minutes: 30 | ||
| env: | ||
| JDK_VER: 17 | ||
| OSSRH_USER_TOKEN: ${{ secrets.OSSRH_USER_TOKEN }} | ||
| OSSRH_PWD_TOKEN: ${{ secrets.OSSRH_PWD_TOKEN }} | ||
| GPG_KEY: ${{ secrets.GPG_KEY }} | ||
| GPG_PWD: ${{ secrets.GPG_PWD }} | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: Set up OpenJDK ${{ env.JDK_VER }} | ||
| uses: actions/setup-java@v5 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: ${{ env.JDK_VER }} | ||
| - name: Get quarkus version | ||
| run: | | ||
| QUARKUS_VERSION=$(./mvnw -B -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec -f quarkus/pom.xml) | ||
| echo "QUARKUS_VERSION=$QUARKUS_VERSION" >> $GITHUB_ENV | ||
| - name: Is SNAPSHOT release ? | ||
| if: contains(github.ref, 'master') && contains(env.QUARKUS_VERSION, '-SNAPSHOT') | ||
| run: | | ||
| echo "DEPLOY_OSSRH=true" >> $GITHUB_ENV | ||
| - name: Is Release version ? | ||
| if: startsWith(github.ref, 'refs/tags/quarkus-v') && !contains(env.QUARKUS_VERSION, '-SNAPSHOT') | ||
| run: | | ||
| echo "DEPLOY_OSSRH=true" >> $GITHUB_ENV | ||
| - name: Publish to ossrh | ||
| if: env.DEPLOY_OSSRH == 'true' | ||
| run: | | ||
| echo ${{ secrets.GPG_PRIVATE_KEY }} | base64 -d > private-key.gpg | ||
| export GPG_TTY=$(tty) | ||
| gpg --batch --import private-key.gpg | ||
| cd quarkus | ||
| ../mvnw -V -B -Dgpg.skip=false -DskipTests -s ../settings.xml deploy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| name: Quarkus Agentic Release | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| rel_version: | ||
| description: 'Release version (examples: 0.1.0, 0.2.0-rc-1, 0.2.0-SNAPSHOT)' | ||
| required: true | ||
| type: string | ||
|
|
||
| jobs: | ||
| create-release: | ||
| name: Creates quarkus release tag | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| JDK_VER: '17' | ||
| steps: | ||
| - name: Check out code | ||
| uses: actions/checkout@v5 | ||
| with: | ||
| fetch-depth: 0 | ||
| token: ${{ secrets.DAPR_BOT_TOKEN }} | ||
| persist-credentials: false | ||
| - name: Set up OpenJDK ${{ env.JDK_VER }} | ||
| uses: actions/setup-java@v5 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: ${{ env.JDK_VER }} | ||
| - name: Update quarkus version and tag | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.DAPR_BOT_TOKEN }} | ||
| run: | | ||
| set -ue | ||
| REL_VERSION="${{ inputs.rel_version }}" | ||
|
|
||
| git config user.email "daprweb@microsoft.com" | ||
| git config user.name "Dapr Bot" | ||
| git remote set-url origin https://x-access-token:${{ secrets.DAPR_BOT_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git | ||
|
|
||
| # Update version in all quarkus pom.xml files | ||
| cd quarkus | ||
| ../mvnw versions:set -DnewVersion=$REL_VERSION -DprocessDependencies=true | ||
| cd .. | ||
|
|
||
| if [[ "$REL_VERSION" == *-SNAPSHOT ]]; then | ||
| git commit -s -m "Update quarkus version to ${REL_VERSION}" -a | ||
| git push origin master | ||
| echo "Updated master with quarkus version ${REL_VERSION}." | ||
| else | ||
| git commit -s -m "Release quarkus-v${REL_VERSION}" -a | ||
| git tag "quarkus-v${REL_VERSION}" | ||
| git push origin master | ||
| git push origin "quarkus-v${REL_VERSION}" | ||
| echo "Tagged and pushed quarkus-v${REL_VERSION}." | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new module should be independent from dapr-sdk and have its own release process
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can send this code to quarkus-Dapr. @yaron2 which comments, can you be more specific?