-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[functionapp] Enable server side build in OryxBuilder #45
[functionapp] Enable server side build in OryxBuilder #45
Conversation
return Task.CompletedTask; | ||
// Detect if package upload is necessary for server side build | ||
if (artifactPath != null) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please correct me if I am wrong, but looks like artifactPath
will never actually be null
for any function app. So, this path will always be hit, whether it's consumption or dedicated. We probably only want to hit this condition if we are in Consumption I think. Should we do a check for FunctionAppHelper.HasScmRunFromPackage()
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a few comments. Looks good overall.
/* TODO: Hazhzeng, uncomment this when "RemoveAllStandardWorker" is out in ANT 83 | ||
* string baseUrl = $"http://{websiteHostname}/operations/removeworker/{sitename}/allStandard?token={authTokenEncoded}"; | ||
*/ | ||
string baseUrl = $"http://{websiteHostname}/operations/removeworker/{sitename}/all?token={authTokenEncoded}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe https?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The internal call only accepts http protocol. Tried with https, failed to create SSL channel :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair
|
||
// | ||
// Run express build setups if needed | ||
if (args.Flags == BuildOptimizationsFlags.UseExpressBuild) | ||
{ | ||
if (FunctionAppHelper.LooksLikeFunctionApp()) | ||
{ | ||
SetupFunctionAppExpressArtifacts(context); | ||
artifactPath = SetupFunctionAppExpressArtifacts(context); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SetupFunctionAppExpressArtifacts
sets packaname.txt
and packagepath.txt
as well. We probably don't need that for consumption. Maybe we just do the packaging for Consumption, and not use BUILD_FLAGS
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
b71a71e
to
ffd2a4b
Compare
842edc3
to
641f863
Compare
@@ -37,7 +37,7 @@ public LinuxConsumptionInstanceAdminController(ILinuxConsumptionInstanceManager | |||
/// </summary> | |||
/// <returns>Expect 200 when current service is up and running</returns> | |||
[HttpGet] | |||
[Authorize(Policy = AuthPolicyNames.AdminAuthLevel)] | |||
//[Authorize(Policy = AuthPolicyNames.AdminAuthLevel)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to disable the auth here?
Fix using directives Add TODO to remove all standard workers Address issues in comment Rename Linux consumption functionapp related function Internal call does not require https Update remove all worker URL Catch error when SCM_RUN_FROM_PACKAGE is not provided
1ac11e0
to
2ab259f
Compare
…ice#45) * Enable scm build in oryx builder Fix using directives Add TODO to remove all standard workers Address issues in comment Rename Linux consumption functionapp related function Internal call does not require https Update remove all worker URL Catch error when SCM_RUN_FROM_PACKAGE is not provided * Add unit tests for Oryx Factory * Make SetupLinuxConsumptionFunctionAppDeployment(context).Wait() synchronous * Remove assignment auth * Move ScmRunFromPackage from AppSettings to Environment Variables * Null check for pushdeploymentcontroller.cs * Reenable Authorize * Address unit tests
Overview
CR Request
@ankitkumarr @maiqbal11 @sanchitmehta