From 97409944191c854021536e7fc6453ccefd2f8dce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tae0y=5B=EB=B0=95=ED=83=9C=EC=98=81=5D?= Date: Mon, 3 Nov 2025 21:52:39 +0900 Subject: [PATCH 1/7] =?UTF-8?q?Update=20azure-dev-build-only.yml=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=EC=9E=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/azure-dev-build-only.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/azure-dev-build-only.yml b/.github/workflows/azure-dev-build-only.yml index db847599..5598cf1f 100644 --- a/.github/workflows/azure-dev-build-only.yml +++ b/.github/workflows/azure-dev-build-only.yml @@ -86,4 +86,4 @@ jobs: run: | dotnet test ./test/OpenChat.PlaygroundApp.Tests \ --no-build --logger "trx" --collect:"XPlat Code Coverage" \ - --filter "Category=IntegrationTest & Category!=IgnoreGitHubActions & Category!=LLMRequired" + --filter "Category=IntegrationTest & Category!=IgnoreGitHubActions" From dddd642548bbf07653f9aeb5cbb002e47e5a25d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tae0y=5B=EB=B0=95=ED=83=9C=EC=98=81=5D?= Date: Mon, 3 Nov 2025 22:06:11 +0900 Subject: [PATCH 2/7] =?UTF-8?q?Update=20azure-dev.yml=20=EC=98=A4=EB=A5=98?= =?UTF-8?q?=EC=9E=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/azure-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/azure-dev.yml b/.github/workflows/azure-dev.yml index ea14a409..f689f833 100644 --- a/.github/workflows/azure-dev.yml +++ b/.github/workflows/azure-dev.yml @@ -96,7 +96,7 @@ jobs: run: | dotnet test ./test/OpenChat.PlaygroundApp.Tests -c Release \ --no-build --logger "trx" --collect:"XPlat Code Coverage" \ - --filter "Category=IntegrationTest & Category!=IgnoreGitHubActions & Category!=LLMRequired" + --filter "Category=IntegrationTest & Category!=IgnoreGitHubActions" - name: Log in to the Container registry uses: docker/login-action@v3 From 27e06bde21543e6a32a05271084598232165e7e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tae0y=5B=EB=B0=95=ED=83=9C=EC=98=81=5D?= Date: Mon, 3 Nov 2025 22:14:05 +0900 Subject: [PATCH 3/7] =?UTF-8?q?Update=20azure-dev.yml=20=EB=B3=91=EB=A0=AC?= =?UTF-8?q?=EA=B1=B4=EC=88=98=20=EC=A0=9C=ED=95=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/azure-dev.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/azure-dev.yml b/.github/workflows/azure-dev.yml index f689f833..db6525b4 100644 --- a/.github/workflows/azure-dev.yml +++ b/.github/workflows/azure-dev.yml @@ -96,7 +96,8 @@ jobs: run: | dotnet test ./test/OpenChat.PlaygroundApp.Tests -c Release \ --no-build --logger "trx" --collect:"XPlat Code Coverage" \ - --filter "Category=IntegrationTest & Category!=IgnoreGitHubActions" + --filter "Category=IntegrationTest & Category!=IgnoreGitHubActions" \ + --degree-of-parallelism 2 - name: Log in to the Container registry uses: docker/login-action@v3 From cf4c3323d0b21e60ce93709270ad7d4122c935bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tae0y=5B=EB=B0=95=ED=83=9C=EC=98=81=5D?= Date: Mon, 3 Nov 2025 22:48:23 +0900 Subject: [PATCH 4/7] =?UTF-8?q?Update=20github=20actions=20-=20dev-build,?= =?UTF-8?q?=20dev=20actions=20=EC=88=98=EC=A0=95=20-=20LLMRequired?= =?UTF-8?q?=EC=99=80=20=EA=B7=B8=EB=A0=87=EC=A7=80=20=EC=95=8A=EC=9D=80=20?= =?UTF-8?q?=EA=B2=83=EC=9C=BC=EB=A1=9C=20=EB=8B=A8=EA=B3=84=20=EB=B6=84?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/azure-dev-build-only.yml | 9 ++++++++- .github/workflows/azure-dev.yml | 10 ++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/azure-dev-build-only.yml b/.github/workflows/azure-dev-build-only.yml index 5598cf1f..3b9f34c4 100644 --- a/.github/workflows/azure-dev-build-only.yml +++ b/.github/workflows/azure-dev-build-only.yml @@ -86,4 +86,11 @@ jobs: run: | dotnet test ./test/OpenChat.PlaygroundApp.Tests \ --no-build --logger "trx" --collect:"XPlat Code Coverage" \ - --filter "Category=IntegrationTest & Category!=IgnoreGitHubActions" + --filter "Category=IntegrationTest & Category!=IgnoreGitHubActions & Category!=LLMRequired" + + - name: Run LLMRequired integration tests + shell: bash + run: | + dotnet test ./test/OpenChat.PlaygroundApp.Tests \ + --no-build --logger "trx" --collect:"XPlat Code Coverage" \ + --filter "Category=IntegrationTest & Category!=IgnoreGitHubActions & Category=LLMRequired" \ No newline at end of file diff --git a/.github/workflows/azure-dev.yml b/.github/workflows/azure-dev.yml index db6525b4..3d43fd01 100644 --- a/.github/workflows/azure-dev.yml +++ b/.github/workflows/azure-dev.yml @@ -96,8 +96,14 @@ jobs: run: | dotnet test ./test/OpenChat.PlaygroundApp.Tests -c Release \ --no-build --logger "trx" --collect:"XPlat Code Coverage" \ - --filter "Category=IntegrationTest & Category!=IgnoreGitHubActions" \ - --degree-of-parallelism 2 + --filter "Category=IntegrationTest & Category!=IgnoreGitHubActions & Category!=LLMRequired" + + - name: Run LLMRequired integration tests + shell: bash + run: | + dotnet test ./test/OpenChat.PlaygroundApp.Tests \ + --no-build --logger "trx" --collect:"XPlat Code Coverage" \ + --filter "Category=IntegrationTest & Category!=IgnoreGitHubActions & Category=LLMRequired" - name: Log in to the Container registry uses: docker/login-action@v3 From db39497293712f1dc171a6eb7d661c973fea3be0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tae0y=5B=EB=B0=95=ED=83=9C=EC=98=81=5D?= Date: Mon, 3 Nov 2025 23:04:43 +0900 Subject: [PATCH 5/7] =?UTF-8?q?Update=20github=20actions=20-=20dev=20actio?= =?UTF-8?q?ns=20=EC=88=98=EC=A0=95,=20deploy=20step=20=EA=B0=81=EC=A3=BC?= =?UTF-8?q?=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/azure-dev.yml | 119 ++++++++++++++++---------------- 1 file changed, 61 insertions(+), 58 deletions(-) diff --git a/.github/workflows/azure-dev.yml b/.github/workflows/azure-dev.yml index 3d43fd01..db0417f1 100644 --- a/.github/workflows/azure-dev.yml +++ b/.github/workflows/azure-dev.yml @@ -105,61 +105,64 @@ jobs: --no-build --logger "trx" --collect:"XPlat Code Coverage" \ --filter "Category=IntegrationTest & Category!=IgnoreGitHubActions & Category=LLMRequired" - - name: Log in to the Container registry - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@v5 - with: - images: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/${{ env.IMAGE_NAME }} - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Build and push Docker image - id: push - uses: docker/build-push-action@v6 - with: - platforms: linux/amd64,linux/arm64 - push: true - context: ${{ github.workspace }} - file: ${{ github.workspace }}/Dockerfile - tags: '${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.REPOSITORY }}/${{ env.IMAGE_NAME }}:latest' - labels: ${{ steps.meta.outputs.labels }} - - - name: Generate artifact attestation - uses: actions/attest-build-provenance@v2 - with: - subject-name: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/${{ env.IMAGE_NAME }} - subject-digest: ${{ steps.push.outputs.digest }} - push-to-registry: true - - - name: Install azd - uses: Azure/setup-azd@v2 - - - name: Log in with Azure - shell: pwsh - run: | - azd auth login ` - --client-id "$env:AZURE_CLIENT_ID" ` - --federated-credential-provider "github" ` - --tenant-id "$env:AZURE_TENANT_ID" - - - name: Provision Infrastructure - shell: bash - env: - GitHubModels__Token: ${{ env.GH_MODELS_TOKEN }} - Anthropic__ApiKey: ${{ env.ANTHROPIC_API_KEY }} - OpenAI__ApiKey: ${{ env.OPENAI_API_KEY }} - run: | - azd provision --no-prompt - - - name: Deploy Application - shell: bash - run: | - azd deploy --no-prompt +# -*-*- Deployment steps are commented out for testing purposes -*-*- +# +# - name: Log in to the Container registry +# uses: docker/login-action@v3 +# with: +# registry: ${{ env.REGISTRY }} +# username: ${{ github.actor }} +# password: ${{ secrets.GITHUB_TOKEN }} +# +# - name: Extract metadata (tags, labels) for Docker +# id: meta +# uses: docker/metadata-action@v5 +# with: +# images: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/${{ env.IMAGE_NAME }} +# +# - name: Set up Docker Buildx +# uses: docker/setup-buildx-action@v3 +# +# - name: Build and push Docker image +# id: push +# uses: docker/build-push-action@v6 +# with: +# platforms: linux/amd64,linux/arm64 +# push: true +# context: ${{ github.workspace }} +# file: ${{ github.workspace }}/Dockerfile +# tags: '${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.REPOSITORY }}/${{ env.IMAGE_NAME }}:latest' +# labels: ${{ steps.meta.outputs.labels }} +# +# - name: Generate artifact attestation +# uses: actions/attest-build-provenance@v2 +# with: +# subject-name: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/${{ env.IMAGE_NAME }} +# subject-digest: ${{ steps.push.outputs.digest }} +# push-to-registry: true +# +# - name: Install azd +# uses: Azure/setup-azd@v2 +# +# - name: Log in with Azure +# shell: pwsh +# run: | +# azd auth login ` +# --client-id "$env:AZURE_CLIENT_ID" ` +# --federated-credential-provider "github" ` +# --tenant-id "$env:AZURE_TENANT_ID" +# +# - name: Provision Infrastructure +# shell: bash +# env: +# GitHubModels__Token: ${{ env.GH_MODELS_TOKEN }} +# Anthropic__ApiKey: ${{ env.ANTHROPIC_API_KEY }} +# OpenAI__ApiKey: ${{ env.OPENAI_API_KEY }} +# run: | +# azd provision --no-prompt +# +# - name: Deploy Application +# shell: bash +# run: | +# azd deploy --no-prompt +# \ No newline at end of file From 08f1bbec4b12472419ec309f23bd5a83d870f199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tae0y=5B=EB=B0=95=ED=83=9C=EC=98=81=5D?= Date: Mon, 3 Nov 2025 23:13:19 +0900 Subject: [PATCH 6/7] =?UTF-8?q?Update=20github=20actions=20-=20dev=20actio?= =?UTF-8?q?ns=20-C=20Release=20=EC=8A=A4=EC=9C=84=EC=B9=98=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/azure-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/azure-dev.yml b/.github/workflows/azure-dev.yml index db0417f1..c3d189a8 100644 --- a/.github/workflows/azure-dev.yml +++ b/.github/workflows/azure-dev.yml @@ -101,7 +101,7 @@ jobs: - name: Run LLMRequired integration tests shell: bash run: | - dotnet test ./test/OpenChat.PlaygroundApp.Tests \ + dotnet test ./test/OpenChat.PlaygroundApp.Tests -c Release \ --no-build --logger "trx" --collect:"XPlat Code Coverage" \ --filter "Category=IntegrationTest & Category!=IgnoreGitHubActions & Category=LLMRequired" From dbc1385aa02c162b1c259712eaf9857f31d95684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tae0y=5B=EB=B0=95=ED=83=9C=EC=98=81=5D?= Date: Tue, 4 Nov 2025 21:45:58 +0900 Subject: [PATCH 7/7] =?UTF-8?q?Update=20azure-dev.yml=20-=20=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=EC=9A=A9=20=EA=B0=81=EC=A3=BC=20=ED=95=B4?= =?UTF-8?q?=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/azure-dev.yml | 119 ++++++++++++++++---------------- 1 file changed, 58 insertions(+), 61 deletions(-) diff --git a/.github/workflows/azure-dev.yml b/.github/workflows/azure-dev.yml index c3d189a8..3264058e 100644 --- a/.github/workflows/azure-dev.yml +++ b/.github/workflows/azure-dev.yml @@ -105,64 +105,61 @@ jobs: --no-build --logger "trx" --collect:"XPlat Code Coverage" \ --filter "Category=IntegrationTest & Category!=IgnoreGitHubActions & Category=LLMRequired" -# -*-*- Deployment steps are commented out for testing purposes -*-*- -# -# - name: Log in to the Container registry -# uses: docker/login-action@v3 -# with: -# registry: ${{ env.REGISTRY }} -# username: ${{ github.actor }} -# password: ${{ secrets.GITHUB_TOKEN }} -# -# - name: Extract metadata (tags, labels) for Docker -# id: meta -# uses: docker/metadata-action@v5 -# with: -# images: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/${{ env.IMAGE_NAME }} -# -# - name: Set up Docker Buildx -# uses: docker/setup-buildx-action@v3 -# -# - name: Build and push Docker image -# id: push -# uses: docker/build-push-action@v6 -# with: -# platforms: linux/amd64,linux/arm64 -# push: true -# context: ${{ github.workspace }} -# file: ${{ github.workspace }}/Dockerfile -# tags: '${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.REPOSITORY }}/${{ env.IMAGE_NAME }}:latest' -# labels: ${{ steps.meta.outputs.labels }} -# -# - name: Generate artifact attestation -# uses: actions/attest-build-provenance@v2 -# with: -# subject-name: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/${{ env.IMAGE_NAME }} -# subject-digest: ${{ steps.push.outputs.digest }} -# push-to-registry: true -# -# - name: Install azd -# uses: Azure/setup-azd@v2 -# -# - name: Log in with Azure -# shell: pwsh -# run: | -# azd auth login ` -# --client-id "$env:AZURE_CLIENT_ID" ` -# --federated-credential-provider "github" ` -# --tenant-id "$env:AZURE_TENANT_ID" -# -# - name: Provision Infrastructure -# shell: bash -# env: -# GitHubModels__Token: ${{ env.GH_MODELS_TOKEN }} -# Anthropic__ApiKey: ${{ env.ANTHROPIC_API_KEY }} -# OpenAI__ApiKey: ${{ env.OPENAI_API_KEY }} -# run: | -# azd provision --no-prompt -# -# - name: Deploy Application -# shell: bash -# run: | -# azd deploy --no-prompt -# \ No newline at end of file + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/${{ env.IMAGE_NAME }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and push Docker image + id: push + uses: docker/build-push-action@v6 + with: + platforms: linux/amd64,linux/arm64 + push: true + context: ${{ github.workspace }} + file: ${{ github.workspace }}/Dockerfile + tags: '${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.REPOSITORY }}/${{ env.IMAGE_NAME }}:latest' + labels: ${{ steps.meta.outputs.labels }} + + - name: Generate artifact attestation + uses: actions/attest-build-provenance@v2 + with: + subject-name: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/${{ env.IMAGE_NAME }} + subject-digest: ${{ steps.push.outputs.digest }} + push-to-registry: true + + - name: Install azd + uses: Azure/setup-azd@v2 + + - name: Log in with Azure + shell: pwsh + run: | + azd auth login ` + --client-id "$env:AZURE_CLIENT_ID" ` + --federated-credential-provider "github" ` + --tenant-id "$env:AZURE_TENANT_ID" + + - name: Provision Infrastructure + shell: bash + env: + GitHubModels__Token: ${{ env.GH_MODELS_TOKEN }} + Anthropic__ApiKey: ${{ env.ANTHROPIC_API_KEY }} + OpenAI__ApiKey: ${{ env.OPENAI_API_KEY }} + run: | + azd provision --no-prompt + + - name: Deploy Application + shell: bash + run: | + azd deploy --no-prompt