OCPBUGS-26498: Add Upgrade Validation force arguments for running E2E tests#575
Conversation
cd63d3d to
2134bcf
Compare
2134bcf to
1611fb4
Compare
pkg/cmd/infra/router/router.go
Outdated
| flag.BoolVar(&o.UpgradeValidationForceAddCondition, "upgrade-validation-force-add-condition", isTrue(env("UPGRADE_VALIDATION_FORCE_ADD_CONDITION", "")), "If set, then the upgrade validation plugin will forcibly add the UnservableInFutureVersions condition.") | ||
| flag.BoolVar(&o.UpgradeValidationForceRemoveCondition, "upgrade-validation-force-remove-condition", isTrue(env("UPGRADE_VALIDATION_FORCE_REMOVE_CONDITION", "")), "If set, then the upgrade validation plugin will forcibly remove the UnservableInFutureVersions condition.") |
There was a problem hiding this comment.
Adding these options that will only be used for a specific E2E test seems a little odd to me. However, other than being a bit conspicuous, this seems well contained and important for being able to test and have confidence in the conflict resolution logic. What do you think about adding "debug" or "for testing" to the options or their descriptions?
| flag.BoolVar(&o.UpgradeValidationForceAddCondition, "upgrade-validation-force-add-condition", isTrue(env("UPGRADE_VALIDATION_FORCE_ADD_CONDITION", "")), "If set, then the upgrade validation plugin will forcibly add the UnservableInFutureVersions condition.") | |
| flag.BoolVar(&o.UpgradeValidationForceRemoveCondition, "upgrade-validation-force-remove-condition", isTrue(env("UPGRADE_VALIDATION_FORCE_REMOVE_CONDITION", "")), "If set, then the upgrade validation plugin will forcibly remove the UnservableInFutureVersions condition.") | |
| flag.BoolVar(&o.UpgradeValidationForceAddCondition, "debug-upgrade-validation-force-add-condition", isTrue(env("UPGRADE_VALIDATION_FORCE_ADD_CONDITION", "")), "If set, then the upgrade validation plugin will forcibly add the UnservableInFutureVersions condition. For testing purposes only.") | |
| flag.BoolVar(&o.UpgradeValidationForceRemoveCondition, "debug-upgrade-validation-force-remove-condition", isTrue(env("UPGRADE_VALIDATION_FORCE_REMOVE_CONDITION", "")), "If set, then the upgrade validation plugin will forcibly remove the UnservableInFutureVersions condition. For testing purposes only.") |
There was a problem hiding this comment.
Sorry forgot to respond. I agree with being more verbose about debugging. Done.
|
I had one comment, but it doesn't need to block this PR if you and Andy are good with the PR as is: #575 (comment). |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Miciah The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest-required |
Add --debug-upgrade-validation-force-add-condition and --debug-upgrade-validation-force-remove-condition as arguments to the openshift-router. These force add or force remove the UnservableInFutureVersions condition to allow for an E2E test to do contention testing on a condition-level. For debugging and testing purposes only.
1611fb4 to
0ff5da4
Compare
|
/lgtm |
|
/hold cancel |
|
/retest |
|
@gcs278: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
/retitle "OCPBUGS-26498: Add Upgrade Validation force arguments for running E2E tests" |
|
@gcs278: This pull request references Jira Issue OCPBUGS-26498, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
@gcs278: Jira Issue OCPBUGS-26498: Some pull requests linked via external trackers have merged: The following pull requests linked via external trackers have not merged: These pull request must merge or be unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with Jira Issue OCPBUGS-26498 has not been moved to the MODIFIED state. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/retitle OCPBUGS-26498: Add Upgrade Validation force arguments for running E2E tests (Without the double-quotes.) |
|
[ART PR BUILD NOTIFIER] This PR has been included in build ose-haproxy-router-base-container-v4.17.0-202404231146.p0.gd2d6892.assembly.stream.el9 for distgit ose-haproxy-router-base. |
Add
--debug-upgrade-validation-force-add-conditionand--debug-upgrade-validation-force-remove-conditionas arguments to theopenshift-router. These force add or force remove the
UnservableInFutureVersionscondition to allow for an E2E test to do contention testing on a condition-level.Origin Test PR that these arguments support: openshift/origin#28710