-
Notifications
You must be signed in to change notification settings - Fork 31
modified pr checks #733
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
modified pr checks #733
Conversation
Reviewer's GuideThis PR refactors deployment configs by removing legacy KESSEL environment variables in favor of a unified BACKEND_VERSION parameter across all services, and enhances the PR check script to dynamically select IQE test markers and CI metadata based on the backend version. Flow diagram for backend version selection in PR check scriptflowchart TD
Start(["Start PR check script"]) --> GetVersion["Read BACKEND_VERSION (default: 'old')"]
GetVersion --> Decision{Is BACKEND_VERSION 'old', 'new', or other?}
Decision -->|old| OldVars["Set IQE_MARKER_EXPRESSION='ros_smoke and (common or old_backend)'\nSet IBUTSU_SOURCE='ros-old-backend-pr'"]
Decision -->|new| NewVars["Set IQE_MARKER_EXPRESSION='ros_smoke and (common or new_backend)'\nSet IBUTSU_SOURCE='ros-new-backend-pr'"]
Decision -->|other| DefaultVars["Set IQE_MARKER_EXPRESSION='ros_smoke'\nSet IBUTSU_SOURCE='ros-backend-pr'"]
OldVars --> End(["Continue CI/CD pipeline"])
NewVars --> End
DefaultVars --> End
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
upadhyeammit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the same time, are we also wanting to handle a trigger for both pipelines? or we can just use two triggers and that should be good as well
pr_check.sh
Outdated
| # NEW: Dual backend testing logic based on job name | ||
| echo "JOB_NAME: $JOB_NAME" | ||
|
|
||
| if [[ "$JOB_NAME" == *"old-backend"* ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need change based on ros-backend-v1-pr-tests
pr_check.sh
Outdated
|
|
||
| if [[ "$JOB_NAME" == *"old-backend"* ]]; then | ||
| # Old backend testing configuration | ||
| export ROS_NEW_BACKEND_FLAG_ENABLED="false" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which flag is this? and where its getting used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://gitlab.cee.redhat.com/insights-qe/iqe-ros-plugin/-/merge_requests/413
This flag is used in iqe.
Can you please check this pr.
pr_check.sh
Outdated
| # Old backend testing configuration | ||
| export ROS_NEW_BACKEND_FLAG_ENABLED="false" | ||
| export IQE_MARKER_EXPRESSION="ros_smoke and (common or old_backend)" | ||
| export IBUTSU_SOURCE="ros-old-backend-pr" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it possible to make this in sync with name ros-backend-v1-pr-tests
pr_check.sh
Outdated
| echo " Configured for OLD backend testing" | ||
| echo " - Unleash flag will be set to: FALSE" | ||
| echo " - Test markers: ros_smoke and (common or old_backend)" | ||
| elif [[ "$JOB_NAME" == *"new-backend"* ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this in sync with ros-backend-v2-pr-tests
pr_check.sh
Outdated
| echo " - Test markers: ros_smoke and (common or old_backend)" | ||
| elif [[ "$JOB_NAME" == *"new-backend"* ]]; then | ||
| # New backend testing configuration | ||
| export ROS_NEW_BACKEND_FLAG_ENABLED="true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same, where this is getting used?
pr_check.sh
Outdated
| # New backend testing configuration | ||
| export ROS_NEW_BACKEND_FLAG_ENABLED="true" | ||
| export IQE_MARKER_EXPRESSION="ros_smoke and (common or new_backend)" | ||
| export IBUTSU_SOURCE="ros-new-backend-pr" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it can align with ros-backend-v2-pr-tests then it will be nice
|
/retest |
|
test-v1 |
|
/retest test-v1 |
This reverts commit 7ee6d49.
688665c to
ead0834
Compare
PR Title 💥
Please title this PR with a summary of the change, along with the JIRA card number.
Suggested formats:
Feel free to remove this section from PR description once done.
Why do we need this change? 💭
Please include the context of this change here.
Documentation update? 📝
Security Checklist 🔒
Upon raising this PR please go through RedHatInsights/secure-coding-checklist
💂♂️ Checklist 🎯
Additional 📣
Feel free to add any other relevant details such as links, notes, screenshots, here.
Summary by Sourcery
Allow dynamic selection of backend version by replacing KESSEL flags with a unified BACKEND_VERSION parameter and adapting pull request checks and deployment arguments accordingly
New Features:
Enhancements:
CI: