Skip to content

Conversation

Harmanpreet-Microsoft
Copy link
Contributor

Purpose

This pull request introduces significant improvements to the CI/CD pipeline, deployment automation, and environment configuration for the project. The main changes include a comprehensive overhaul of the GitHub Actions workflow for deployment and testing, enhanced extraction and propagation of deployment URLs, improved handling of authentication and database setup, and updates to environment configuration defaults. These updates streamline deployment, improve reliability, and make the automation more robust and maintainable.

CI/CD Workflow and Deployment Automation:

  • Major refactor of .github/workflows/ci.yml:

    • The main job is renamed from ci to deploy, with additional outputs for deployment status and URLs. Steps for image pre-build, deployment, URL extraction, authentication disabling, PostgreSQL setup, and status checks are added, along with a new cleanup job for resource destruction. End-to-end tests are now triggered only if deployment succeeds, using a workflow call to the updated test automation workflow. [1] [2] [3] [4] [5] [6]
  • The test automation workflow .github/workflows/test-automation.yml is changed to use workflow_call with required inputs for web_url and admin_url, allowing dynamic invocation from the main workflow. Environment variable handling is improved, and Python setup uses the latest action version.

Deployment and Resource Extraction Enhancements:

  • The Makefile's deploy target is rewritten for more robust Azure login, deployment, and resource extraction. It now reliably extracts frontend and admin URLs, PostgreSQL host endpoints, and provides helper targets for checking and disabling authentication.

Environment Configuration Updates:

  • The default value for AZURE_AUTH_TYPE in code/backend/batch/utilities/helpers/env_helper.py is changed from "keys" to "rbac", aligning with more secure authentication practices.
  • A new environment variable FUNCTION_KEY is added to the configuration loader for easier access to Azure Function keys.

Other Improvements:

  • The coverage comment GitHub Action is updated to a newer version for improved reliability in .github/workflows/comment_coverage.yml.
  • The notification email body for failed CI runs is simplified for clarity in .github/workflows/ci.yml.

These changes collectively make the deployment and testing process more automated, robust, and easier to maintain, with improved diagnostics and resource management.

  • ...

Does this introduce a breaking change?

  • Yes
  • No

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
  • Test the code

What to Check

Verify that the following are valid

  • ...

Other Information

Roopan-Microsoft and others added 30 commits November 25, 2024 16:02
Co-authored-by: Roopan-Microsoft <[email protected]>
Co-authored-by: Ross Smith <[email protected]>
Co-authored-by: gpickett <[email protected]>
Co-authored-by: Francia Riesco <[email protected]>
Co-authored-by: Francia Riesco <[email protected]>
Co-authored-by: Prajwal D C <[email protected]>
…nd Update Conversation flow based on template selection (#1567)

Co-authored-by: Pavan Kumar <v-kupavan.microsoft.com>
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pavan-Microsoft <[email protected]>
Harmanpreet-Microsoft and others added 22 commits June 4, 2025 14:41
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Prasanjeet-Microsoft <[email protected]>
Co-authored-by: Roopan-Microsoft <[email protected]>
Co-authored-by: Ajit Padhi <[email protected]>
Co-authored-by: Roopan P M <[email protected]>
Co-authored-by: Pavan-Microsoft <[email protected]>
Co-authored-by: Ross Smith <[email protected]>
Co-authored-by: gpickett <[email protected]>
Co-authored-by: Francia Riesco <[email protected]>
Co-authored-by: Francia Riesco <[email protected]>
Co-authored-by: Harmanpreet-Microsoft <[email protected]>
Co-authored-by: UtkarshMishra-Microsoft <[email protected]>
Co-authored-by: Priyanka-Microsoft <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kiran-Siluveru-Microsoft <[email protected]>
Co-authored-by: Prashant-Microsoft <[email protected]>
Co-authored-by: Rohini-Microsoft <[email protected]>
Co-authored-by: Avijit-Microsoft <[email protected]>
Co-authored-by: RaviKiran-Microsoft <[email protected]>
Co-authored-by: Somesh Joshi <[email protected]>
Co-authored-by: Himanshi Agrawal <[email protected]>
Co-authored-by: pradeepjha-microsoft <[email protected]>
Co-authored-by: Harmanpreet Kaur <[email protected]>
Co-authored-by: Bangarraju-Microsoft <[email protected]>
Co-authored-by: Harsh-Microsoft <[email protected]>
Co-authored-by: Kanchan-Microsoft <[email protected]>
Co-authored-by: Cristopher Coronado <[email protected]>
Co-authored-by: Cristopher Coronado Moreira <[email protected]>
Co-authored-by: Vamshi-Microsoft <[email protected]>
Co-authored-by: Thanusree-Microsoft <[email protected]>
…1827)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Thanusree-Microsoft <[email protected]>
Co-authored-by: Prasanjeet-Microsoft <[email protected]>
Co-authored-by: Roopan-Microsoft <[email protected]>
Co-authored-by: Ajit Padhi <[email protected]>
Co-authored-by: Roopan P M <[email protected]>
Co-authored-by: Pavan-Microsoft <[email protected]>
Co-authored-by: Ross Smith <[email protected]>
Co-authored-by: gpickett <[email protected]>
Co-authored-by: Francia Riesco <[email protected]>
Co-authored-by: Francia Riesco <[email protected]>
Co-authored-by: Harmanpreet-Microsoft <[email protected]>
Co-authored-by: UtkarshMishra-Microsoft <[email protected]>
Co-authored-by: Priyanka-Microsoft <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kiran-Siluveru-Microsoft <[email protected]>
Co-authored-by: Prashant-Microsoft <[email protected]>
Co-authored-by: Rohini-Microsoft <[email protected]>
Co-authored-by: Avijit-Microsoft <[email protected]>
Co-authored-by: RaviKiran-Microsoft <[email protected]>
Co-authored-by: Somesh Joshi <[email protected]>
Co-authored-by: Himanshi Agrawal <[email protected]>
Co-authored-by: pradeepjha-microsoft <[email protected]>
Co-authored-by: Harmanpreet Kaur <[email protected]>
Co-authored-by: Bangarraju-Microsoft <[email protected]>
Co-authored-by: Harsh-Microsoft <[email protected]>
Co-authored-by: Kanchan-Microsoft <[email protected]>
Co-authored-by: Cristopher Coronado <[email protected]>
Co-authored-by: Cristopher Coronado Moreira <[email protected]>
Co-authored-by: Vamshi-Microsoft <[email protected]>
Co-authored-by: Niraj Chaudhari (Persistent Systems Inc) <[email protected]>
…grated vectorization (#1839)

Co-authored-by: Vamshi-Microsoft <[email protected]>
Co-authored-by: Prajwal-Microsoft <[email protected]>
…test orchestration, and improved Makefile targets (#1855)

Co-authored-by: Harmanpreet Kaur <[email protected]>
…d maintenance (#1880)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Roopan P M <[email protected]>
Co-authored-by: Roopan-Microsoft <[email protected]>
Co-authored-by: Pavan-Microsoft <[email protected]>
Co-authored-by: Prasanjeet-Microsoft <[email protected]>
Co-authored-by: Harmanpreet Kaur <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.