Skip to content

Integrate Azure Functions deployment with In-Vitro#650

Merged
leokondrashov merged 1 commit intomainfrom
kavi/azure
Jun 4, 2025
Merged

Integrate Azure Functions deployment with In-Vitro#650
leokondrashov merged 1 commit intomainfrom
kavi/azure

Conversation

@wanghanchengchn
Copy link
Contributor

@wanghanchengchn wanghanchengchn commented May 16, 2025

Summary

A small summary of the requirements (in one/two sentences).

To integrate Azure Functions deployment with In-Vitro. This feature enables deployment of serverless functions on the Azure Functions platform. Previous commits and discussions can be found in PR 569.

Implementation Notes ⚒️

  • Briefly outline the overall technical solution. If necessary, identify talking points where the reviewer's attention should be drawn to.

This PR adds a workflow to deploy multiple functions to Azure Functions via ZIP deployment.

Documentation on the steps to deploy the functions to Azure are included in loader.md.

  • azurefunctions_setup: this folder contains the relevant config and workload files to be used for deployment.
  • azure_functions.go: initializes Azure resources required for deployment to Azure Functions, such as Resource Group, Storage Account, and Function App. In order to deploy multiple functions via ZIP, each function must have its own specific folder containing required dependencies, before zipping and deploying all the function folders as a single package. After successful deployment, local temporary folders holding the functions and the zip package are cleaned up.
    (Note: All cleanup, including local temporary folders, will be done after entire experiment is completed.)

External Dependencies 🍀

  • gopkg.in/yaml.v3 for reading Azure configuration files.
  • Azure CLI for managing Azure resources and deployment.

Breaking API Changes ⚠️

  • N/A

Simply specify none (N/A) if not applicable.

Copy link
Contributor

@leokondrashov leokondrashov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now.

@cvetkovic please take a look

@wanghanchengchn wanghanchengchn requested a review from cvetkovic May 28, 2025 08:38
"AzureWebJobsFeatureFlags": "EnableWorkerIndexing",
"AzureWebJobsStorage": ""
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blank line.

}

func azureHttpInvocation(dataString string, function *common.Function, AnnounceDoneExe *sync.WaitGroup, tlsSkipVerify bool) (bool, *mc.ExecutionRecordBase, *http.Response, []byte) {
//defer AnnounceDoneExe.Done()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this unused, but passed and saved in the announceDoneExe?

record.StartTime = start.UnixMicro()
record.Instance = function.Name
requestURL := function.Endpoint
if tlsSkipVerify {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a hardcoded false in the caller function.

@wanghanchengchn wanghanchengchn force-pushed the kavi/azure branch 2 times, most recently from 8f812c8 to 901c111 Compare June 4, 2025 11:26
Signed-off-by: hancheng wang <wanghanchengchn@gmail.com>

Integrate Azure Functions deployment

Signed-off-by: hancheng wang <wanghanchengchn@gmail.com>

Integrate Azure Functions deployment

Signed-off-by: hancheng wang <wanghanchengchn@gmail.com>

Integrate Azure Functions deployment

Signed-off-by: hancheng wang <wanghanchengchn@gmail.com>

Integrate Azure Functions deployment

Signed-off-by: hancheng wang <wanghanchengchn@gmail.com>

Integrate Azure Functions deployment

Signed-off-by: hancheng wang <wanghanchengchn@gmail.com>

Integrate Azure Functions deployment

Signed-off-by: hancheng wang <wanghanchengchn@gmail.com>

Integrate Azure Functions deployment

Signed-off-by: hancheng wang <wanghanchengchn@gmail.com>

Integrate Azure Functions deployment

Signed-off-by: hancheng wang <wanghanchengchn@gmail.com>
@leokondrashov leokondrashov merged commit ef712f3 into main Jun 4, 2025
18 checks passed
@leokondrashov leokondrashov deleted the kavi/azure branch June 4, 2025 13:35
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.

3 participants