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

uvmboot and gcs.test bug fix #1966

Merged
merged 1 commit into from Nov 10, 2023
Merged

uvmboot and gcs.test bug fix #1966

merged 1 commit into from Nov 10, 2023

Conversation

helsaawy
Copy link
Contributor

Fix bugs:

  • Using boot-files-path flag name instead of value
  • Explicitly passing open door policy instead of empty string

Functional gcs tests also passed in encoded open door policy string, which is no longer necessary.

Remove unnecessary else blocks.

Pass context through calls.
Use log.G(ctx) instead of logrus.

Rename variables cmd and scsi to avoid overshadowing package names.

@helsaawy helsaawy requested a review from a team as a code owner November 10, 2023 18:58
@@ -177,10 +167,10 @@ func getHost(_ context.Context, tb testing.TB, rt runtime.Runtime) *hcsv2.Host {

func getHostErr(rt runtime.Runtime, tp transport.Transport) (*hcsv2.Host, error) {
h := hcsv2.NewHost(rt, tp, &securitypolicy.ClosedDoorSecurityPolicyEnforcer{}, os.Stdout)
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we use the closed door policy here?

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 think originally the gcs started with it, so i copied it for consistency?
Ill change it to open door as well, since that matches the default of what gcs does now

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

Fix bugs:
 - Using `boot-files-path` flag name instead of value
 - Explicitly passing open door policy instead of empty string

Functional gcs tests also passed in encoded open door policy string,
which is no longer necessary.

Remove unnecessary else blocks.

Pass context through calls.
Use `log.G(ctx)` instead of `logrus`.

Rename variables `cmd` and `scsi` to avoid overshadowing package names.

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
@helsaawy helsaawy merged commit 79ab3ee into microsoft:main Nov 10, 2023
18 of 19 checks passed
@helsaawy helsaawy deleted the uvmboot-bug branch November 10, 2023 19:58
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.

None yet

3 participants