Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
阿啄debugIT
transmittable-thread-local
提交
881985a1
T
transmittable-thread-local
项目概览
阿啄debugIT
/
transmittable-thread-local
与 Fork 源项目一致
从无法访问的项目Fork
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
transmittable-thread-local
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
881985a1
编写于
4月 28, 2020
作者:
oldratlee
🔥
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
strict bash mode: add `set -u` option
上级
d7121220
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
35 addition
and
32 deletion
+35
-32
scripts/checke-japi-compliance.sh
scripts/checke-japi-compliance.sh
+2
-4
scripts/codecov.sh
scripts/codecov.sh
+1
-1
scripts/common.sh
scripts/common.sh
+14
-10
scripts/common_build.sh
scripts/common_build.sh
+1
-1
scripts/gen-pom4ide.sh
scripts/gen-pom4ide.sh
+1
-1
scripts/integration-test.sh
scripts/integration-test.sh
+3
-3
scripts/perf-test/memoryleak-ThreadLocal.sh
scripts/perf-test/memoryleak-ThreadLocal.sh
+1
-1
scripts/perf-test/memoryleak-TransmittableThreadLocal.sh
scripts/perf-test/memoryleak-TransmittableThreadLocal.sh
+1
-1
scripts/perf-test/tps-ThreadLocal.sh
scripts/perf-test/tps-ThreadLocal.sh
+1
-1
scripts/perf-test/tps-TransmittableThreadLocal.sh
scripts/perf-test/tps-TransmittableThreadLocal.sh
+1
-1
scripts/prepare-jdk.sh
scripts/prepare-jdk.sh
+3
-2
scripts/release.sh
scripts/release.sh
+1
-1
scripts/run-agent-demo.sh
scripts/run-agent-demo.sh
+1
-1
scripts/run-agent-for-class.sh
scripts/run-agent-for-class.sh
+2
-2
scripts/run-agent-test.sh
scripts/run-agent-test.sh
+1
-1
scripts/run-junit.sh
scripts/run-junit.sh
+1
-1
未找到文件。
scripts/checke-japi-compliance.sh
浏览文件 @
881985a1
...
...
@@ -2,14 +2,12 @@
# Java API Compliance Checker (JAPICC),
# a tool for checking backward binary and source-level compatibility of a Java library API.
# https://github.com/lvc/japi-compliance-checker
set
-eEo
pipefail
set
-eE
u
o
pipefail
cd
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
export
TTL_CI_TEST_MODE
=
true
source
./common_build.sh skipClean
set
-u
ttl_jar_path
=
"
$(
readlink
-f
"
$(
getTtlJarPath
)
"
)
"
JCC
=
"
$(
readlink
-f
"
$(
which japi-compliance-checker.pl
)
"
)
"
...
...
@@ -22,7 +20,7 @@ for base_version in 2.5.0 2.6.0 2.7.0 2.10.2; do
url
=
"https://repo1.maven.org/maven2/com/alibaba/transmittable-thread-local/
$base_version
/transmittable-thread-local-
$base_version
.jar"
base_jar
=
"transmittable-thread-local-
$base_version
.jar"
if
[
!
-f
"
$base_jar
"
]
;
then
wg
et
"
$url
"
runCmd wget
--qui
et
"
$url
"
fi
"
$JCC
"
-show-packages
-check-annotations
-skip-internal-packages
'\.(javassist|utils?|internal)\.?'
\
...
...
scripts/codecov.sh
浏览文件 @
881985a1
#!/bin/bash
set
-eEo
pipefail
set
-eE
u
o
pipefail
cd
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
source
./common_build.sh
...
...
scripts/common.sh
浏览文件 @
881985a1
...
...
@@ -3,7 +3,16 @@
_source_mark_of_common
=
true
set
-eEo
pipefail
set
-eEuo
pipefail
################################################################################
# constants
################################################################################
# NOTE: $'foo' is the escape sequence syntax of bash
readonly nl
=
$'
\n
'
# new line
readonly
ec
=
$'
\0
33'
# escape char
readonly
eend
=
$'
\0
33[0m'
# escape end
################################################################################
# trap error setting
...
...
@@ -18,28 +27,23 @@ set -eEo pipefail
# https://shapeshed.com/unix-exit-codes/#how-to-suppress-exit-statuses
# https://stackoverflow.com/questions/30078281/raise-error-in-a-bash-script/50265513#50265513
__error_trapper
()
{
local
parent_linen
o
=
"
$1
"
local
file_line_inf
o
=
"
$1
"
local
code
=
"
$2
"
local
commands
=
"
$3
"
echo
"
error exit status
$code
, at file
${
BASH_SOURCE
[*]
}
on or near line
$parent_lineno
:
$commands
"
echo
"
Trap error! Exit status:
$code
${
nl
}
File/(near) line info:
$nl
$file_line_info
${
nl
}
Error code line:
$nl
$commands
"
}
trap
'__error_trapper "${
LINENO}/${BASH_LINENO
}" "$?" "$BASH_COMMAND"'
ERR
trap
'__error_trapper "${
BASH_SOURCE[*]} / $LINENO ${BASH_LINENO[*]
}" "$?" "$BASH_COMMAND"'
ERR
################################################################################
# util functions
################################################################################
# NOTE: $'foo' is the escape sequence syntax of bash
readonly nl
=
$'
\n
'
# new line
readonly
ec
=
$'
\0
33'
# escape char
readonly
eend
=
$'
\0
33[0m'
# escape end
colorEcho
()
{
local
color
=
$1
shift
# if stdout is console, turn on color output.
# if stdout is
the
console, turn on color output.
[
-t
1
]
&&
echo
"
${
ec
}
[1;
${
color
}
m
$*
${
eend
}
"
||
echo
"
$@
"
}
...
...
scripts/common_build.sh
浏览文件 @
881985a1
...
...
@@ -122,6 +122,6 @@ getJUnitTestCases() {
# maven actions
#################################################################################
if
[
"
$
1
"
!=
"skipClean"
]
;
then
if
[
"
$
{
1
:-}
"
!=
"skipClean"
]
;
then
mvnClean
fi
scripts/gen-pom4ide.sh
浏览文件 @
881985a1
#!/bin/bash
set
-eEo
pipefail
set
-eE
u
o
pipefail
cd
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
/..
sed
'
...
...
scripts/integration-test.sh
浏览文件 @
881985a1
#!/bin/bash
set
-eEo
pipefail
set
-eE
u
o
pipefail
cd
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
export
TTL_CI_TEST_MODE
=
true
source
./prepare-jdk.sh
source
./common_build.sh
"
$
1
"
source
./common_build.sh
"
$
{
1
:-}
"
# default jdk 11, do build and test
switch_to_jdk 11
headInfo
"test with Java 11:
$JAVA_HOME
"
# run junit test in run-agent-test.sh
runCmd ./scripts/run-agent-test.sh
"
$
1
"
runCmd ./scripts/run-agent-test.sh
"
$
{
1
:-}
"
java_home_var_names
=(
...
...
scripts/perf-test/memoryleak-ThreadLocal.sh
浏览文件 @
881985a1
#!/bin/bash
set
-eEo
pipefail
set
-eE
u
o
pipefail
cd
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
source
../common_build.sh
...
...
scripts/perf-test/memoryleak-TransmittableThreadLocal.sh
浏览文件 @
881985a1
#!/bin/bash
set
-eEo
pipefail
set
-eE
u
o
pipefail
cd
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
source
../common_build.sh
...
...
scripts/perf-test/tps-ThreadLocal.sh
浏览文件 @
881985a1
#!/bin/bash
set
-eEo
pipefail
set
-eE
u
o
pipefail
cd
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
source
../common_build.sh
...
...
scripts/perf-test/tps-TransmittableThreadLocal.sh
浏览文件 @
881985a1
#!/bin/bash
set
-eEo
pipefail
set
-eE
u
o
pipefail
cd
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
source
../common_build.sh
...
...
scripts/prepare-jdk.sh
浏览文件 @
881985a1
#!/bin/bash
# SDKMAN! with Travis
# https://objectcomputing.com/news/2019/01/07/sdkman-travis
set
-eEo
pipefail
set
-eE
u
o
pipefail
[
-z
"
${
_source_mark_of_prepare_jdk
:+dummy
}
"
]
||
return
0
export
_source_mark_of_prepare_jdk
=
true
...
...
@@ -16,9 +16,10 @@ if [ ! -f "$HOME/.sdkman/bin/sdkman-init.sh" ]; then
curl
-s
get.sdkman.io | bash
||
exit
2
echo
sdkman_auto_answer
=
true
>
"
$HOME
/.sdkman/etc/config"
fi
set
+u
# shellcheck disable=SC1090
source
"
$HOME
/.sdkman/bin/sdkman-init.sh"
set
-u
jdks_install_by_sdkman
=(
7.0.262-zulu
...
...
scripts/release.sh
浏览文件 @
881985a1
#!/bin/bash
set
-eEo
pipefail
set
-eE
u
o
pipefail
cd
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
readonly
BASE
=
"
$(
pwd
)
"
.
./common_build.sh
...
...
scripts/run-agent-demo.sh
浏览文件 @
881985a1
#!/bin/bash
set
-eEo
pipefail
set
-eE
u
o
pipefail
cd
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
source
./common_build.sh
...
...
scripts/run-agent-for-class.sh
浏览文件 @
881985a1
#!/bin/bash
set
-eEo
pipefail
set
-eE
u
o
pipefail
[
-z
"
$
1
"
]
&&
die
"need class name argument!"
[
-z
"
$
{
1
:-}
"
]
&&
die
"need class name argument!"
readonly
run_class_name
=
"
$1
"
shift
1
...
...
scripts/run-agent-test.sh
浏览文件 @
881985a1
#!/bin/bash
set
-eEo
pipefail
set
-eE
u
o
pipefail
cd
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
export
TTL_CI_TEST_MODE
=
true
...
...
scripts/run-junit.sh
浏览文件 @
881985a1
#!/bin/bash
set
-eEo
pipefail
set
-eE
u
o
pipefail
cd
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
export
TTL_CI_TEST_MODE
=
true
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录