-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into supkasar-patch-2
- Loading branch information
Showing
839 changed files
with
26,700 additions
and
8,783 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 |
---|---|---|
|
@@ -41,6 +41,12 @@ const codeOwnerMap = new Map([ | |
["notification-http-timer-trigger-isolated", "[email protected]"], | ||
["notification-http-trigger-isolated", "[email protected]"], | ||
["notification-timer-trigger-isolated", "[email protected]"], | ||
["custom-copilot-assistant-assistants-api", "[email protected]"], | ||
["custom-copilot-assistant-new", "[email protected]"], | ||
["custom-copilot-basic", "[email protected]"], | ||
["custom-copilot-rag-custom-api", "[email protected]"], | ||
["api-plugin-from-scratch", "[email protected]"], | ||
["api-message-extension-sso", "[email protected]"], | ||
]); | ||
|
||
async function getTemplatesDependencies() { | ||
|
This file contains 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 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 |
---|---|---|
|
@@ -212,7 +212,7 @@ jobs: | |
path: packages/tests/src/e2e/resource | ||
|
||
- name: Download samples(rc) | ||
if: github.event_name == 'workflow_dispatch' && startsWith(matrix.cases, './samples/') && contains(matrix.cases, 'ProactiveMessage') == false && contains(matrix.cases, 'SignatureOutlook') == false | ||
if: github.event_name == 'workflow_dispatch' && startsWith(matrix.cases, './samples/') && contains(matrix.cases, 'ProactiveMessage') == false && contains(matrix.cases, 'SignatureOutlook') == false && contains(matrix.cases, 'ChefBot') == false | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: OfficeDev/TeamsFx-Samples | ||
|
@@ -235,6 +235,14 @@ jobs: | |
ref: main | ||
path: packages/tests/src/e2e/resource | ||
|
||
- name: Download samples from ai repo | ||
if: startsWith(matrix.cases, './samples/') && contains(matrix.cases, 'ChefBot') | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: microsoft/teams-ai | ||
ref: main | ||
path: packages/tests/src/e2e/resource | ||
|
||
- name: run test | ||
working-directory: packages/tests/src/e2e | ||
run: | | ||
|
@@ -426,7 +434,7 @@ jobs: | |
failed=$((failed+1)) | ||
label="<span style=\\\"background-color: #dc322f;color:white;font-weight:bold;\\\">FAILED</span>" | ||
if [[ ! -z "$email" && ! "$emails" == *"$email"* ]]; then | ||
emails="$emails;$email;[email protected]" | ||
emails="$emails;$email;[email protected];[email protected]" | ||
fi | ||
elif [[ ! -z `echo $test | jq 'select(.skipped==true)'` || ! -z `echo $test | jq 'select(.pending==true)'` ]]; then | ||
skipped=$((skipped+1)) | ||
|
This file contains 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 |
---|---|---|
|
@@ -28,16 +28,17 @@ jobs: | |
with: | ||
script: | | ||
const AZDO_TICKET_REGEX = 'https:\/\/(dev\.azure\.com\/msazure|msazure\.visualstudio\.com)\/Microsoft%20Teams%20Extensibility'; | ||
const AZDO_TICKET_REGEX_WXP = 'https:\/\/office\.visualstudio\.com\/OC'; | ||
const pullRequest = context.payload.pull_request; | ||
if(pullRequest.title.startsWith("feat")) { | ||
const body = pullRequest.body; | ||
const match = body?.match(AZDO_TICKET_REGEX); | ||
const match = body?.match(AZDO_TICKET_REGEX) || body?.match(AZDO_TICKET_REGEX_WXP); | ||
if(!match) { | ||
core.setFailed("Feat PR should contains AZDO tickets"); | ||
} | ||
} else if(pullRequest.title.startsWith("fix")) { | ||
const body = pullRequest.body; | ||
const match = body?.match(AZDO_TICKET_REGEX); | ||
const match = body?.match(AZDO_TICKET_REGEX) || body?.match(AZDO_TICKET_REGEX_WXP); | ||
if(!match && !body) { | ||
core.setFailed("Fix PR should contains AZDO tickets or descrptions"); | ||
} | ||
|
@@ -131,7 +132,7 @@ jobs: | |
then | ||
for obj in "$YMLTPL" | ||
do | ||
mustache test.json $obj | yamllint - | ||
mustache test.json $obj | yamllint -d "{extends: relaxed, rules: {line-length: {max: 100}}}" - | ||
done | ||
fi | ||
|
@@ -189,11 +190,6 @@ jobs: | |
- name: Get branch name | ||
id: branch-name | ||
uses: tj-actions/branch-names@v7 | ||
- name: Add Pull Request Reviewer | ||
uses: AveryCameronUofR/[email protected] | ||
with: | ||
reviewers: "MuyangAmigo" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: check origin or remote | ||
id: remote | ||
run: | | ||
|
This file contains 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 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 |
---|---|---|
|
@@ -64,9 +64,9 @@ jobs: | |
ADO_TOKEN: ${{ secrets.ADO_PAT }} | ||
AUTO_TEST_PLAN_ID: ${{ github.event.inputs.source-testplan-id }} | ||
TARGET_TEST_PLAN_NAME: ${{ github.event.inputs.target-testplan-name }} | ||
AZURE_CLIENT_ID: ${{ secrets.TEST_AZURE_CLIENT_ID }} | ||
AZURE_CLIENT_SECRET: ${{ secrets.TEST_AZURE_CLIENT_SECRET }} | ||
AZURE_TENANT_ID: ${{ secrets.TEST_TENANT_ID }} | ||
DEVTUNNEL_CLIENT_ID: ${{ secrets.TEST_CLEAN_CLIENT_ID }} | ||
DEVTUNNEL_CLIENT_SECRET: ${{ secrets.TEST_CLEAN_CLIENT_SECRET }} | ||
DEVTUNNEL_TENANT_ID: ${{ secrets.TEST_CLEAN_TENANT_ID }} | ||
|
||
steps: | ||
- name: Init GitHub CLI | ||
|
@@ -158,6 +158,7 @@ jobs: | |
run: | | ||
pnpm install | ||
testplanid=`npx ts-node src/scripts/testPlan.ts obtain vscode ${{ github.event.inputs.target-testplan-name }}` | ||
echo "Testplan id is $testplanid" | ||
npx ts-node src/scripts/testPlan.ts archive $testplanid | ||
- name: Upload testplan to artifact | ||
|
@@ -171,7 +172,7 @@ jobs: | |
- name: clean devtunnel | ||
run: | | ||
curl -sL https://aka.ms/DevTunnelCliInstall | bash | ||
~/bin/devtunnel user login --sp-tenant-id ${{env.AZURE_TENANT_ID}} --sp-client-id ${{env.AZURE_CLIENT_ID}} --sp-secret ${{env.AZURE_CLIENT_SECRET}} | ||
~/bin/devtunnel user login --sp-tenant-id ${{env.DEVTUNNEL_TENANT_ID}} --sp-client-id ${{env.DEVTUNNEL_CLIENT_ID}} --sp-secret ${{env.DEVTUNNEL_CLIENT_SECRET}} | ||
~/bin/devtunnel delete-all -f | ||
outputs: | ||
|
@@ -198,8 +199,9 @@ jobs: | |
CLEAN_CLIENT_ID: ${{ secrets.TEST_CLEAN_CLIENT_ID }} | ||
CLEAN_TENANT_ID: ${{ secrets.TEST_CLEAN_TENANT_ID }} | ||
|
||
AZURE_CLIENT_ID: ${{ secrets.TEST_AZURE_CLIENT_ID }} | ||
AZURE_CLIENT_SECRET: ${{ secrets.TEST_AZURE_CLIENT_SECRET }} | ||
DEVTUNNEL_CLIENT_ID: ${{ secrets.TEST_CLEAN_CLIENT_ID }} | ||
DEVTUNNEL_CLIENT_SECRET: ${{ secrets.TEST_CLEAN_CLIENT_SECRET }} | ||
DEVTUNNEL_TENANT_ID: ${{ secrets.TEST_CLEAN_TENANT_ID }} | ||
|
||
M365_ACCOUNT_PASSWORD: ${{ secrets.TEST_M365_PASSWORD }} | ||
M365_USERNAME: "[email protected]" | ||
|
@@ -270,7 +272,7 @@ jobs: | |
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' | ||
run: | | ||
curl -sL https://aka.ms/DevTunnelCliInstall | bash | ||
~/bin/devtunnel user login --sp-tenant-id ${{env.AZURE_TENANT_ID}} --sp-client-id ${{env.AZURE_CLIENT_ID}} --sp-secret ${{env.AZURE_CLIENT_SECRET}} | ||
~/bin/devtunnel user login --sp-tenant-id ${{env.DEVTUNNEL_TENANT_ID}} --sp-client-id ${{env.DEVTUNNEL_CLIENT_ID}} --sp-secret ${{env.DEVTUNNEL_CLIENT_SECRET}} | ||
- name: Install devtunnel (windows) | ||
if: matrix.os == 'windows-latest' | ||
|
@@ -280,7 +282,7 @@ jobs: | |
$currentDirectory = (Get-Location).Path | ||
$executablePath = Join-Path $currentDirectory "devtunnel.exe" | ||
[System.Environment]::SetEnvironmentVariable("Path", "$currentPath;$executablePath", [System.EnvironmentVariableTarget]::Machine) | ||
./devtunnel user login --sp-tenant-id ${{env.AZURE_TENANT_ID}} --sp-client-id ${{env.AZURE_CLIENT_ID}} --sp-secret ${{env.AZURE_CLIENT_SECRET}} | ||
./devtunnel user login --sp-tenant-id ${{env.DEVTUNNEL_TENANT_ID}} --sp-client-id ${{env.DEVTUNNEL_CLIENT_ID}} --sp-secret ${{env.DEVTUNNEL_CLIENT_SECRET}} | ||
- name: Downgrade PowerShell (win) | ||
if: matrix.os == 'windows-latest' | ||
|
@@ -357,7 +359,7 @@ jobs: | |
path: ./packages/tests/resource | ||
|
||
- name: Download samples | ||
if: startsWith(matrix.test-case, 'sample-') && contains(matrix.test-case, 'proactive-message') == false && contains(matrix.test-case, 'upgrade') == false | ||
if: startsWith(matrix.test-case, 'sample-') && contains(matrix.test-case, 'proactive-message') == false && contains(matrix.test-case, 'upgrade') == false && contains(matrix.test-case, 'chef-bot') == false | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: OfficeDev/TeamsFx-Samples | ||
|
@@ -372,6 +374,14 @@ jobs: | |
ref: main | ||
path: ./packages/tests/resource | ||
|
||
- name: Download samples chef bot | ||
if: contains(matrix.test-case, 'chef-bot') | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: microsoft/teams-ai | ||
ref: main | ||
path: ./packages/tests/resource | ||
|
||
- name: Get VSCode & chromedriver | ||
working-directory: packages/tests | ||
run: | | ||
|
@@ -564,7 +574,7 @@ jobs: | |
status=`echo $jobs | jq --arg case "$case" -r '.[] | select(.name == $case ) | .conclusion'` | ||
if [[ ! -z "$email" && ! "$emails" == *"$email"* && "$status" == "failure" ]]; then | ||
emails="$emails;$email;[email protected]" | ||
emails="$emails;$email;[email protected];[email protected]" | ||
fi | ||
status=`echo $jobs | jq --arg case "$case" -r '.[] | select(.name == $case ) | .conclusion'` | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 |
---|---|---|
|
@@ -36,9 +36,6 @@ Telemetry collection is on by default. To opt out, please add the global option | |
|
||
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments. | ||
|
||
## Extensibility Model | ||
|
||
Teams Toolkit CLI depends on [fx-core](/packages/fx-core) and [api](/packages/api) packages. [fx-core](/packages/fx-core) is designed to be extensible. See [EXTENSIBILITY.md](/packages/api/EXTENSIBILITY.md) for more information. | ||
|
||
## Contributing | ||
|
||
|
This file contains 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.