-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade tests with lots of resources (#2239)
* Upgrade Stress tests for control plane Deploying different Knative Serving and Eventing resources multiple times, performing an upgrade and checking that the resources are still ready. * TMP: kitchensink upgrades actually run stress tests * Also check Serving, Eventing, Kafka version during upgrade * Verify post-install jobs * Fix make target * NumDeployments == 3 Works with cluster scaled to 5 With NumDeployments == 4 the Nodes get unready * Verify Pod restarts in system namespaces * Record memory usage * Upgrade stress tests complete * Fix adding Serverless upgrade operation * Wait 2 minutes before checking * Move namespace consts to top-level test package * Do not call dev.sh * Cleanup * Ignore version-migrator when counting pod restarts * Add KafkaSink to kitchensink tests * PingSource ContainerSource ApiServerSource ApiServerSource unfinished * Vendor ApiServerSource from eventing * ApiServerSource finished * Define components for Sourcse * SourceFeatureSet * Pass images.producer.file to all kitchensink tests * Use apiserversource.WithSink * Properly install KafkaTopic * Remove test change * Fix lint * Reduce number of triggers in short mode * Deploy sink only with one source * Use inMemoryChannel as sink for sources * Ignore storage version migration pods They have different names in Eventing/Serving and EKB: storage-version-migration-eventing- storage-version-migration-serving- knative-kafka-storage-version-migrator * Prevent re-initializing flags from knative.dev/pkg/test * Track namespace together with Pod for memory consumption * Force garbage collection * TMP: Use GODEBUG=gctrace=1 for serving controller * Induce failure to get GC logs before upgrade * Set GOGC to 20 to trigger GC more often * Run complete test with GOGC=20 for controller * Enable profiling temporarily * Do not compare memory consumption It's not reliable through this metric * Remove unused const * Disable profiling for Serving * Remove temporary alias in Makefile
- Loading branch information
Showing
30 changed files
with
907 additions
and
162 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
# shellcheck disable=SC1091,SC1090 | ||
source "$(dirname "${BASH_SOURCE[0]}")/lib.bash" | ||
|
||
set -Eeuo pipefail | ||
|
||
# Enable extra verbosity if running in CI. | ||
if [ -n "$OPENSHIFT_CI" ]; then | ||
env | ||
fi | ||
debugging.setup # both install and test | ||
dump_state.setup # test | ||
|
||
logger.success '🚀 Cluster prepared for testing.' | ||
|
||
kitchensink_upgrade_stress_tests | ||
|
||
success |
This file contains 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 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 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.