forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Move flaky tests that fail very often to "quarantine" test group (…
…apache#10148) ### Motivation There are a few tests that fail very often. This is blocking the merging of PRs currently. ### Modifications Move the problematic tests to "quarantine" test group. This test group will be run, but the test failures will be ignored. - Configure "excludedGroups" property with "quarantine" default value - Make modifications so that tests in the quarantine group can be run. It is required to make changes to "BeforeMethod/BeforeClass" annotations so that the method will get run for the quarantine group. `alwaysRun=true` should be used instead of listing individual groups in the Before* annotations. - Add reporting for quarantined tests so that the PR reviewer can check if there's a sudden change in Quarantined test results Test result will be visible directly in GitHub Actions UI, [example](https://github.com/lhotari/pulsar/actions/runs/726717497). ![image](https://user-images.githubusercontent.com/66864/113923302-1464e080-97f1-11eb-8719-a25f854b7f8e.png) [Detailed quarantined test results](https://github.com/lhotari/pulsar/runs/2289519905?check_suite_focus=true#step:8:165): ![image](https://user-images.githubusercontent.com/66864/113923589-5f7ef380-97f1-11eb-9179-8fc0e960f9fa.png) ### Issue reports for quarantined tests * apache#10150 * apache#9916 * apache#10151 * apache#10117 * apache#10152 * apache#6300
- Loading branch information
Showing
80 changed files
with
444 additions
and
241 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you 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. | ||
# | ||
|
||
# shell function library for Pulsar CI builds | ||
|
||
# lists all available functions in this tool | ||
function ci_list_functions() { | ||
declare -F | awk '{print $NF}' | sort | egrep '^ci_' | sed 's/^ci_//' | ||
} | ||
|
||
# prints thread dumps for all running JVMs | ||
# used in CI when a job gets cancelled because of a job timeout | ||
function ci_print_thread_dumps() { | ||
for java_pid in $(jps -q -J-XX:+PerfDisableSharedMem); do | ||
echo "----------------------- pid $java_pid -----------------------" | ||
cat /proc/$java_pid/cmdline | xargs -0 echo | ||
jcmd $java_pid Thread.print -l | ||
jcmd $java_pid GC.heap_info | ||
done | ||
return 0 | ||
} | ||
|
||
if [ -z "$1" ]; then | ||
echo "usage: $0 [ci_tool_function_name]" | ||
echo "Available ci tool functions:" | ||
ci_list_functions | ||
exit 1 | ||
fi | ||
ci_function_name="ci_$1" | ||
shift | ||
|
||
if [[ "$(LC_ALL=C type -t $ci_function_name)" == "function" ]]; then | ||
eval "$ci_function_name" "$@" | ||
else | ||
echo "Invalid ci tool function" | ||
echo "Available ci tool functions:" | ||
ci_list_functions | ||
exit 1 | ||
fi |
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
Oops, something went wrong.