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

WIP: Add option to add additional markexpression #9742

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

Conversation

petr-balogh
Copy link
Member

No description provided.

@petr-balogh petr-balogh added the team/ecosystem Ecosystem team related issues/PRs label Apr 30, 2024
@petr-balogh petr-balogh requested a review from a team as a code owner April 30, 2024 09:32
@pull-request-size pull-request-size bot added the size/M PR that changes 30-99 lines label Apr 30, 2024
shivamdurgbuns
shivamdurgbuns previously approved these changes Apr 30, 2024
Copy link
Member

@shivamdurgbuns shivamdurgbuns left a comment

Choose a reason for hiding this comment

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

Nice approach.

@petr-balogh
Copy link
Member Author

Verification job:
https://url.corp.redhat.com/c2fd9a5

@mashetty330
Copy link
Contributor

@petr-balogh can you briefly explain why do we need this approach?

Copy link

openshift-ci bot commented Apr 30, 2024

New changes are detected. LGTM label has been removed.

Copy link

openshift-ci bot commented Apr 30, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: petr-balogh

The full list of commands accepted by this bot can be found 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

1 similar comment
Copy link

openshift-ci bot commented Apr 30, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: petr-balogh

The full list of commands accepted by this bot can be found 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

Signed-off-by: Petr Balogh <pbalogh@redhat.com>
Signed-off-by: Petr Balogh <pbalogh@redhat.com>
@petr-balogh petr-balogh force-pushed the add-option-to-add-additional-markexpression branch from 6656cf5 to 83de713 Compare April 30, 2024 13:02
@petr-balogh
Copy link
Member Author

@petr-balogh can you briefly explain why do we need this approach?

I understood from @shivamdurgbuns that there is such request to run in our production jobs on this arbiter specific setup also the tests decorated with stretchcluster_required.

IIUC the requirements that currently we run the production job in nightly pipeline with acceptance marker only - so a lot of test are skipped and not triggered and required by this platform.

This approach will allow us to directly specify in specific production configuration job the extra marker to be also executed as part of every our production execution as part of whatever suite which we will have better coverage for other tests for this specific deployment type.

Advantage is that we deploy only one job - and be able to run specific platform/deployment related tests as part of that execution as well without need to change the jenkins jobs logic and increase coverage for specific deployment type.

But if I understand the requirements wrong please let me know.

@@ -334,6 +335,10 @@ def pytest_collection_modifyitems(session, config, items):
item.user_properties.append(("squad", squad.capitalize()))

if not (teardown or deploy or (deploy and skip_ocs_deployment)):
if ocsci_config.RUN.get("extra_markexpr"):
Copy link
Member Author

Choose a reason for hiding this comment

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

We might still have a problem with upgrade scenario when we don't want to have this tests selected.

I am still not sure we want to have this kind of logic if it will be beneficial for us or not. Still trying to go with some pros and cons.

@petr-balogh petr-balogh changed the title Add option to add additional markexpression WIP: Add option to add additional markexpression Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress size/M PR that changes 30-99 lines team/ecosystem Ecosystem team related issues/PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants