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

Add support for platform compatibility check for windows #1821

Merged
merged 1 commit into from
Jul 5, 2023

Conversation

kiashok
Copy link
Contributor

@kiashok kiashok commented Jun 21, 2023

This PR adds does the following:

  • Adds function to check the host OS version and container image's OS version and returns true if the two OS versions are compatible.
  • Add stable ABI compat version checks. OS releases > WS2022 will be stable ABI compliant and the decision is to support latest container images for stable ABI compliant OSes. (Stable ABI is in preview mode on windows 11)

@kiashok kiashok requested a review from a team as a code owner June 21, 2023 00:37
osversion/platform_compat_windows.go Outdated Show resolved Hide resolved
osversion/platform_compat_windows.go Outdated Show resolved Hide resolved
osversion/platform_compat_windows.go Outdated Show resolved Hide resolved
@kiashok kiashok force-pushed the stableABICheck branch 3 times, most recently from 5bb3091 to 9a54249 Compare June 21, 2023 22:49
@kiashok kiashok force-pushed the stableABICheck branch 2 times, most recently from 162f281 to 5008c39 Compare June 27, 2023 19:39
Copy link
Member

@kevpar kevpar left a comment

Choose a reason for hiding this comment

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

LGTM

@jterry75
Copy link
Contributor

jterry75 commented Jul 3, 2023

Ok last comment lolz. AreHostAndGuest is why this sounds like virtualization API IMO. The process container is not a Guest in my head. But I'm not 100% sure what to call it that is a short name. Its really more like CanHostRunUserSpaceVersion(hostVer, containerVer). Maybe you can think of a better name but otherwise LGTM

@kiashok
Copy link
Contributor Author

kiashok commented Jul 3, 2023

Ok last comment lolz. AreHostAndGuest is why this sounds like virtualization API IMO. The process container is not a Guest in my head. But I'm not 100% sure what to call it that is a short name. Its really more like CanHostRunUserSpaceVersion(hostVer, containerVer). Maybe you can think of a better name but otherwise LGTM

Does CheckHostAndContainerCompat() sound ok to you?

@jterry75
Copy link
Contributor

jterry75 commented Jul 3, 2023

Ack sounds great!

Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
@kiashok
Copy link
Contributor Author

kiashok commented Jul 3, 2023

Ack sounds great!

@jterry75 pushed new changes. Could you please sign off if it looks good?

Copy link
Contributor

@katiewasnothere katiewasnothere left a comment

Choose a reason for hiding this comment

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

lgtm

@kiashok kiashok merged commit 640a560 into microsoft:main Jul 5, 2023
kiashok added a commit to kiashok/hcsshim that referenced this pull request Jul 20, 2023
)

Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
(cherry picked from commit 640a560)
Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
kiashok added a commit to kiashok/hcsshim that referenced this pull request Jul 20, 2023
)

Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
(cherry picked from commit 640a560)
Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
kiashok added a commit to kiashok/hcsshim that referenced this pull request Jul 20, 2023
)

Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
(cherry picked from commit 640a560)
Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
kiashok added a commit that referenced this pull request Jul 20, 2023
…s + add windows builds (#1843)

* Add windows versions to windows builds

Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>

* Add support for platform compatibility check for windows (#1821)

Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
(cherry picked from commit 640a560)
Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>

---------

Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
kiashok added a commit to kiashok/hcsshim that referenced this pull request Aug 29, 2023
)

Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
(cherry picked from commit 640a560)
Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
kiashok added a commit to kiashok/hcsshim that referenced this pull request Aug 31, 2023
)

Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
(cherry picked from commit 640a560)
Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
kiashok added a commit to kiashok/hcsshim that referenced this pull request Sep 1, 2023
)

Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
(cherry picked from commit 640a560)
Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
kiashok added a commit to kiashok/hcsshim that referenced this pull request Sep 1, 2023
)

Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
(cherry picked from commit 640a560)
Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
kiashok added a commit that referenced this pull request Sep 6, 2023
(cherry picked from commit 640a560)

Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
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.

5 participants