-
Notifications
You must be signed in to change notification settings - Fork 630
Feature: upgrade & downgrade tests #2388
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
Merged
knative-prow-robot
merged 56 commits into
knative:master
from
cardil:feature/upgrade-tests
May 20, 2020
Merged
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
0df4543
Change scripts to enable upgrade tests
cardil 485e839
Upgrade tests overall structure
cardil 816b3ce
Adding Istio & Serving to upgrade tests
cardil e13bf3f
Delete non required Istio files
cardil acb8dc6
Move prober to separate package
cardil b45ff25
Working deploy & remove of configuration
cardil 882119e
Probe receiver deploy & remove
cardil 2d925ae
Probe forwarder deploy & removal
cardil e91afc7
Switch to zap.SugarLogger for better messages visibility
cardil 2a66e45
Inteligent waiting for all conditions
cardil 614cd40
Fix interval configuration for Sender
cardil dfbf3b6
Deploy & removal of sender pod
cardil b046fd4
Update ready message a bit
cardil d9f02c3
Fetch receiver report via HTTP Get
cardil a16e983
Don't deploy IMC from HEAD before each test
cardil 99909a9
Describe an upgrade tests
cardil f33ab14
Merge remote-tracking branch 'upstream/master' into feature/upgrade-t…
cardil dcaaca4
Ensure knative-networking is installed just once
cardil d01a566
Change error message to be more simplistic
cardil 3746ec0
A proper way of figure out a cluster hostname
cardil 9d0605b
Better way of getting replicas while scale to zero
cardil 52f603e
Removing .editorconfig as not revelant to knative/eventing#2388
cardil cf2e719
Inteligent way of choosing serving version
cardil 28db74a
Merge remote-tracking branch 'upstream/master' into feature/upgrade-t…
cardil 77ae82a
Moving shellchecks to other PR
cardil ccc1cc2
Use Go's sync/errgroup for wait a bunch of conditions
cardil 3cb28f3
Use vendor for ensure.NoError
cardil 1312462
Move awiat parameters to await package
cardil 9c8cdab
Remove trace span metric
cardil 6cfcc73
Use WaitForPodRunning from knative/pkg lib
cardil af5c674
Merge branch 'master' of https://github.com/knative/eventing into fea…
cardil 206b8ea
Use ConfigMap instead of Secret
cardil 9cdbe67
Warn about errors in upgrade tests (ref #2665)
cardil 5960650
Move knative serving to duck & resources libs
cardil bab062a
Moving group await to lib package
cardil e6a1b40
Create triggers with resource builders
cardil e9ba06a
Add comment about wathola version
cardil e4049a9
Warn with FAIL to trigger reporting on Prow
cardil daed3c3
Fixing issues with scripts
cardil bd308bd
Move nodes resolver code in preparation for native/pkg#1001 merger
cardil e7d49fa
Add notice about wathola donation
cardil 95cb9c2
Donation of wathola testing tool
cardil 62f7844
Use test-infra scripts to intall serving and monitoring
cardil ecd0c9e
Removal of Istio & Serving from tests
cardil b21f060
Merge branch 'bugfix/donate-wathola' into feature/upgrade-tests
cardil ea03005
Wathola toml configuration respects default
cardil fdaf208
Merge remote-tracking branch 'upstream/master' into feature/upgrade-t…
cardil 69cf66e
Updating codegen
cardil 36b0a94
Cleanups after automatic review
cardil 8b94303
Fixing race conditions on wathola
cardil a847e0d
Merge branch 'master' of https://github.com/knative/eventing into fea…
cardil 803ce37
E2E Upgrade tests scripts
cardil 44a5c2a
Wathola receiver non-blocking and without race
cardil fe54820
Migrate to cloudevents v2
cardil 823bdf6
Move prober + wathola tool to upgrade directory
cardil 4739de5
Use of latest version of TOML parser
cardil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # Copyright 2020 The Knative Authors | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| # Docs -> file://./upgrade/README.md | ||
|
|
||
| # Script entry point. | ||
|
|
||
| export GO111MODULE=on | ||
|
|
||
| source "$(dirname "$0")/e2e-common.sh" | ||
|
|
||
| # Overrides | ||
|
|
||
| function knative_setup { | ||
|
cardil marked this conversation as resolved.
|
||
| install_latest_release || fail_test 'Installing latest release of Knative Eventing failed' | ||
| } | ||
|
|
||
| function install_test_resources { | ||
| # Nothing to install before tests | ||
| true | ||
| } | ||
|
|
||
| function uninstall_test_resources { | ||
| # Nothing to uninstall after tests | ||
| true | ||
| } | ||
|
|
||
| initialize $@ --skip-istio-addon | ||
|
|
||
| TIMEOUT=${TIMEOUT:-30m} | ||
|
|
||
| header "Running preupgrade tests" | ||
|
|
||
| go_test_e2e -tags=preupgrade -timeout="${TIMEOUT}" ./test/upgrade || fail_test | ||
|
|
||
| header "Starting prober test" | ||
| rm -fv /tmp/prober-ready | ||
| go_test_e2e -tags=probe -timeout="${TIMEOUT}" ./test/upgrade & | ||
| PROBER_PID=$! | ||
| echo "Prober PID is ${PROBER_PID}" | ||
|
|
||
| wait_for_file /tmp/prober-ready || fail_test | ||
|
|
||
| header "Performing upgrade to HEAD" | ||
| install_head || fail_test 'Installing HEAD version of eventing failed' | ||
| install_channel_crds || fail_test 'Installing HEAD channel CRDs failed' | ||
| install_broker || fail_test 'Installing HEAD Broker failed' | ||
|
|
||
| header "Running postupgrade tests" | ||
| go_test_e2e -tags=postupgrade -timeout="${TIMEOUT}" ./test/upgrade || fail_test | ||
|
|
||
| header "Performing downgrade to latest release" | ||
| install_latest_release || fail_test 'Installing latest release of Knative Eventing failed' | ||
|
|
||
| header "Running postdowngrade tests" | ||
| go_test_e2e -tags=postdowngrade -timeout="${TIMEOUT}" ./test/upgrade || fail_test | ||
|
|
||
| # The prober is blocking on /tmp/prober-signal to know when it should exit. | ||
| echo "done" > /tmp/prober-signal | ||
|
|
||
| header "Waiting for prober test" | ||
| wait ${PROBER_PID} || fail_test "Prober failed" | ||
|
|
||
| success | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.