Skip to content

Add retry to upgrade test broker#4353

Closed
devguyio wants to merge 1 commit intoknative:mainfrom
devguyio:upgrade-tests-retry
Closed

Add retry to upgrade test broker#4353
devguyio wants to merge 1 commit intoknative:mainfrom
devguyio:upgrade-tests-retry

Conversation

@devguyio
Copy link
Contributor

Proposed Changes

  • Add broker retry to the upgrade tests

@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Oct 20, 2020
@knative-prow-robot knative-prow-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Oct 20, 2020
@knative-prow-robot knative-prow-robot added the area/test-and-release Test infrastructure, tests or release label Oct 20, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: devguyio
To complete the pull request process, please assign chaodaig after the PR has been reviewed.
You can assign the PR to them by writing /assign @chaodaig in a comment when ready.

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

Details 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

@codecov
Copy link

codecov bot commented Oct 20, 2020

Codecov Report

Merging #4353 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4353   +/-   ##
=======================================
  Coverage   80.81%   80.81%           
=======================================
  Files         288      288           
  Lines        8001     8001           
=======================================
  Hits         6466     6466           
  Misses       1147     1147           
  Partials      388      388           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a6d13e7...4a606f1. Read the comment docs.

@cardil
Copy link
Contributor

cardil commented Oct 20, 2020

Awesome findings @devguyio.

Could you also please remove those lines so the test will not skip if missing events are found: https://github.com/knative/eventing/blob/832cea7/test/upgrade/probe_test.go#L55-L56

And revert those to 10msec https://github.com/knative/eventing/blob/2a052db/test/upgrade/prober/prober.go#L31-L33

@devguyio
Copy link
Contributor Author

/test pull-knative-eventing-upgrade-tests

@cardil
Copy link
Contributor

cardil commented Oct 28, 2020

#3260 can be revived after this PR lands or defaults for IMC are changed.

@knative-prow-robot
Copy link
Contributor

@devguyio: PR needs rebase.

Details

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.

@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 31, 2020
configFilename = "config.toml"
watholaEventNs = "com.github.cardil.wathola"
healthEndpoint = "/healthz"
brokerClass = "MTChannelBasedBroker"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think it makes sense to make this configurable through env var too? This way the file can be more flexible in terms of which broker class to test.

Copy link
Contributor

Choose a reason for hiding this comment

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

We can change this to defaultBrokerCalss, then check an env var like UPGRADE_TEST_BROKER_CLASS in deployBroker.

@zhongduo
Copy link
Contributor

zhongduo commented Nov 9, 2020

/assign

@zhongduo
Copy link
Contributor

zhongduo commented Nov 9, 2020

I am guessing this PR needs to be rebased or reapplied to the latest code since the recent PR about upgrade test change this file significantly.

@tayarani
Copy link
Contributor

@devguyio do you plan to go ahead with this?

numRetries := int32(5)
backoff := eventingduckv1beta1.BackoffPolicyLinear
p.client.CreateBrokerV1Beta1OrFail(brokerName,
resources.WithBrokerClassForBrokerV1Beta1(brokerClass),
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be moved to the upper level after #4616

Base automatically changed from master to main March 8, 2021 17:40
@knative-prow-robot
Copy link
Contributor

@devguyio: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
pull-knative-eventing-conformance-tests 4a606f1 link /test pull-knative-eventing-conformance-tests
pull-knative-eventing-upgrade-tests 4a606f1 link /test pull-knative-eventing-upgrade-tests
pull-knative-eventing-go-coverage 4a606f1 link /test pull-knative-eventing-go-coverage
pull-knative-eventing-reconciler-tests 4a606f1 link /test pull-knative-eventing-reconciler-tests

Full PR test history. Your PR dashboard.

Details

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.

@devguyio
Copy link
Contributor Author

devguyio commented Mar 9, 2021

Closing, seems to be no longer relevant

@devguyio devguyio closed this Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/test-and-release Test infrastructure, tests or release cla: yes Indicates the PR's author has signed the CLA. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants