-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Pipelines should warn against incorrect inclusion / exclusion of DisplayVersion #138520
Comments
This is essential for matching, which drives upgrades. Implementation thoughts: Since the validation pipeline performs a package install, this data should be available in validation VM just afterwards, then become emitted in the logs as a pipeline message or warning - maybe Ideally, this message wouldn't block the rest of the validation pipeline process - similar to the "needs manual review" type of output, this would emit into logs, and our existing PR automation would add the appropriate label. |
I think the implementation detail above is relevant to issues like:
This issue focuses more on checking the state of previous manifests in a given PackageIdentifier and determining whether including / excluding |
For this the implementation details can be: Query all manifests of a given PackageIdentifier:
|
Oh yes,, these checks should also be performed. Maybe during manifest validation, which happens earlier in the process, before the package install into a VM. Currently, a reduced form of this check (only checking against 1 previous manifest) is performed during validation. Shifting this check forward in the process would be beneficial. For best user experience, all errors should be presented at once and early in the process, allowing them all to be fixed in one remediation cycle.
This check (sanity check DisplayVersion against previous manifest versions) couples nicely to the other check (verify installed DisplayVersion matches manifest DisplayVersion) to help ensure matching. |
Description of the new feature/enhancement
The general advice (as of writing this issue) regarding
AppsAndFeaturesEntries: DisplayVersion
& version range issues arising from it is:DisplayVersion
, then all manifests of that PackageIdentifier should containDisplayVersion
DisplayVersion
should not be used when it's equal toPackageVersion
fieldThis context is easy to miss when contributing package manifests. The pipelines should warn PR authors when:
DisplayVersion
in a manifest update when previous manifests don't have this fieldDisplayVersion
in a manifest update when all previous manifests have this fieldDisplayVersion
field while others don'tDisplayVersion
being used in the manifest is equal to thePackageVersion
DisplayVersion
differs from PackageVersion by trailing.0s
or in a similar fashion where it would make no difference matching wise to the CLIThe most prominent issues caused by failing to adhere to these guidelines:
Proposed technical implementation details (optional)
No response
The text was updated successfully, but these errors were encountered: