Skip to content
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

Handle non existence of app manifest in older build #4511

Merged
merged 2 commits into from
Jun 14, 2017

Conversation

bishal-pdMSFT
Copy link
Contributor

Earlier task used to fail if older build drop did not contain application manifest file. Now, comparison will be skipped and new version will be applied. I have checked that same fix is not needed for service manifests as the check already exists. Related issue #4399

@bishal-pdMSFT
Copy link
Contributor Author

#4399

[CmdletBinding()]
param()

. "$PSScriptRoot\Test-ApplicationVersions.ps1" PreviousPackageNoManifest
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't you be testing that version got updated

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am. Look at line 57 in Test-ApplicationVersions.ps1(called from this test) wher we are validating that new application manifest has updated version.

@@ -32,6 +32,7 @@
"loc.messages.PreviousBuildNumberLabel": "Previous build number: '{0}'",
"loc.messages.PreviousBuildLocationLabel": "Previous build location: '{0}'",
"loc.messages.NoPreviousSuccessfulBuild": "Could not find previous build to compare against.",
"loc.messages.NoManifestInPreviousBuild": "Previous build does not contains application manifest. Force updating application type version.",
Copy link
Member

Choose a reason for hiding this comment

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

Your message mentions only forcing update of the application manifest, but the code forces update of all manifests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed

else
{
Write-Warning (Get-VstsLocString -Key NoManifestInPreviousBuild)
$updateAllVersions = $true
Copy link
Member

Choose a reason for hiding this comment

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

Is it really necessary to re-version all of the services if there was no application manifest in the previous build? If there is a service manifest, and those files haven't changed why does the service need a new version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@NCarlsonMSFT is this a valid scenario? I would assume that any old package not containing applicationManifest.xml is an invalid package and should not be used for comparison.

Copy link
Member

Choose a reason for hiding this comment

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

Fair point, it probably is safest to reversion everything. I mainly just wanted to avoid the performance implications of forcing an update to every service.

@bishal-pdMSFT bishal-pdMSFT merged commit 68c2cb4 into master Jun 14, 2017
@bryanmacfarlane bryanmacfarlane deleted the users/biprasad/HandleNoOldAppManifest branch January 31, 2018 00:46
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.

4 participants