-
Notifications
You must be signed in to change notification settings - Fork 888
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,235 changed files
with
85,017 additions
and
146,172 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,22 +1,29 @@ | ||
{ | ||
"name": "Promptflow-Python39", | ||
// "context" is the path that the Codespaces docker build command should be run from, relative to devcontainer.json | ||
"context": ".", | ||
"dockerFile": "Dockerfile", | ||
|
||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash" | ||
}, | ||
|
||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-toolsai.vscode-ai", | ||
"ms-toolsai.jupyter", | ||
"redhat.vscode-yaml", | ||
"prompt-flow.prompt-flow" | ||
], | ||
|
||
"runArgs": ["-v", "/var/run/docker.sock:/var/run/docker.sock"] | ||
"name": "Promptflow-Python39", | ||
// "context" is the path that the Codespaces docker build command should be run from, relative to devcontainer.json | ||
"context": ".", | ||
"dockerFile": "Dockerfile", | ||
"runArgs": ["-v", "/var/run/docker.sock:/var/run/docker.sock"], | ||
"customizations": { | ||
"codespaces": { | ||
"openFiles": ["README.md", "examples/README.md"] | ||
}, | ||
"vscode": { | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash" | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-toolsai.vscode-ai", | ||
"ms-toolsai.jupyter", | ||
"redhat.vscode-yaml", | ||
"prompt-flow.prompt-flow" | ||
] | ||
} | ||
}, | ||
"features": { | ||
"ghcr.io/devcontainers/features/azure-cli: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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
azure-cli | ||
promptflow[azure] | ||
promptflow[azure]>=1.9.0 | ||
promptflow-tools |
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1,34 +1,47 @@ | ||
# CAUTION: Order is important; the LAST matching pattern takes the most precedence. | ||
# So put outside folders first, and then inside folders. | ||
# Don't change the sequence of the regions. | ||
|
||
* @microsoft/prompt-flow-approvers | ||
|
||
/src/promptflow-tracing/promptflow/tracing/_start_trace.py @microsoft/promptflow-sdk | ||
# 1. Folders | ||
/src/promptflow/ @microsoft/promptflow-sdk | ||
/src/promptflow-tracing/ @microsoft/promptflow-execution | ||
/src/promptflow-core/ @microsoft/promptflow-sdk | ||
/src/promptflow-devkit/ @microsoft/promptflow-sdk | ||
/src/promptflow-azure/ @microsoft/promptflow-sdk | ||
/src/promptflow-recording/ @microsoft/promptflow-sdk | ||
/src/promptflow-evals/ @microsoft/pf-eval-team-contributor | ||
/src/promptflow-rag/ @microsoft/promptflow-rag | ||
|
||
/scripts/docs/ @microsoft/promptflow-sdk | ||
/scripts/installer/ @microsoft/promptflow-sdk | ||
/scripts/json_schema/ @microsoft/promptflow-sdk | ||
/scripts/readme/ @microsoft/promptflow-sdk | ||
|
||
/src/promptflow-tools/ @microsoft/promptflow-tools | ||
/scripts/tool/ @microsoft/promptflow-tools | ||
/examples/tools/ @microsoft/promptflow-tools | ||
|
||
# 2. Subfolders | ||
/src/promptflow-tracing/promptflow/tracing/ @microsoft/promptflow-execution | ||
/src/promptflow-core/promptflow/_core/ @microsoft/promptflow-execution | ||
/src/promptflow-devkit/promptflow/_internal/ @microsoft/promptflow-execution | ||
/src/promptflow-devkit/promptflow/batch/ @microsoft/promptflow-execution | ||
/src/promptflow-devkit/promptflow/_proxy/ @microsoft/promptflow-execution | ||
/src/promptflow-core/promptflow/executor/ @microsoft/promptflow-execution | ||
/src/promptflow-core/promptflow/integrations/ @microsoft/promptflow-execution | ||
/src/promptflow-core/promptflow/storage/ @microsoft/promptflow-execution | ||
/src/promptflow-devkit/promptflow/_sdk/_mlflow.py @brynn-code | ||
/src/promptflow-devkit/promptflow/_internal/ @microsoft/promptflow-execution | ||
/src/promptflow-devkit/promptflow/batch/ @microsoft/promptflow-execution | ||
/src/promptflow/tests/executor/ @microsoft/promptflow-execution | ||
|
||
/src/promptflow-core/promptflow/core/ @microsoft/promptflow-sdk | ||
/src/promptflow-devkit/promptflow/_cli/ @microsoft/promptflow-sdk | ||
/src/promptflow-devkit/promptflow/_sdk/ @microsoft/promptflow-sdk | ||
/src/promptflow-devkit/promptflow/_proxy/ @microsoft/promptflow-sdk | ||
/src/promptflow-devkit/promptflow/entities/ @microsoft/promptflow-sdk | ||
/src/promptflow-devkit/promptflow/operations/ @microsoft/promptflow-sdk | ||
/src/promptflow-azure/promptflow/azure/ @microsoft/promptflow-sdk | ||
/src/promptflow-devkit/promptflow/_proxy/ @microsoft/promptflow-execution @microsoft/promptflow-sdk | ||
|
||
/src/promptflow/tests/sdk_cli_test/ @microsoft/promptflow-sdk | ||
/src/promptflow/tests/sdk_cli_azure_test/ @microsoft/promptflow-sdk | ||
/src/promptflow/tests/sdk_cli_global_config_test/ @microsoft/promptflow-sdk | ||
/src/promptflow/tests/sdk_pfs_test/ @microsoft/promptflow-sdk | ||
/scripts/docs/ @microsoft/promptflow-sdk | ||
/scripts/installer/ @microsoft/promptflow-sdk | ||
/scripts/json_schema/ @microsoft/promptflow-sdk | ||
/scripts/readme/ @microsoft/promptflow-sdk | ||
/src/promptflow/tests/executor/_prompty_executor.py @microsoft/promptflow-execution @microsoft/promptflow-sdk | ||
/src/promptflow/tests/executor/_script_executor.py @microsoft/promptflow-execution @microsoft/promptflow-sdk | ||
/src/promptflow-tracing/promptflow/tracing/_start_trace.py @microsoft/promptflow-sdk | ||
|
||
/docs/how-to-guides/develop-a-tool/ @microsoft/promptflow-tools | ||
/src/promptflow-tools/ @microsoft/promptflow-tools | ||
/examples/tools/ @microsoft/promptflow-tools | ||
/scripts/tool/ @microsoft/promptflow-tools |
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
55 changes: 55 additions & 0 deletions
55
.github/pipelines/promptflow-csharp-e2e-test-env-setup.yml
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
parameters: | ||
- name: promptflowCsPat | ||
displayName: "PAT to clone csharp repository" | ||
type: string | ||
- name: flowProjectRelativePath | ||
displayName: "Flow Project Relative Path" | ||
type: string | ||
|
||
steps: | ||
- task: UseDotNet@2 | ||
inputs: | ||
version: '6.x' | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '3.9.x' | ||
architecture: 'x64' | ||
|
||
- task: PowerShell@2 | ||
displayName: 'Install promptflow cli' | ||
inputs: | ||
targetType: 'inline' | ||
script: | | ||
Set-PSDebug -Trace 1 | ||
pip install -r src/promptflow/dev_requirements.txt | ||
pip install src/promptflow-tracing | ||
pip install src/promptflow-core[executor-service] | ||
pip install src/promptflow-devkit | ||
pip install src/promptflow-azure | ||
pip install src/promptflow-recording | ||
pip freeze | ||
- task: PowerShell@2 | ||
displayName: 'Clone csharp repository' | ||
inputs: | ||
targetType: 'inline' | ||
script: | | ||
git clone https://$(PROMPTFLOW_CS_PAT)@dev.azure.com/msdata/Vienna/_git/PromptflowCS csharp | ||
- task: NuGetAuthenticate@1 | ||
|
||
- task: DotNetCoreCLI@2 | ||
inputs: | ||
command: 'restore' | ||
projects: '$(flowProjectRelativePath)/**/*.csproj' | ||
feedsToUse: 'config' | ||
nugetConfigPath: '$(flowProjectRelativePath)/nuget.config' | ||
displayName: 'dotnet restore' | ||
|
||
- task: DotNetCoreCLI@2 | ||
inputs: | ||
command: 'build' | ||
projects: '$(flowProjectRelativePath)/**/*.csproj' | ||
feedsToUse: 'config' | ||
nugetConfigPath: '$(flowProjectRelativePath)/nuget.config' | ||
displayName: 'dotnet build' |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
parameters: | ||
- name: azureOpenAiApiKey | ||
displayName: "Azure OpenAI API Key" | ||
type: string | ||
- name: azureOpenAiApiBase | ||
displayName: "Azure OpenAI API Base" | ||
type: string | ||
- name: flowProjectRelativePath | ||
displayName: "Flow Project Relative Path" | ||
type: string | ||
|
||
steps: | ||
- task: PowerShell@2 | ||
displayName: 'Copy local connections for ci pipeline' | ||
inputs: | ||
targetType: 'inline' | ||
script: | | ||
Copy-Item dev-connections.json.example connections.json | ||
workingDirectory: $(Build.SourcesDirectory)/src/promptflow | ||
|
||
- task: PowerShell@2 | ||
displayName: 'Run sdk cli tests' | ||
inputs: | ||
targetType: 'inline' | ||
script: | | ||
pytest tests/ -m "csharp" | ||
workingDirectory: $(Build.SourcesDirectory)/src/promptflow-devkit | ||
env: | ||
CSHARP_TEST_PROJECTS_ROOT: $(Build.SourcesDirectory)/$(flowProjectRelativePath) | ||
AZURE_OPENAI_API_KEY: $(azureOpenAiApiKey) | ||
AZURE_OPENAI_ENDPOINT: $(azureOpenAiApiBase) | ||
IS_IN_CI_PIPELINE: true | ||
|
||
- task: PowerShell@2 | ||
displayName: 'Run azure sdk cli tests' | ||
inputs: | ||
targetType: 'inline' | ||
script: | | ||
pytest tests/sdk_cli_azure_test/e2etests/test_csharp_sdk.py | ||
workingDirectory: $(Build.SourcesDirectory)/src/promptflow-azure | ||
env: | ||
CSHARP_TEST_PROJECTS_ROOT: $(Build.SourcesDirectory)/$(flowProjectRelativePath) | ||
AZURE_OPENAI_API_KEY: $(azureOpenAiApiKey) | ||
AZURE_OPENAI_ENDPOINT: $(azureOpenAiApiBase) | ||
PROMPT_FLOW_TEST_MODE: "replay" | ||
IS_IN_CI_PIPELINE: true |
Oops, something went wrong.