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

draft: add file and test for file #5995

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

timmy-wright
Copy link
Contributor

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Requirements:

Special notes for your reviewer:

Release note:

none

Copy link
Contributor

github-actions bot commented Mar 6, 2025

No changes to cached containers or packages on Windows VHDs

@@ -903,6 +903,9 @@ try
Clear-TempFolder
Log-VHDFreeSize
Test-AzureExtensions

Write-Output "creating test.txt file"
Write-Output "this is a test file" > "c:\k\test.txt"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reminder to Tim: I have to remove this once I've tested the e2e tests are running against the right VHDs.

@@ -25,6 +25,7 @@ func Test_Windows2019Containerd(t *testing.T) {
ValidateFileHasContent(ctx, s, "/k/kubeletstart.ps1", "--container-runtime=remote")
ValidateWindowsProcessHasCliArguments(ctx, s, "kubelet.exe", []string{"--rotate-certificates=true", "--client-ca-file=c:\\k\\ca.crt"})
ValidateCiliumIsNotRunningWindows(ctx, s)
ValidateFileHasContent(ctx, s, "/k/test.txt", "this is a test file")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are currently here to check the e2e tests are being run with the right VHD version. They will be removed before I merge the PR.

e2e/vmss.go Outdated
s.T.Logf("vhd rgr id %s", nodeBootstrapping.SigImageConfig.ResourceGroup)
s.T.Logf("vhd galler %s", nodeBootstrapping.SigImageConfig.Gallery)
s.T.Logf("vhd versio %s", nodeBootstrapping.SigImageConfig.Version)
s.T.Logf("vhd defini %s", nodeBootstrapping.SigImageConfig.Definition)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reminder: remove these logs.

e2e/vmss.go Outdated
@@ -74,6 +80,11 @@ func createVMSS(ctx context.Context, s *Scenario) *armcompute.VirtualMachineScal

s.PrepareVMSSModel(ctx, s.T, &model)

s.T.Logf("vhd rgr id %s", nodeBootstrapping.SigImageConfig.ResourceGroup)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

reminder: remove these logs

@@ -181,6 +181,7 @@ steps:

make -f packer.mk test-building-vhd
displayName: Run VHD cache test
enabled: false
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reminder: re-enable this step.

Copy link
Contributor

github-actions bot commented Mar 7, 2025

No changes to cached containers or packages on Windows VHDs

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.

1 participant