Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-10093

Fix failure in release-tests-ecosystem-s2i test suite

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • Pipelines 1.21.0
    • QA
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False

      Fix failure in release-tests-ecosystem-s2i test suite:

      Reason:
      In Openshift console, svc should be exposed via --port argument, not via --target-port, using --target-port is causing test to fail with error: cannot use --target-port with --generator=route/v1, modified the test to use --port.

      Test Case: S2I nodejs pipelinerun: PIPELINES-33-TC01:
      Error:

      2026/01/08 12:30:29 Waiting for operator to be up and running....
      2026/01/08 12:30:29 Operator is up
            * Validate Operator should be installed    ...[PASS]
      2026/01/08 12:30:30 output: pipeline.tekton.dev/nodejs-ex-git created
      2026/01/08 12:30:31 output: persistentvolumeclaim/shared-pvc created
      2026/01/08 12:30:32 output: deploymentconfig.apps.openshift.io/nodejs-ex-git created
      2026/01/08 12:30:32 output: imagestream.image.openshift.io/nodejs-ex-git created
      2026/01/08 12:30:33 output: pipelinerun.tekton.dev/nodejs-ex-git-pr created
            * Create 
            
               |S.NO|resource_dir                                           |
               |----|-------------------------------------------------------|
               |1   |testdata/ecosystem/pipelines/nodejs-ex-git.yaml        |
               |2   |testdata/pvc/pvc.yaml                                  |
               |3   |testdata/ecosystem/deploymentconfigs/nodejs-ex-git.yaml|
               |4   |testdata/ecosystem/imagestreams/nodejs-ex-git.yaml     |
               |5   |testdata/ecosystem/pipelineruns/nodejs-ex-git.yaml     |  ...[PASS]
      2026/01/08 12:30:33 validating pipeline run nodejs-ex-git-pr for success state...
      2026/01/08 12:31:44 pipelineRun: nodejs-ex-git-pr is successful under namespace : releasetest-khsdg
            * Verify pipelinerun 
            
               |S.NO|pipeline_run_name|status    |
               |----|-----------------|----------|
               |1   |nodejs-ex-git-pr |successful|     ...[PASS]
            * Expose Deployment config "nodejs-ex-git" on port "3000"  ...[FAIL]
              
              Failed Step: Expose Deployment config "nodejs-ex-git" on port "3000"
              Specification: specs/ecosystem/ecosystem-s2i.spec:27
              Error Message: [assertion failed: 
              Command:  oc expose svc nodejs-ex-git -n releasetest-khsdg --target-port=3000
              ExitCode: 1
              Error:    exit status 1
              Stdout:   
              Stderr:   error: cannot use --target-port with --generator=route/v1
              
              
              Failures:
              ExitCode was 1 expected 0
              Expected no error]
              Stacktrace: 
                      /home/bmajjiga/go/pkg/mod/github.com/getgauge-contrib/gauge-go@v0.5.1/testsuit/testing.go:46
              github.com/openshift-pipelines/release-tests/pkg/cmd.testsuitAdaptor.Log(...)
                      /home/bmajjiga/Documents/automation/bharat/release-tests/pkg/cmd/cmd.go:34
              gotest.tools/v3/internal/assert.RunComparison({0x7fcf6475f958, 0x659d400}, 0x45d3158, 0xc00047a050, {0x0, 0x0, 0x0})
                      /home/bmajjiga/go/pkg/mod/gotest.tools/v3@v3.5.2/internal/assert/result.go:60 +0x2b5
              gotest.tools/v3/internal/assert.Eval({0x7fcf6475f958, 0x659d400}, 0x45d3158, {0x3df33a0, 0xc00047a050}, {0x0, 0x0, 0x0})
                      /home/bmajjiga/go/pkg/mod/gotest.tools/v3@v3.5.2/internal/assert/assert.go:56 +0x1ab
              gotest.tools/v3/assert.Assert({0x48e5260, 0x659d400}, {0x3df33a0, 0xc00047a050}, {0x0, 0x0, 0x0})
                      /home/bmajjiga/go/pkg/mod/gotest.tools/v3@v3.5.2/assert/assert.go:145 +0xce
              gotest.tools/v3/icmd.(*Result).Assert(0xc00071e140, {0x48e5260, 0x659d400}, {0x0, 0x0, {0x0, 0x0}, {0x0, 0x0}, {0x0, ...}})
                      /home/bmajjiga/go/pkg/mod/gotest.tools/v3@v3.5.2/icmd/command.go:62 +0x135
              github.com/openshift-pipelines/release-tests/pkg/cmd.Assert({0x0, 0x0, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}}, {0xc000ab4000, 0x7, ...})
                      /home/bmajjiga/Documents/automation/bharat/release-tests/pkg/cmd/cmd.go:50 +0x105
              github.com/openshift-pipelines/release-tests/pkg/cmd.MustSucceed(...)
                      /home/bmajjiga/Documents/automation/bharat/release-tests/pkg/cmd/cmd.go:43
              github.com/openshift-pipelines/release-tests/pkg/triggers.ExposeDeploymentConfig(0x2?, {0xc000b0e120, 0xd}, {0xc000b0e130, 0x4}, {0xc000134168, 0x11})
                      /home/bmajjiga/Documents/automation/bharat/release-tests/pkg/triggers/triggers.go:68 +0x309
              github.com/openshift-pipelines/release-tests/steps/triggers.init.func3({0xc000b0e120, 0xd}, {0xc000b0e130, 0x4})
                      /home/bmajjiga/Documents/automation/bharat/release-tests/steps/triggers/triggers.go:24 +0xce
              reflect.Value.call({0x3d24f20?, 0x45d2b08?, 0xc000b5bb18?}, {0x4444fe1, 0x4}, {0xc000af08a0, 0x2, 0x0?})
                      /usr/local/go/src/reflect/value.go:584 +0xca6
              reflect.Value.Call({0x3d24f20?, 0x45d2b08?, 0x20?}, {0xc000af08a0?, 0x17e7601?, 0x10?})
                      /usr/local/go/src/reflect/value.go:368 +0xb9
              github.com/getgauge-contrib/gauge-go/testsuit.executeFunc({0x3d24f20?, 0x45d2b08?, 0x6c?}, {0xc0005b0d20, 0x2, 0x80?})
                      /home/bmajjiga/go/pkg/mod/github.com/getgauge-contrib/gauge-go@v0.5.1/testsuit/funcExecutor.go:47 +0x20d
              github.com/getgauge-contrib/gauge-go/testsuit.(*Step).Execute(0xc000500540?, {0xc0005b0d20?, 0x26?, 0x8e?})
                      /home/bmajjiga/go/pkg/mod/github.com/getgauge-contrib/gauge-go@v0.5.1/testsuit/step.go:17 +0x7d
              github.com/getgauge-contrib/gauge-go/messageprocessors.(*ExecuteStepProcessor).Process(0x3ff2de0?, 0xc0005e9b80, 0xc000000007?)
                      /home/bmajjiga/go/pkg/mod/github.com/getgauge-contrib/gauge-go@v0.5.1/messageprocessors/ExecuteStepProcessor.go:20 +0x9f
              github.com/getgauge-contrib/gauge-go/gauge.Run()
                      /home/bmajjiga/go/pkg/mod/github.com/getgauge-contrib/gauge-go@v0.5.1/gauge/runner.go:219 +0x20f
              command-line-arguments.init.0()
                      /tmp/gauge_temp1767855611904996801/gauge_test.go:37 +0xf

       

              rh-ee-bmajjiga Bharat Reddy Majjiga
              rh-ee-bmajjiga Bharat Reddy Majjiga
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: