Skip to content

Conversation

@anmaxvl
Copy link
Contributor

@anmaxvl anmaxvl commented Dec 4, 2021

Move guestrequest and requesttype packages from internal to
exported guestrequest and guestresource packages.

Update hcsshim and gcs to use the new guestrequest and
guestresource packages

Signed-off-by: Maksim An [email protected]

@anmaxvl anmaxvl force-pushed the shared-gcs-protocol branch 2 times, most recently from 7c8126b to 70bd009 Compare December 4, 2021 09:10
@anmaxvl anmaxvl changed the title Add new guestprotocol package Add new guest request/resource packages Dec 4, 2021
@anmaxvl anmaxvl force-pushed the shared-gcs-protocol branch 2 times, most recently from 01af0d4 to e68ec36 Compare December 5, 2021 07:44
@anmaxvl anmaxvl marked this pull request as ready for review December 7, 2021 18:44
@anmaxvl anmaxvl requested a review from a team as a code owner December 7, 2021 18:44
@kevpar
Copy link
Member

kevpar commented Dec 7, 2021

What's the motivation behind exporting these packages? I think we benefit from not worrying about breaking changes.

@anmaxvl
Copy link
Contributor Author

anmaxvl commented Dec 7, 2021

What's the motivation behind exporting these packages? I think we benefit from not worrying about breaking changes.

Recently I just found myself copy-pasting the same definitions in 2 places while working on PoC for hash device on a separate VHD. Additionally, after merging opengcs into hcsshim this felt like a tech debt. Maybe exporting the definitions is an overkill, but I'd at least like to make sure that gcs and hcsshim are using the same ones.

I think we benefit from not worrying about breaking changes.

You mean with the current implementation or with the proposed one?

@kevpar
Copy link
Member

kevpar commented Dec 7, 2021

What's the motivation behind exporting these packages? I think we benefit from not worrying about breaking changes.

Recently I just found myself copy-pasting the same definitions in 2 places while working on PoC for hash device on a separate VHD. Additionally, after merging opengcs into hcsshim this felt like a tech debt. Maybe exporting the definitions is an overkill, but I'd at least like to make sure that gcs and hcsshim are using the same ones.

I think we benefit from not worrying about breaking changes.

You mean with the current implementation or with the proposed one?

With the current implementation it's all unexported so we can change whatever we want. I think merging the definitions into a single package is a great idea, but would rather not export it unless we really have to.

Basically, my hope is that no one else ever has to interact with the bridge protocol, so we can treat it as an implementation detail rather than exporting definitions.

@anmaxvl
Copy link
Contributor Author

anmaxvl commented Dec 7, 2021

What's the motivation behind exporting these packages? I think we benefit from not worrying about breaking changes.

Recently I just found myself copy-pasting the same definitions in 2 places while working on PoC for hash device on a separate VHD. Additionally, after merging opengcs into hcsshim this felt like a tech debt. Maybe exporting the definitions is an overkill, but I'd at least like to make sure that gcs and hcsshim are using the same ones.

I think we benefit from not worrying about breaking changes.

You mean with the current implementation or with the proposed one?

With the current implementation it's all unexported so we can change whatever we want. I think merging the definitions into a single package is a great idea, but would rather not export it unless we really have to.

Basically, my hope is that no one else ever has to interact with the bridge protocol, so we can treat it as an implementation detail rather than exporting definitions.

ah, yeah, that makes sense. Thanks for clarification.

@anmaxvl anmaxvl force-pushed the shared-gcs-protocol branch from 07ce960 to f691d3c Compare January 27, 2022 19:25
Copy link
Contributor

@msscotb msscotb left a comment

Choose a reason for hiding this comment

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

lgtm

@anmaxvl anmaxvl force-pushed the shared-gcs-protocol branch 3 times, most recently from fbe4167 to ea37e5f Compare January 27, 2022 22:54
hcsshim and GCS redefine protocol messages. Any change to
the protocol requires redifinitions in both hcsshim and GCS.
This PR combines the two protocol definitions into one to
resolve this.

Create new guestrequest and guestresource internal packages
and update references in code.

Signed-off-by: Maksim An <[email protected]>
Do not export guestrequest and guestresource packages and rather
keep them under internal/protocol.

Signed-off-by: Maksim An <[email protected]>
@anmaxvl anmaxvl force-pushed the shared-gcs-protocol branch from 02a7b0c to 438fe16 Compare February 5, 2022 01:47
@anmaxvl anmaxvl merged commit 5a3c0ef into microsoft:master Feb 9, 2022
@anmaxvl anmaxvl deleted the shared-gcs-protocol branch February 9, 2022 17:45
anmaxvl added a commit to anmaxvl/hcsshim that referenced this pull request Feb 15, 2022
When consolidating guest protocol into its own package
in microsoft#1240 wrong constant
definition was used for adding a network namespace. Fix this by
using the correct constants.

Signed-off-by: Maksim An <[email protected]>
anmaxvl added a commit that referenced this pull request Feb 15, 2022
When consolidating guest protocol into its own package
in #1240 wrong constant
definition was used for adding a network namespace. Fix this by
using the correct constants.

Signed-off-by: Maksim An <[email protected]>
princepereira pushed a commit to princepereira/hcsshim that referenced this pull request Aug 29, 2024
hcsshim and GCS redefine protocol messages. Any change to
the protocol requires redefinitions in both hcsshim and GCS.
This PR combines the two protocol definitions into one to
resolve this.

Create new guestrequest and guestresource internal packages
and update references in code.

Signed-off-by: Maksim An <[email protected]>
princepereira pushed a commit to princepereira/hcsshim that referenced this pull request Aug 29, 2024
When consolidating guest protocol into its own package
in microsoft#1240 wrong constant
definition was used for adding a network namespace. Fix this by
using the correct constants.

Signed-off-by: Maksim An <[email protected]>
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