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

fix(KONFLUX-2311): Fix PVC function in load test #1064

Merged
merged 3 commits into from
Mar 12, 2024

Conversation

siddardh-ra
Copy link
Contributor

Update PVC function for ITS
Add handling also for ITS pipelineRuns
Signed-Off-By: Siddardh R A [email protected]

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

Issue ticket number and link

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("STONE-123456789 devfile source")
  • I have updated labels (if needed)

@siddardh-ra siddardh-ra requested a review from naftalysh March 4, 2024 12:29
@openshift-ci openshift-ci bot requested review from happybhati and jsztuka March 4, 2024 12:29
@naftalysh
Copy link
Contributor

/test ?

Copy link

openshift-ci bot commented Mar 4, 2024

@naftalysh: The following commands are available to trigger required jobs:

  • /test images
  • /test load-test-ci-100u-1t
  • /test load-test-ci-10u-10t
  • /test load-test-ci-10u-10t-go
  • /test load-test-ci-10u-10t-java
  • /test load-test-ci-10u-10t-nodejs
  • /test load-test-ci-10u-10t-python
  • /test load-test-ci-10u-10t-quarkus
  • /test load-test-ci-1u-100t
  • /test load-test-ci-20u-5t
  • /test load-test-ci-2u-50t
  • /test load-test-ci-50u-2t
  • /test load-test-ci-5u-20t
  • /test load-test-ci-max-concurrency-basic-tekton-tuned
  • /test load-test-ci-poc
  • /test load-test-ci-tekton-tuning-base
  • /test load-test-ci-tekton-tuning-tuned
  • /test max-concurrency-advanced
  • /test max-concurrency-basic
  • /test redhat-appstudio-e2e

Use /test all to run the following jobs that were automatically triggered:

  • pull-ci-redhat-appstudio-e2e-tests-main-images

In response to this:

/test ?

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@naftalysh
Copy link
Contributor

/test load-test-ci-10u-10t

Copy link
Contributor

@naftalysh naftalysh left a comment

Choose a reason for hiding this comment

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

I have given comments on how to update the code to avoid duplication

cmd/loadTests.go Outdated
@@ -1735,6 +1759,9 @@ func (h *ConcreteHandlerItsPipelines) validateItsPipeline(ctx *JourneyContext, a
return false, nil
}
if IntegrationTestsPipelineRun.IsDone() {
if !stage {
h.handlePVCSforITS(threadIndex, framework, IntegrationTestsPipelineRun)
Copy link
Contributor

Choose a reason for hiding this comment

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

This function is a duplicate of handlePVCS function and it fails SonarCloud Duplicated Lines (%) on New Code
55.6% rule
The way to allow handlePVCSto be used for both handlers - ConcreteHandlerPipelines and ConcreteHandlerItsPipelines is -

  1. To change the below ConcreteHandlerItsPipelines struct definition

type ConcreteHandlerItsPipelines struct {
BaseHandler
}

To
type ConcreteHandlerItsPipelines struct {
*ConcreteHandlerPipelines // Embedding ConcreteHandlerPipelines
}

2 . Update the below
h.handlePVCSforITS(threadIndex, framework, IntegrationTestsPipelineRun)

To
h.handlePVCS(threadIndex, framework, IntegrationTestsPipelineRun)

  1. Delete function handlePVCSforITS

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the code 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @siddardh-ra
I found there is a change needed, I create a review

@siddardh-ra siddardh-ra requested a review from naftalysh March 4, 2024 19:06
@naftalysh
Copy link
Contributor

/test load-test-ci-10u-10t

@naftalysh
Copy link
Contributor

load-test-ci-10u-10t seamed to fail the load test
Check it's logs

@naftalysh
Copy link
Contributor

/hold

Copy link
Contributor

@naftalysh naftalysh left a comment

Choose a reason for hiding this comment

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

I think this suggested change is needed to fix the struct embedding
The previous declaration caused an error message in the previous load-test-ci-10u-10t test

cmd/loadTests.go Outdated
@@ -1666,7 +1673,7 @@ func (h *ConcreteHandlerPipelines) handlePVCS(threadIndex int, framework *framew
}

type ConcreteHandlerItsPipelines struct {
BaseHandler
*ConcreteHandlerPipelines // Embedding ConcreteHandlerPipelines
Copy link
Contributor

Choose a reason for hiding this comment

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

You should change it to the below to fix the struct embedding
ConcreteHandlerPipelines // Embedding ConcreteHandlerPipelines

@siddardh-ra
Copy link
Contributor Author

/test load-test-ci-10u-10t

@naftalysh
Copy link
Contributor

Hi @siddardh-ra
It seems that
ci/prow/load-test-ci-10u-10t succeeded eventhough it's not reflected in the PR page here (look at https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/redhat-appstudio_e2e-tests/1064/pull-ci-redhat-appstudio-e2e-tests-main-load-test-ci-10u-10t/1765344607207428096)

Now check it in GITHUB Action load tests workflow while pointing to your branch
https://github.com/your-github-forkname/e2e-tests/actions/workflows/loadtest.yaml

Copy link

openshift-ci bot commented Mar 8, 2024

@siddardh-ra: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/load-test-ci-daily-10u-10t 1b8d021 link true /test load-test-ci-daily-10u-10t
ci/prow/load-test-max-concurrency-basic 1b8d021 link true /test load-test-max-concurrency-basic
ci/prow/load-test-max-concurrency-advanced 1b8d021 link true /test load-test-max-concurrency-advanced

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@naftalysh
Copy link
Contributor

/test load-test-ci-10u-10t-nodejs

@naftalysh
Copy link
Contributor

/test ?

Copy link

openshift-ci bot commented Mar 11, 2024

@naftalysh: The following commands are available to trigger required jobs:

  • /test images
  • /test load-test-ci-100u-1t
  • /test load-test-ci-10u-10t
  • /test load-test-ci-10u-10t-go
  • /test load-test-ci-10u-10t-java
  • /test load-test-ci-10u-10t-nodejs
  • /test load-test-ci-10u-10t-python
  • /test load-test-ci-10u-10t-quarkus
  • /test load-test-ci-1u-100t
  • /test load-test-ci-20u-5t
  • /test load-test-ci-2u-50t
  • /test load-test-ci-50u-2t
  • /test load-test-ci-5u-20t
  • /test load-test-ci-max-concurrency-basic-tekton-tuned
  • /test load-test-ci-poc
  • /test load-test-ci-tekton-tuning-base
  • /test load-test-ci-tekton-tuning-tuned
  • /test max-concurrency-advanced
  • /test max-concurrency-basic
  • /test redhat-appstudio-e2e

Use /test all to run the following jobs that were automatically triggered:

  • pull-ci-redhat-appstudio-e2e-tests-main-images

In response to this:

/test ?

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@naftalysh
Copy link
Contributor

/approve

Copy link

openshift-ci bot commented Mar 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: naftalysh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@naftalysh
Copy link
Contributor

/unhold

@naftalysh
Copy link
Contributor

/lgtm

@naftalysh
Copy link
Contributor

/test load-test-ci-10u-10t

siddardh added 2 commits March 12, 2024 17:40
Update PVC function for ITS
Add handling also for ITS pipelineRuns
Signed-Off-By: Siddardh R A <[email protected]>
@openshift-ci openshift-ci bot removed the lgtm label Mar 12, 2024
Copy link

sonarcloud bot commented Mar 12, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@naftalysh
Copy link
Contributor

/test load-test-ci-10u-10t

@naftalysh
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Mar 12, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit f9452b0 into konflux-ci:main Mar 12, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants