From 404bce1467bc47f7e2732f9a020c43b3d48cd49c Mon Sep 17 00:00:00 2001 From: Han Wang Date: Thu, 26 Oct 2023 19:04:34 +0800 Subject: [PATCH] [Sample]update sample env var to filter out sample data in telemetry (#927) # Description Please add an informative description that covers that changes made by the pull request and link all relevant issues. # All Promptflow Contribution checklist: - [ ] **The pull request does not introduce [breaking changes].** - [ ] **CHANGELOG is updated for new features, bug fixes or other significant changes.** - [ ] **I have read the [contribution guidelines](../CONTRIBUTING.md).** - [ ] **Create an issue and link to the pull request to get dedicated review from promptflow team. Learn more: [suggested workflow](../CONTRIBUTING.md#suggested-workflow).** ## General Guidelines and Best Practices - [ ] Title of the pull request is clear and informative. - [ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, [see this page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md). ### Testing Guidelines - [ ] Pull request includes test coverage for the included changes. --- .github/workflows/samples_configuration.yml | 3 +++ .github/workflows/samples_connections.yml | 3 +++ .github/workflows/samples_connections_connection.yml | 3 +++ .github/workflows/samples_flowinpipeline_pipeline.yml | 3 +++ .github/workflows/samples_flows_chat_basic_chat.yml | 3 +++ .github/workflows/samples_flows_chat_chat_with_pdf.yml | 3 +++ .../workflows/samples_flows_chat_chat_with_wikipedia.yml | 3 +++ .../samples_flows_chat_chatwithpdf_chatwithpdf.yml | 3 +++ .../samples_flows_chat_chatwithpdf_chatwithpdfazure.yml | 3 +++ .../workflows/samples_flows_evaluation_eval_basic.yml | 3 +++ ...les_flows_evaluation_eval_classification_accuracy.yml | 3 +++ .../samples_flows_evaluation_eval_entity_match_rate.yml | 3 +++ .../samples_flows_evaluation_eval_groundedness.yml | 3 +++ ...ples_flows_evaluation_eval_perceived_intelligence.yml | 3 +++ .../samples_flows_standard_autonomous_agent.yml | 3 +++ .github/workflows/samples_flows_standard_basic.yml | 3 +++ .../samples_flows_standard_basic_with_builtin_llm.yml | 3 +++ .../samples_flows_standard_basic_with_connection.yml | 3 +++ ...mples_flows_standard_conditional_flow_for_if_else.yml | 3 +++ ...amples_flows_standard_conditional_flow_for_switch.yml | 3 +++ ...samples_flows_standard_customer_intent_extraction.yml | 3 +++ ...ples_flows_standard_flow_with_additional_includes.yml | 3 +++ .../samples_flows_standard_flow_with_symlinks.yml | 3 +++ .../workflows/samples_flows_standard_gen_docstring.yml | 3 +++ .../workflows/samples_flows_standard_maths_to_code.yml | 3 +++ .../samples_flows_standard_named_entity_recognition.yml | 3 +++ .../samples_flows_standard_web_classification.yml | 3 +++ .github/workflows/samples_getstarted_quickstart.yml | 3 +++ .github/workflows/samples_getstarted_quickstartazure.yml | 3 +++ .../samples_runmanagement_cloudrunmanagement.yml | 3 +++ .../workflows/samples_runmanagement_runmanagement.yml | 3 +++ ...amples_tools_use_cases_flow_with_enabled_by_value.yml | 3 +++ .../samples_tutorials_e2e_development_chat_with_pdf.yml | 3 +++ .../samples_tutorials_flow_deploy_azure_app_service.yml | 3 +++ ...als_flow_deploy_distribute_flow_as_executable_app.yml | 9 ++++++--- .../workflows/samples_tutorials_flow_deploy_docker.yml | 3 +++ .../samples_tutorials_flow_deploy_kubernetes.yml | 3 +++ .../workflow_templates/workflow_skeleton.yml.jinja2 | 3 +++ 38 files changed, 117 insertions(+), 3 deletions(-) diff --git a/.github/workflows/samples_configuration.yml b/.github/workflows/samples_configuration.yml index be3365ab4ae..2c66dc64d4a 100644 --- a/.github/workflows/samples_configuration.yml +++ b/.github/workflows/samples_configuration.yml @@ -12,6 +12,9 @@ on: paths: [ examples/**, examples/*requirements.txt, .github/workflows/samples_configuration.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_notebook_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_connections.yml b/.github/workflows/samples_connections.yml index 8942eaf6d6d..bf38934b8e8 100644 --- a/.github/workflows/samples_connections.yml +++ b/.github/workflows/samples_connections.yml @@ -12,6 +12,9 @@ on: paths: [ examples/connections/**, examples/*requirements.txt, .github/workflows/samples_connections.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_connections_connection.yml b/.github/workflows/samples_connections_connection.yml index 033eddb32a3..75f2d7af61a 100644 --- a/.github/workflows/samples_connections_connection.yml +++ b/.github/workflows/samples_connections_connection.yml @@ -12,6 +12,9 @@ on: paths: [ examples/connections/**, examples/*requirements.txt, .github/workflows/samples_connections_connection.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_notebook_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flowinpipeline_pipeline.yml b/.github/workflows/samples_flowinpipeline_pipeline.yml index 4699878019b..a5f8585fa81 100644 --- a/.github/workflows/samples_flowinpipeline_pipeline.yml +++ b/.github/workflows/samples_flowinpipeline_pipeline.yml @@ -12,6 +12,9 @@ on: paths: [ examples/**, .github/workflows/samples_flowinpipeline_pipeline.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_notebook_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_chat_basic_chat.yml b/.github/workflows/samples_flows_chat_basic_chat.yml index 34384f0797b..11b21a0e33d 100644 --- a/.github/workflows/samples_flows_chat_basic_chat.yml +++ b/.github/workflows/samples_flows_chat_basic_chat.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/chat/basic-chat/**, examples/*requirements.txt, .github/workflows/samples_flows_chat_basic_chat.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_chat_chat_with_pdf.yml b/.github/workflows/samples_flows_chat_chat_with_pdf.yml index f72b12f8ab7..f143187efd2 100644 --- a/.github/workflows/samples_flows_chat_chat_with_pdf.yml +++ b/.github/workflows/samples_flows_chat_chat_with_pdf.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/chat/chat-with-pdf/**, examples/*requirements.txt, .github/workflows/samples_flows_chat_chat_with_pdf.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_chat_chat_with_wikipedia.yml b/.github/workflows/samples_flows_chat_chat_with_wikipedia.yml index f8e9e148641..51409085719 100644 --- a/.github/workflows/samples_flows_chat_chat_with_wikipedia.yml +++ b/.github/workflows/samples_flows_chat_chat_with_wikipedia.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/chat/chat-with-wikipedia/**, examples/*requirements.txt, .github/workflows/samples_flows_chat_chat_with_wikipedia.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_chat_chatwithpdf_chatwithpdf.yml b/.github/workflows/samples_flows_chat_chatwithpdf_chatwithpdf.yml index afebca7d8f1..b4b8a230bee 100644 --- a/.github/workflows/samples_flows_chat_chatwithpdf_chatwithpdf.yml +++ b/.github/workflows/samples_flows_chat_chatwithpdf_chatwithpdf.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/chat/chat-with-pdf/**, examples/*requirements.txt, .github/workflows/samples_flows_chat_chatwithpdf_chatwithpdf.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_notebook_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_chat_chatwithpdf_chatwithpdfazure.yml b/.github/workflows/samples_flows_chat_chatwithpdf_chatwithpdfazure.yml index 4c07d3de868..edd2f5a7c72 100644 --- a/.github/workflows/samples_flows_chat_chatwithpdf_chatwithpdfazure.yml +++ b/.github/workflows/samples_flows_chat_chatwithpdf_chatwithpdfazure.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/chat/chat-with-pdf/**, examples/*requirements.txt, .github/workflows/samples_flows_chat_chatwithpdf_chatwithpdfazure.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_notebook_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_evaluation_eval_basic.yml b/.github/workflows/samples_flows_evaluation_eval_basic.yml index 9767fb4293d..7c16034ae47 100644 --- a/.github/workflows/samples_flows_evaluation_eval_basic.yml +++ b/.github/workflows/samples_flows_evaluation_eval_basic.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/evaluation/eval-basic/**, examples/*requirements.txt, .github/workflows/samples_flows_evaluation_eval_basic.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_evaluation_eval_classification_accuracy.yml b/.github/workflows/samples_flows_evaluation_eval_classification_accuracy.yml index 69312ee9ed9..d1fb6a31ca2 100644 --- a/.github/workflows/samples_flows_evaluation_eval_classification_accuracy.yml +++ b/.github/workflows/samples_flows_evaluation_eval_classification_accuracy.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/evaluation/eval-classification-accuracy/**, examples/*requirements.txt, .github/workflows/samples_flows_evaluation_eval_classification_accuracy.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_evaluation_eval_entity_match_rate.yml b/.github/workflows/samples_flows_evaluation_eval_entity_match_rate.yml index 7923c278536..a03ed64590d 100644 --- a/.github/workflows/samples_flows_evaluation_eval_entity_match_rate.yml +++ b/.github/workflows/samples_flows_evaluation_eval_entity_match_rate.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/evaluation/eval-entity-match-rate/**, examples/*requirements.txt, .github/workflows/samples_flows_evaluation_eval_entity_match_rate.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_evaluation_eval_groundedness.yml b/.github/workflows/samples_flows_evaluation_eval_groundedness.yml index d99c086ed49..74d2d5a58ee 100644 --- a/.github/workflows/samples_flows_evaluation_eval_groundedness.yml +++ b/.github/workflows/samples_flows_evaluation_eval_groundedness.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/evaluation/eval-groundedness/**, examples/*requirements.txt, .github/workflows/samples_flows_evaluation_eval_groundedness.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_evaluation_eval_perceived_intelligence.yml b/.github/workflows/samples_flows_evaluation_eval_perceived_intelligence.yml index 53b84efc377..d97e0156d3e 100644 --- a/.github/workflows/samples_flows_evaluation_eval_perceived_intelligence.yml +++ b/.github/workflows/samples_flows_evaluation_eval_perceived_intelligence.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/evaluation/eval-perceived-intelligence/**, examples/*requirements.txt, .github/workflows/samples_flows_evaluation_eval_perceived_intelligence.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_standard_autonomous_agent.yml b/.github/workflows/samples_flows_standard_autonomous_agent.yml index b5f3846346c..14f09ea64da 100644 --- a/.github/workflows/samples_flows_standard_autonomous_agent.yml +++ b/.github/workflows/samples_flows_standard_autonomous_agent.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/standard/autonomous-agent/**, examples/*requirements.txt, .github/workflows/samples_flows_standard_autonomous_agent.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_standard_basic.yml b/.github/workflows/samples_flows_standard_basic.yml index af3f2bf1969..66b99b6a399 100644 --- a/.github/workflows/samples_flows_standard_basic.yml +++ b/.github/workflows/samples_flows_standard_basic.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/standard/basic/**, examples/*requirements.txt, .github/workflows/samples_flows_standard_basic.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_standard_basic_with_builtin_llm.yml b/.github/workflows/samples_flows_standard_basic_with_builtin_llm.yml index a49602b2a61..8178ac0783a 100644 --- a/.github/workflows/samples_flows_standard_basic_with_builtin_llm.yml +++ b/.github/workflows/samples_flows_standard_basic_with_builtin_llm.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/standard/basic-with-builtin-llm/**, examples/*requirements.txt, .github/workflows/samples_flows_standard_basic_with_builtin_llm.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_standard_basic_with_connection.yml b/.github/workflows/samples_flows_standard_basic_with_connection.yml index 7d1c8532800..82e4b4ccfd4 100644 --- a/.github/workflows/samples_flows_standard_basic_with_connection.yml +++ b/.github/workflows/samples_flows_standard_basic_with_connection.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/standard/basic-with-connection/**, examples/*requirements.txt, .github/workflows/samples_flows_standard_basic_with_connection.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_standard_conditional_flow_for_if_else.yml b/.github/workflows/samples_flows_standard_conditional_flow_for_if_else.yml index 82a5170737b..8b1f9d918b5 100644 --- a/.github/workflows/samples_flows_standard_conditional_flow_for_if_else.yml +++ b/.github/workflows/samples_flows_standard_conditional_flow_for_if_else.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/standard/conditional-flow-for-if-else/**, examples/*requirements.txt, .github/workflows/samples_flows_standard_conditional_flow_for_if_else.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_standard_conditional_flow_for_switch.yml b/.github/workflows/samples_flows_standard_conditional_flow_for_switch.yml index 76fb8581ba2..0a71b134d32 100644 --- a/.github/workflows/samples_flows_standard_conditional_flow_for_switch.yml +++ b/.github/workflows/samples_flows_standard_conditional_flow_for_switch.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/standard/conditional-flow-for-switch/**, examples/*requirements.txt, .github/workflows/samples_flows_standard_conditional_flow_for_switch.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_standard_customer_intent_extraction.yml b/.github/workflows/samples_flows_standard_customer_intent_extraction.yml index 954742a7351..d69d8d1ccb3 100644 --- a/.github/workflows/samples_flows_standard_customer_intent_extraction.yml +++ b/.github/workflows/samples_flows_standard_customer_intent_extraction.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/standard/customer-intent-extraction/**, examples/*requirements.txt, .github/workflows/samples_flows_standard_customer_intent_extraction.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_standard_flow_with_additional_includes.yml b/.github/workflows/samples_flows_standard_flow_with_additional_includes.yml index 70644f1e18d..4cd0c9e8714 100644 --- a/.github/workflows/samples_flows_standard_flow_with_additional_includes.yml +++ b/.github/workflows/samples_flows_standard_flow_with_additional_includes.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/standard/flow-with-additional-includes/**, examples/*requirements.txt, .github/workflows/samples_flows_standard_flow_with_additional_includes.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_standard_flow_with_symlinks.yml b/.github/workflows/samples_flows_standard_flow_with_symlinks.yml index be750c0003e..71b07d52aa5 100644 --- a/.github/workflows/samples_flows_standard_flow_with_symlinks.yml +++ b/.github/workflows/samples_flows_standard_flow_with_symlinks.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/standard/flow-with-symlinks/**, examples/*requirements.txt, .github/workflows/samples_flows_standard_flow_with_symlinks.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_standard_gen_docstring.yml b/.github/workflows/samples_flows_standard_gen_docstring.yml index c47e64af796..4575a980049 100644 --- a/.github/workflows/samples_flows_standard_gen_docstring.yml +++ b/.github/workflows/samples_flows_standard_gen_docstring.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/standard/gen-docstring/**, examples/*requirements.txt, .github/workflows/samples_flows_standard_gen_docstring.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_standard_maths_to_code.yml b/.github/workflows/samples_flows_standard_maths_to_code.yml index 8a0f8d38511..158bee98f5b 100644 --- a/.github/workflows/samples_flows_standard_maths_to_code.yml +++ b/.github/workflows/samples_flows_standard_maths_to_code.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/standard/maths-to-code/**, examples/*requirements.txt, .github/workflows/samples_flows_standard_maths_to_code.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_standard_named_entity_recognition.yml b/.github/workflows/samples_flows_standard_named_entity_recognition.yml index be4de0366e6..9b64d91562a 100644 --- a/.github/workflows/samples_flows_standard_named_entity_recognition.yml +++ b/.github/workflows/samples_flows_standard_named_entity_recognition.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/standard/named-entity-recognition/**, examples/*requirements.txt, .github/workflows/samples_flows_standard_named_entity_recognition.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_flows_standard_web_classification.yml b/.github/workflows/samples_flows_standard_web_classification.yml index 6c0f80a237c..81877f5fd87 100644 --- a/.github/workflows/samples_flows_standard_web_classification.yml +++ b/.github/workflows/samples_flows_standard_web_classification.yml @@ -12,6 +12,9 @@ on: paths: [ examples/flows/standard/web-classification/**, examples/*requirements.txt, examples/flows/standard/flow-with-additional-includes/**, examples/flows/standard/flow-with-symlinks/** ,.github/workflows/samples_flows_standard_web_classification.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_getstarted_quickstart.yml b/.github/workflows/samples_getstarted_quickstart.yml index 374d9bf9cda..bc4725244e2 100644 --- a/.github/workflows/samples_getstarted_quickstart.yml +++ b/.github/workflows/samples_getstarted_quickstart.yml @@ -12,6 +12,9 @@ on: paths: [ examples/**, .github/workflows/samples_getstarted_quickstart.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_notebook_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_getstarted_quickstartazure.yml b/.github/workflows/samples_getstarted_quickstartazure.yml index b439d33b3e8..b3ad2223bf0 100644 --- a/.github/workflows/samples_getstarted_quickstartazure.yml +++ b/.github/workflows/samples_getstarted_quickstartazure.yml @@ -12,6 +12,9 @@ on: paths: [ examples/**, .github/workflows/samples_getstarted_quickstartazure.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_notebook_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_runmanagement_cloudrunmanagement.yml b/.github/workflows/samples_runmanagement_cloudrunmanagement.yml index fc49fd9d3d7..ce9940168e2 100644 --- a/.github/workflows/samples_runmanagement_cloudrunmanagement.yml +++ b/.github/workflows/samples_runmanagement_cloudrunmanagement.yml @@ -12,6 +12,9 @@ on: paths: [ examples/**, .github/workflows/samples_runmanagement_cloudrunmanagement.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_notebook_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_runmanagement_runmanagement.yml b/.github/workflows/samples_runmanagement_runmanagement.yml index 949e4cede83..69ad3da9a5b 100644 --- a/.github/workflows/samples_runmanagement_runmanagement.yml +++ b/.github/workflows/samples_runmanagement_runmanagement.yml @@ -12,6 +12,9 @@ on: paths: [ examples/**, .github/workflows/samples_runmanagement_runmanagement.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_notebook_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_tools_use_cases_flow_with_enabled_by_value.yml b/.github/workflows/samples_tools_use_cases_flow_with_enabled_by_value.yml index a2f37422aa7..859e89913fd 100644 --- a/.github/workflows/samples_tools_use_cases_flow_with_enabled_by_value.yml +++ b/.github/workflows/samples_tools_use_cases_flow_with_enabled_by_value.yml @@ -12,6 +12,9 @@ on: paths: [ examples/tools/use-cases/flow-with-enabled-by-value/**, examples/*requirements.txt, .github/workflows/samples_tools_use_cases_flow_with_enabled_by_value.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_tutorials_e2e_development_chat_with_pdf.yml b/.github/workflows/samples_tutorials_e2e_development_chat_with_pdf.yml index 16a1cf806db..82d5fbf3cee 100644 --- a/.github/workflows/samples_tutorials_e2e_development_chat_with_pdf.yml +++ b/.github/workflows/samples_tutorials_e2e_development_chat_with_pdf.yml @@ -12,6 +12,9 @@ on: paths: [ examples/**, .github/workflows/samples_tutorials_e2e_development_chat_with_pdf.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_tutorials_flow_deploy_azure_app_service.yml b/.github/workflows/samples_tutorials_flow_deploy_azure_app_service.yml index 26231aa0526..f9ffea62a8a 100644 --- a/.github/workflows/samples_tutorials_flow_deploy_azure_app_service.yml +++ b/.github/workflows/samples_tutorials_flow_deploy_azure_app_service.yml @@ -12,6 +12,9 @@ on: paths: [ examples/**, .github/workflows/samples_tutorials_flow_deploy_azure_app_service.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_tutorials_flow_deploy_distribute_flow_as_executable_app.yml b/.github/workflows/samples_tutorials_flow_deploy_distribute_flow_as_executable_app.yml index 55e0b1146ec..d620096d040 100644 --- a/.github/workflows/samples_tutorials_flow_deploy_distribute_flow_as_executable_app.yml +++ b/.github/workflows/samples_tutorials_flow_deploy_distribute_flow_as_executable_app.yml @@ -6,12 +6,15 @@ name: samples_tutorials_flow_deploy_distribute_flow_as_executable_app on: schedule: - - cron: "10 19 * * *" # Every day starting at 3:10 BJT + - cron: "59 21 * * *" # Every day starting at 5:59 BJT pull_request: branches: [ main ] paths: [ examples/**, .github/workflows/samples_tutorials_flow_deploy_distribute_flow_as_executable_app.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest @@ -23,7 +26,7 @@ jobs: with: python-version: "3.9" - name: Generate config.json - run: echo ${{ secrets.TEST_WORKSPACE_CONFIG_JSON }} > ${{ github.workspace }}/examples/config.json + run: echo '${{ secrets.TEST_WORKSPACE_CONFIG_JSON_CANARY }}' > ${{ github.workspace }}/examples/config.json - name: Prepare requirements working-directory: examples run: | @@ -74,7 +77,7 @@ jobs: export aoai_api_endpoint=${{ secrets.AOAI_API_ENDPOINT_TEST }} export test_workspace_sub_id=${{ secrets.TEST_WORKSPACE_SUB_ID }} export test_workspace_rg=${{ secrets.TEST_WORKSPACE_RG }} - export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME }} + export test_workspace_name=${{ secrets.TEST_WORKSPACE_NAME_CANARY }} bash bash_script.sh - name: Pip List for Debug if : ${{ always() }} diff --git a/.github/workflows/samples_tutorials_flow_deploy_docker.yml b/.github/workflows/samples_tutorials_flow_deploy_docker.yml index 1491a48f271..f5608b03b68 100644 --- a/.github/workflows/samples_tutorials_flow_deploy_docker.yml +++ b/.github/workflows/samples_tutorials_flow_deploy_docker.yml @@ -12,6 +12,9 @@ on: paths: [ examples/**, .github/workflows/samples_tutorials_flow_deploy_docker.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/.github/workflows/samples_tutorials_flow_deploy_kubernetes.yml b/.github/workflows/samples_tutorials_flow_deploy_kubernetes.yml index b6a0478f3bd..45e99569f2f 100644 --- a/.github/workflows/samples_tutorials_flow_deploy_kubernetes.yml +++ b/.github/workflows/samples_tutorials_flow_deploy_kubernetes.yml @@ -12,6 +12,9 @@ on: paths: [ examples/**, .github/workflows/samples_tutorials_flow_deploy_kubernetes.yml ] workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: samples_readme_ci: runs-on: ubuntu-latest diff --git a/scripts/readme/ghactions_driver/workflow_templates/workflow_skeleton.yml.jinja2 b/scripts/readme/ghactions_driver/workflow_templates/workflow_skeleton.yml.jinja2 index 98fcccd5795..3035df94e85 100644 --- a/scripts/readme/ghactions_driver/workflow_templates/workflow_skeleton.yml.jinja2 +++ b/scripts/readme/ghactions_driver/workflow_templates/workflow_skeleton.yml.jinja2 @@ -12,6 +12,9 @@ on: paths: {{ path_filter }} workflow_dispatch: +env: + IS_IN_CI_PIPELINE: "true" + jobs: {{ ci_name }}: {%- filter indent(width=4) -%}