Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
ci: Fix flaky docker rotate e2e test (#4353)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsturtevant committed Apr 5, 2021
1 parent 47c439d commit 7ae3df7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions test/e2e/kubernetes/kubernetes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2435,6 +2435,10 @@ var _ = Describe("Azure Container Cluster using the Kubernetes Orchestrator", fu
Skip("No windows agent was provisioned for this Cluster Definition")
}

if !eng.ExpandedDefinition.Properties.OrchestratorProfile.KubernetesConfig.RequiresDocker() {
Skip("Skip docker validations on non-docker-backed clusters")
}

windowsImages, err := eng.GetWindowsTestImages()
loggingPodFile, err := pod.ReplaceContainerImageFromFile(filepath.Join(WorkloadDir, "validate-windows-logging.yaml"), windowsImages.ServerCore)
Expect(err).NotTo(HaveOccurred())
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/kubernetes/pod/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -1816,7 +1816,7 @@ func (p *Pod) ValidateLogsRotate(sleep, timeout time.Duration) (bool, error) {
return
default:
// extract the date
output, err := p.checkTailOfLogFor("20", "-oP '(?<=DATE=)[^.-]*'")
output, err := p.checkTailOfLogFor("40", "-oP '(?<=DATE=)[^.-]*'")
if err != nil {
log.Printf("Unable to tail the log:\n %s \n", output)
time.Sleep(sleep)
Expand Down

0 comments on commit 7ae3df7

Please sign in to comment.