-
Notifications
You must be signed in to change notification settings - Fork 337
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
App-configurable compatibility options spec: RuntimeCompatibilityOptions #4966
base: main
Are you sure you want to change the base?
Conversation
|
||
```xml | ||
<PropertyGroup> | ||
<WindowsAppSDKRuntimePatchMode>1.7.3</WindowsAppSDKRuntimePatchMode> |
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.
<WindowsAppSDKRuntimePatchMode>1.7.3</WindowsAppSDKRuntimePatchMode> | |
<WindowsAppSDKRuntimePatchMode1>1.7.3</WindowsAppSDKRuntimePatchMode1> |
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.
numeric suffixes should be consistent between xml and api
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.
Oops, I forgot to submit my comments from last week.
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
early before the configuration is locked for the lifetime of the process. Since the Windows App | ||
Runtime needs to run with a consistent configuration, it will lock the configuration when it needs | ||
to ensure the configuration will no longer change. Calling `Apply` will also lock the | ||
configuration. |
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.
I think this text is trying to say "The Windows App Runtime will automatically lock the configuration at some point. Calling Apply
also locks. Since you don't really know when the Windows App Runtime locks, you should call Apply as soon as possible, if you intend to call it at all."
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.
Correct.
// 1.7.1 | ||
// SampleApiCrashFix, | ||
// OtherSampleApiCrashFix, | ||
// ... |
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.
What is the policy/process for retiring old RuntimeCompatibilityChange values?
is it that when (say) 1.5 goes out of support, then we comment out all the 1.5 compatibility values [but hold their values so they won't get reused]? Or do we leave them in place forever, even though they don't do anything?
What happens if we have
enum RuntimeCompatibilityChange
{
None = 0,
// 1.7.1
ResetPolarityOnWidgetChange, // does specifying this disable the reset?
WidgetColorLeak, // specifying this restores the leak?
// 1.8.1
GadgetCrashWhenShownWhileDisabled,
}
and now we have a 1.7.2 compatibility change. Do we add it at the end, so the numbers go 1.7.1 to 1.8.1 to 1.7.2?
or do we reserve 100 change numbers between 1.7.1 and 1.8.1 so we can insert more 1.7.x values later?
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 current plan is that only 1.7.x builds will contain the 1.7.x changes. When moving to 1.8.0, all entries (other than None
) will be removed -- apps will need to evaluate compile errors at that time if they were disabling 1.7.x changes. The code for 1.8 will never include any containment checks from 1.7 (those containment checks stay in that version's release branch).
Regarding the numbers, it isn't shown here, but each enum will actually be assigned to the internal ADO ID of the servicing change. (Or some other unique identifier in the future, such as if we choose to ensure there are issues logged on GitHub for all servicing fixes and use those issue numbers.)
|
||
// 1.7.1 | ||
// SampleApiCrashFix, | ||
// OtherSampleApiCrashFix, |
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.
Can you give a more realistic example of an enum name?
For example, suppose we made a change to reset the polarity of a widget when it changes. What would we call the enum that suppresses the auto-reset?
Suppose we made a change to fix a crash when a gadget is shown while it is disabled. What would we call the enum that re-enables the crash?
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.
For those examples, I'd propose these names:
- WidgetPolarityReset
- ShowDisabledGadgetCrash
Using the list of fixes in 1.6.4, we might have used these names:
- MultiLineTextBoxSelection
- DDLMPackageInstall
- MissingDetoursExport
- CommandBarMenuPositioning
- OldGraphicsHardwareCrash
- PointerEventWindowCloseCrash
- UIAInitReentrancyCrash
- CompositionCapabilitiesCrash
- ExpandedUnicodeSupportForTextBoxes
- PackageManagerRegisterNewerHandling
We may need a separate discussion on the naming scheme to use.
WindowsAppRuntimeVersion PatchLevel1 { get; set; }; | ||
|
||
/// An optional patch level to use if the runtime version matches the major.minor version. | ||
WindowsAppRuntimeVersion PatchLevel2 { get; set; }; |
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.
Would we ever need a third patch level, if somebody wants to run on 3 different versions of the Windows App Runtime?
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.
No, for "A/B Forward" we specifically intend only to support two adjacent versions, such as for an app to move from 1.7 to 1.8.
|
||
```xml | ||
<PropertyGroup> | ||
<WindowsAppSDKRuntimePatchLevel2>1.8.2</WindowsAppSDKRuntimePatchLevel2> |
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.
Why not
<WindowsAppSDKRuntimePatchLevels>1.7.1,1.8.2</WindowsAppSDKRuntimePatchLevels>
?
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 intent is to stay close to the API, which could then make the question the same as the question for line 216, where we want to limit to just two versions.
Spec for app-configurable compatibility options, which can be set via
RuntimeCompatibilityOptions
APIs or via project properties.