Skip to content

Commit 700f03d

Browse files
piyushroshansoujanyanmbrimathew-josepushkarpawar15massey-n
authored
Create new release (#312)
* Support disabling wait-for * Init handling workshop service * Dependency handling community service * Lint * Handle health * Bump k8s-wait-for to v2.0 for arm64 (#256) * Bump k8s-wait-for to v2.0 for arm64 * Update certs * Update README.md (#257) * Correct training * Timeout handling for gateway (#259) Timeout handling for gateway * Update pr-build.yml * Make vin numbers to be VIN regex complaint (#261) * Fix VIN * add permissions pull request write --------- Co-authored-by: Roshan Piyush <[email protected]> * Make storage provisions configurable. (#263) Persistent volume helm configuration * Escaped validation for unsigned JWTs (#265) * added check for unsigned jwt * Change to typescript from js and show service request history (#269) * Use typescript * Fix bugs * lint * Convert more to typescript * More typescript * User service req view * Update dockerfile * Implement service history * Update docker-compose.yml * Implement report view (#270) * Update pr-build.yml * Change phone number feature (#268) * Added functionality to send otp for phone number change request --------- Co-authored-by: Roshan Piyush <[email protected]> * Phone number change web service (#271) * web service verify OTP impl * minor identity service changes --------- Co-authored-by: Roshan Piyush <[email protected]> * Mechanic ux (#281) * E2E-UI * Mechanic UX fixes * Fix profile pages * Update web and identity images (#282) * Fix convention * Enhanced README to Pull and Modify Variables in the .env file (#288) * enhanced readme * enhanced setup.md * enhanced setup.md * Update LICENSE.md * Update README.md * Update setup.md * Fix health of gateway image (#289) * Fix health of gateway image * Update docker compose * Fix filename typos in README.md (#290) The current name of the docker compose file is `docker-compose.yml`. The readme command examples indicated that the name was `docker compose.yml`. This commit updates all README cases of this error to reflect the actual name of the file, making the command functional again. * Update values-pv.yaml * Chatbot impl (#295) * Implement chatbot UI * added llm chatbot service (#242) * added llm chatbot service * Llm chatbot (#243) * removed unused imports * Integration * Lint * Minor fixes * Fix ssl issue * Fix docker * Fix entrypoint * increase timeout * Implement helm * Fix entrypoint * Store user state for chatbot * resolved segmentation fault error in chatbot (#245) * Add release workflow * Instructions * Fix tag publish * Strip tag prefix * String tag prefix for docker tags * Fix entrypoint.sh * Session based chat * Fix UI * Lint * Fix configmap * Update requirements * Fix dockerfile * Fix UX * Seperate prompts * Change to ChatOpenAI * Change to ChatOpenAI * Return messages * Save chat history * Cleanup * Cleanup * Preserve X-Forwarded-For * Add mongo dependency for chatbot * Use old turbo model * FSession logs not clearer debug * Add ssn * Fix gateway service health * Chatbot typescript * Upgrade packages * Dummy commit * Lint * lint * Reduce max mem * Update chatbot * Update chatbot * Potential fix for code scanning alert no. 21: Flask app is run in debug mode Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Chatbot mcp impl * spotless * Fix chatbot * Spotless * Fix usage * MCP server fix (#303) * Remove errors * Remove variables not needed * Add management scripts * Make executable * Fix config * Fix config * Add init for chatbot * Add retry for apikey * Add retry for apikey * Chatbot UX fix * update tool versions * Lint fix * Upgrade golangci-lint * Npm lint fix --------- Co-authored-by: Dhruv Singhal <[email protected]> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: keyurdoshi03 <[email protected]> * Update Chart.yaml * Update VERSION - Correct value (#305) Align VERSION file with release info. * Chatbot markdown (#308) * Bot support markdown in chat * Model selection implemented (#309) * Model selection implemented * Refactor: moved default model env variable to correct files * User context provided (#310) * Model selection implemented * Refactor: moved default model env variable to correct files * User context provided * Create challenges.md * Update challenges * Update challenges * lint * Implemented vector index and MCP tool for semantic search (#311) * Implemented vector index for chat history context and MCP tool for semantic search & summarization * Persisted storage of vectors using Chroma * JWT auth added for MCP server's api calls (#314) * JWT auth added for MCP server's api calls * Uxrevamp (#316) * Chroma fixes (#317) * Fix mcpserver * fix chatbot * Fix async calls * black * Http client fix * Fix async * Fix async * Upgrade chromadb * Fixes * Fix css of remaining components * Interaction fix * chat fix (#318) * chat fix * prettier formatting * LFI vuln (v1) (#319) * LFI vuln (v1) * Change log level for API key retrieval success * helm fixes (#320) * helm fixes * resolved comments --------- Co-authored-by: Namburi Soujanya <[email protected]> Co-authored-by: Mathew Jose Mammoottil <[email protected]> Co-authored-by: Pushkar Pawar <[email protected]> Co-authored-by: massey-n <[email protected]> Co-authored-by: Dhruv Singhal <[email protected]> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: keyurdoshi03 <[email protected]> Co-authored-by: Rick M <[email protected]>
1 parent 004fc32 commit 700f03d

File tree

286 files changed

+45741
-35576
lines changed

Some content is hidden

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

286 files changed

+45741
-35576
lines changed

.github/workflows/pr-build.yml

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
- 'deploy/**'
99
- '.github/workflows/**'
1010
workflow_dispatch:
11-
1211
jobs:
1312
build-context:
1413
runs-on: ubuntu-latest
@@ -22,6 +21,10 @@ jobs:
2221
runs-on: ubuntu-latest
2322
env:
2423
PLATFORMS: "linux/amd64,linux/arm64"
24+
permissions:
25+
pull-requests: write # Required to post comments
26+
contents: read
27+
checks: write
2528
steps:
2629
- name: Checkout code
2730
uses: actions/checkout@v4
@@ -32,6 +35,8 @@ jobs:
3235
- name: Get branch name
3336
id: branch-name
3437
uses: tj-actions/branch-names@v8
38+
with:
39+
strip_tag_prefix: 'v'
3540

3641
- name: Current branch name
3742
run: |
@@ -43,7 +48,7 @@ jobs:
4348
if: steps.branch-name.outputs.is_tag == 'true'
4449
run: |
4550
echo "TAG_NAME=${{ steps.branch-name.outputs.tag }}" >> ${GITHUB_ENV}
46-
echo "TAG_LATEST=latest" >> ${GITHUB_ENV}
51+
echo "TAG_LATEST=${{ steps.branch-name.outputs.tag }}" >> ${GITHUB_ENV}
4752
4853
- name: Running on a branch and merge.
4954
if: steps.branch-name.outputs.is_tag != 'true' && github.event_name == 'push' && steps.branch-name.outputs.current_branch != 'main'
@@ -93,6 +98,17 @@ jobs:
9398
cache-from: type=gha,scope=workshop-service
9499
cache-to: type=gha,mode=max,scope=workshop-service
95100

101+
- name: Build crapi-chatbot image
102+
uses: docker/build-push-action@v3
103+
with:
104+
context: ./services/chatbot
105+
tags: crapi/crapi-chatbot:${{ env.TAG_LATEST }},crapi/crapi-chatbot:${{ env.TAG_NAME }}
106+
push: false
107+
load: true
108+
platforms: linux/amd64
109+
cache-from: type=gha,scope==chatbot-service
110+
cache-to: type=gha,mode=max,scope=chatbot-service
111+
96112
- name: Build crapi-community image
97113
uses: docker/build-push-action@v3
98114
with:
@@ -146,10 +162,12 @@ jobs:
146162
- name: Cleanup docker before running
147163
if: always()
148164
continue-on-error: true
149-
run: docker-compose -f deploy/docker/docker-compose.yml down --volumes --remove-orphans
165+
run: docker compose -f deploy/docker/docker-compose.yml down --volumes --remove-orphans
150166

151167
- name: Run crAPI using built images
152-
run: VERSION=${{ env.TAG_NAME }} docker-compose -f deploy/docker/docker-compose.yml --compatibility up -d
168+
run: |
169+
cd deploy/docker
170+
VERSION=${{ env.TAG_NAME }} docker compose -f docker-compose.yml --compatibility up -d
153171
154172
- name: Install Node
155173
uses: actions/setup-node@v3
@@ -168,20 +186,24 @@ jobs:
168186

169187
- name: Cleanup docker
170188
if: always()
171-
run: docker-compose -f deploy/docker/docker-compose.yml down --volumes --remove-orphans
189+
run: docker compose -f deploy/docker/docker-compose.yml down --volumes --remove-orphans
172190

173191

174192
tests:
175193
needs: build-context
176194
runs-on: ubuntu-latest
195+
permissions:
196+
pull-requests: write
197+
contents: read
198+
checks: write
177199
steps:
178200
- name: Checkout code
179201
uses: actions/checkout@v4
180202

181203
- name: Setup Python
182204
uses: actions/setup-python@v5
183205
with:
184-
python-version: '3.10'
206+
python-version: '3.11'
185207

186208
- name: Setup Java
187209
uses: actions/setup-java@v4
@@ -192,10 +214,10 @@ jobs:
192214
- name: Setup Go
193215
uses: actions/setup-go@v5
194216
with:
195-
go-version: '1.21'
217+
go-version: '1.23'
196218

197219
- name: Start the database
198-
run: docker-compose -f services/docker-database.yml up -d
220+
run: docker compose -f services/docker-database.yml up -d
199221

200222
- name: Run identity tests
201223
run: |
@@ -210,12 +232,12 @@ jobs:
210232
go run gotest.tools/gotestsum@latest --format testname --junitfile test-results/unit-tests.xml
211233
212234
- name: golangci-lint
213-
uses: golangci/golangci-lint-action@v3
235+
uses: golangci/golangci-lint-action@v8.0.0
214236
with:
215237
# Require: The version of golangci-lint to use.
216238
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
217239
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
218-
version: v1.54
240+
version: v2.2.1
219241
working-directory: services/community
220242

221243

@@ -249,7 +271,7 @@ jobs:
249271
coverage xml -o coverage.xml
250272
251273
- name: Publish Coverage for workshop
252-
uses: orgoro/coverage@v3.1
274+
uses: orgoro/coverage@v3.2
253275
with:
254276
coverageFile: services/workshop/coverage.xml
255277
token: ${{ secrets.GITHUB_TOKEN }}
@@ -258,4 +280,4 @@ jobs:
258280
run: |
259281
cd services/web
260282
npm install
261-
npm run lint
283+
npm run lint

.github/workflows/publish.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737
- name: Get branch name
3838
id: branch-name
3939
uses: tj-actions/branch-names@v8
40+
with:
41+
strip_tag_prefix: 'v'
4042

4143
- name: Current branch name
4244
run: |
@@ -48,7 +50,7 @@ jobs:
4850
if: steps.branch-name.outputs.is_tag == 'true'
4951
run: |
5052
echo "TAG_NAME=${{ steps.branch-name.outputs.tag }}" >> ${GITHUB_ENV}
51-
echo "TAG_LATEST=latest" >> ${GITHUB_ENV}
53+
echo "TAG_LATEST=${{ steps.branch-name.outputs.tag }}" >> ${GITHUB_ENV}
5254
5355
- name: Running on a branch and merge.
5456
if: steps.branch-name.outputs.is_tag != 'true' && github.event_name == 'push' && steps.branch-name.outputs.current_branch != 'main'
@@ -102,6 +104,16 @@ jobs:
102104
cache-from: type=gha,scope=workshop-service
103105
cache-to: type=gha,mode=max,scope=workshop-service
104106

107+
- name: Build crapi-chatbot all platforms and push to Docker Hub
108+
uses: docker/build-push-action@v3
109+
with:
110+
context: ./services/chatbot
111+
tags: crapi/crapi-chatbot:${{ env.TAG_LATEST }},crapi/crapi-chatbot:${{ env.TAG_NAME }}
112+
platforms: ${{ env.PLATFORMS }}
113+
push: true
114+
cache-from: type=gha,scope=chatbot-service
115+
cache-to: type=gha,mode=max,scope=chatbot-service
116+
105117
- name: Build crapi-community all platforms and push to Docker Hub
106118
uses: docker/build-push-action@v3
107119
with:

0 commit comments

Comments
 (0)