-
Notifications
You must be signed in to change notification settings - Fork 48
Add Orchestrator ci to run other ci #184
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
Merged
Merged
Changes from 2 commits
Commits
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
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
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
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,158 @@ | ||
| # Copyright (c) Microsoft Corporation. | ||
| # Licensed under the MIT License. | ||
|
|
||
| name: CI Orchestrator | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main, master] | ||
| pull_request: | ||
| branches: [main, master] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| # Detect which folders have changes | ||
| detect-changes: | ||
| name: Detect Changes | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| dotnet-agentframework: ${{ steps.changes.outputs.dotnet-agentframework }} | ||
| dotnet-semantickernel: ${{ steps.changes.outputs.dotnet-semantickernel }} | ||
| nodejs-claude: ${{ steps.changes.outputs.nodejs-claude }} | ||
| nodejs-langchain: ${{ steps.changes.outputs.nodejs-langchain }} | ||
| nodejs-openai: ${{ steps.changes.outputs.nodejs-openai }} | ||
| nodejs-vercelsdk: ${{ steps.changes.outputs.nodejs-vercelsdk }} | ||
| python-agentframework: ${{ steps.changes.outputs.python-agentframework }} | ||
| python-googleadk: ${{ steps.changes.outputs.python-googleadk }} | ||
| python-openai: ${{ steps.changes.outputs.python-openai }} | ||
| python-claude: ${{ steps.changes.outputs.python-claude }} | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Check for changes | ||
| uses: dorny/paths-filter@v3 | ||
| id: changes | ||
| with: | ||
| filters: | | ||
| dotnet-agentframework: | ||
| - 'dotnet/agent-framework/**' | ||
| dotnet-semantickernel: | ||
| - 'dotnet/semantic-kernel/**' | ||
| nodejs-claude: | ||
| - 'nodejs/claude/**' | ||
| nodejs-langchain: | ||
| - 'nodejs/langchain/**' | ||
| nodejs-openai: | ||
| - 'nodejs/openai/**' | ||
| nodejs-vercelsdk: | ||
| - 'nodejs/vercel-sdk/**' | ||
| python-agentframework: | ||
| - 'python/agent-framework/**' | ||
| python-googleadk: | ||
| - 'python/google-adk/**' | ||
| python-openai: | ||
| - 'python/openai/**' | ||
| python-claude: | ||
| - 'python/claude/**' | ||
|
|
||
| # .NET Jobs - Call existing workflows | ||
| dotnet-agentframework: | ||
| name: .NET Agent Framework | ||
| needs: detect-changes | ||
| if: needs.detect-changes.outputs.dotnet-agentframework == 'true' | ||
| uses: ./.github/workflows/ci-dotnet-agentframework-sampleagent.yml | ||
|
|
||
| dotnet-semantickernel: | ||
| name: .NET Semantic Kernel | ||
| needs: detect-changes | ||
| if: needs.detect-changes.outputs.dotnet-semantickernel == 'true' | ||
| uses: ./.github/workflows/ci-dotnet-semantickernel-sampleagent.yml | ||
|
|
||
| # Node.js Jobs - Call existing workflows | ||
| nodejs-claude: | ||
| name: Node.js Claude | ||
| needs: detect-changes | ||
| if: needs.detect-changes.outputs.nodejs-claude == 'true' | ||
| uses: ./.github/workflows/ci-nodejs-claude-sampleagent.yml | ||
|
|
||
| nodejs-langchain: | ||
| name: Node.js LangChain | ||
| needs: detect-changes | ||
| if: needs.detect-changes.outputs.nodejs-langchain == 'true' | ||
| uses: ./.github/workflows/ci-nodejs-langchain-sampleagent.yml | ||
|
|
||
| nodejs-openai: | ||
| name: Node.js OpenAI | ||
| needs: detect-changes | ||
| if: needs.detect-changes.outputs.nodejs-openai == 'true' | ||
| uses: ./.github/workflows/ci-nodejs-openai-sampleagent.yml | ||
|
|
||
| nodejs-vercelsdk: | ||
| name: Node.js Vercel SDK | ||
| needs: detect-changes | ||
| if: needs.detect-changes.outputs.nodejs-vercelsdk == 'true' | ||
| uses: ./.github/workflows/ci-nodejs-vercelsdk-sampleagent.yml | ||
|
|
||
| # Python Jobs - Call existing workflows | ||
| python-agentframework: | ||
| name: Python Agent Framework | ||
| needs: detect-changes | ||
| if: needs.detect-changes.outputs.python-agentframework == 'true' | ||
| uses: ./.github/workflows/ci-python-agentframework-sampleagent.yml | ||
|
|
||
| python-googleadk: | ||
| name: Python Google ADK | ||
| needs: detect-changes | ||
| if: needs.detect-changes.outputs.python-googleadk == 'true' | ||
| uses: ./.github/workflows/ci-python-googleadk-sampleagent.yml | ||
|
|
||
| python-openai: | ||
| name: Python OpenAI | ||
| needs: detect-changes | ||
| if: needs.detect-changes.outputs.python-openai == 'true' | ||
| uses: ./.github/workflows/ci-python-openai-sampleagent.yml | ||
|
|
||
| python-claude: | ||
| name: Python Claude | ||
| needs: detect-changes | ||
| if: needs.detect-changes.outputs.python-claude == 'true' | ||
| uses: ./.github/workflows/python-claude-sample.yml | ||
|
|
||
| # Final status check - ALWAYS runs and reports success | ||
| # This is the ONLY check you need to mark as "Required" in branch protection | ||
| ci-status: | ||
| name: CI Status | ||
| runs-on: ubuntu-latest | ||
| needs: | ||
| - detect-changes | ||
| - dotnet-agentframework | ||
| - dotnet-semantickernel | ||
| - nodejs-claude | ||
| - nodejs-langchain | ||
| - nodejs-openai | ||
| - nodejs-vercelsdk | ||
| - python-agentframework | ||
| - python-googleadk | ||
| - python-openai | ||
| - python-claude | ||
| if: always() | ||
| steps: | ||
| - name: Check CI Status | ||
| run: | | ||
| echo "Checking CI job results..." | ||
|
|
||
| # Get all job results (skipped jobs are fine, failed jobs are not) | ||
| results="${{ needs.dotnet-agentframework.result }} ${{ needs.dotnet-semantickernel.result }} ${{ needs.nodejs-claude.result }} ${{ needs.nodejs-langchain.result }} ${{ needs.nodejs-openai.result }} ${{ needs.nodejs-vercelsdk.result }} ${{ needs.python-agentframework.result }} ${{ needs.python-googleadk.result }} ${{ needs.python-openai.result }} ${{ needs.python-claude.result }}" | ||
|
|
||
| echo "Job results: $results" | ||
|
|
||
| # Check if any job failed | ||
| if echo "$results" | grep -q "failure"; then | ||
|
rahuldevikar761 marked this conversation as resolved.
Outdated
|
||
| echo "❌ One or more CI jobs failed" | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "✅ All CI jobs passed (or were skipped because no relevant changes)" | ||
15 changes: 5 additions & 10 deletions
15
.github/workflows/ci-python-agentframework-sampleagent.yml
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.