Skip to content

Commit

Permalink
fix: RHTAPBUGS-943 - increase timeout of CreateComponentDetectionQuer…
Browse files Browse the repository at this point in the history
…yWithTimeout (konflux-ci#891)

* increase timeout

* gofmt
  • Loading branch information
rsoaresd authored Nov 17, 2023
1 parent 1892dc6 commit 4090e16
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pkg/clients/has/componentdetectionqueries.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (h *HasController) GetComponentDetectionQuery(name, namespace string) (*app

// CreateComponentDetectionQuery create a has componentdetectionquery from a given name, namespace, and git source
func (h *HasController) CreateComponentDetectionQuery(name string, namespace string, gitSourceURL string, gitSourceRevision string, gitSourceContext string, secret string, isMultiComponent bool) (*appservice.ComponentDetectionQuery, error) {
return h.CreateComponentDetectionQueryWithTimeout(name, namespace, gitSourceURL, gitSourceRevision, gitSourceContext, secret, isMultiComponent, 5*time.Minute)
return h.CreateComponentDetectionQueryWithTimeout(name, namespace, gitSourceURL, gitSourceRevision, gitSourceContext, secret, isMultiComponent, 6*time.Minute)
}

// CreateComponentDetectionQueryWithTimeout create a has componentdetectionquery from a given name, namespace, and git source and waits for it to be read
Expand Down
18 changes: 9 additions & 9 deletions tests/integration-service/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ const (
autoReleasePlan = "auto-releaseplan"
targetReleaseNamespace = "default"

componentRepoNameForStatusReporting = "hacbs-test-project-integration"
componentDefaultBranch = "main"
componentRevision = "34da5a8f51fba6a8b7ec75a727d3c72ebb5e1274"
pathInRepoForReportingPass = "pipelines/integration_resolver_pipeline_pass.yaml"
pathInRepoForReportingFail = "pipelines/integration_resolver_pipeline_fail.yaml"
referenceDoesntExist = "Reference does not exist"
checkrunStatusCompleted = "completed"
checkrunConclusionSuccess = "success"
checkrunConclusionFailure = "failure"
componentRepoNameForStatusReporting = "hacbs-test-project-integration"
componentDefaultBranch = "main"
componentRevision = "34da5a8f51fba6a8b7ec75a727d3c72ebb5e1274"
pathInRepoForReportingPass = "pipelines/integration_resolver_pipeline_pass.yaml"
pathInRepoForReportingFail = "pipelines/integration_resolver_pipeline_fail.yaml"
referenceDoesntExist = "Reference does not exist"
checkrunStatusCompleted = "completed"
checkrunConclusionSuccess = "success"
checkrunConclusionFailure = "failure"

snapshotAnnotation = "appstudio.openshift.io/snapshot"
scenarioAnnotation = "test.appstudio.openshift.io/scenario"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ var _ = framework.IntegrationServiceSuiteDescribe("Status Reporting of Integrati
Expect(err).ToNot(HaveOccurred())
Expect(testPipelinerun.Labels[snapshotAnnotation]).To(ContainSubstring(snapshot.Name))
Expect(testPipelinerun.Labels[scenarioAnnotation]).To(ContainSubstring(integrationTestScenarioPass.Name))

testPipelinerun, err = f.AsKubeDeveloper.IntegrationController.WaitForIntegrationPipelineToGetStarted(integrationTestScenarioFail.Name, snapshot.Name, testNamespace)
Expect(err).ToNot(HaveOccurred())
Expect(testPipelinerun.Labels[snapshotAnnotation]).To(ContainSubstring(snapshot.Name))
Expand Down

0 comments on commit 4090e16

Please sign in to comment.