File tree Expand file tree Collapse file tree 5 files changed +25
-10
lines changed
exporter/opentelemetry-exporter-prometheus-remote-write/proto Expand file tree Collapse file tree 5 files changed +25
-10
lines changed Original file line number Diff line number Diff line change
1
+ name : Shellcheck
2
+
3
+ on :
4
+ push :
5
+ branches-ignore :
6
+ - ' release/*'
7
+ pull_request :
8
+
9
+ jobs :
10
+ shellcheck :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+
15
+ - name : Install shellcheck
16
+ run : sudo apt update && sudo apt install --assume-yes shellcheck
17
+
18
+ - name : Run shellcheck
19
+ run : find . -name \*.sh | xargs shellcheck --severity=warning
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ PROTO_VERSION=v1.3.2
6
6
7
7
# SRC_DIR is from protoc perspective. ie its the destination for our checkouts/clones
8
8
SRC_DIR=opentelemetry/exporter/prometheus_remote_write/gen/
9
- DST_DIR=../src/opentelemetry/exporter/prometheus_remote_write/gen/
10
9
11
10
# TODO:
12
11
# Check that black & protoc are installed properly
Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ set -ev
8
8
# Get the latest versions of packaging tools
9
9
python3 -m pip install --upgrade pip build setuptools wheel
10
10
11
- BASEDIR=$( dirname $( readlink -f $( dirname $0 ) ) )
11
+ BASEDIR=$( dirname " $( readlink -f " $( dirname $0 ) " ) " )
12
12
DISTDIR=dist
13
13
14
14
(
15
15
cd $BASEDIR
16
16
mkdir -p $DISTDIR
17
- rm -rf $DISTDIR /*
17
+ rm -rf ${ DISTDIR:? } /*
18
18
19
19
for d in exporter/* / opentelemetry-instrumentation/ opentelemetry-contrib-instrumentations/ opentelemetry-distro/ instrumentation/* / propagator/* / resource/* / sdk-extension/* / util/* / ; do
20
20
(
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ set -ev
22
22
23
23
if [ -z $GITHUB_REF ]; then
24
24
echo ' Failed to run script, missing workflow env variable GITHUB_REF.'
25
- exit - 1
25
+ exit 1
26
26
fi
27
27
28
28
pkg_name_and_version=${GITHUB_REF# refs/ tags/* }
@@ -40,13 +40,13 @@ cd $basedir
40
40
41
41
distdir=${basedir} /dist
42
42
mkdir -p $distdir
43
- rm -rf $distdir /*
43
+ rm -rf ${ distdir:? } /*
44
44
45
45
pyproject_toml_file_path=$( ls ** /$pkg_name /pyproject.toml)
46
46
47
47
if [ -z $pyproject_toml_file_path ]; then
48
48
echo " Error! pyproject.toml not found for $pkg_name , can't build."
49
- exit - 1
49
+ exit 1
50
50
fi
51
51
52
52
directory_with_package=$( dirname $pyproject_toml_file_path )
@@ -61,7 +61,7 @@ pkg_tar_gz_file=${pkg_name}-${pkg_version}.tar.gz
61
61
62
62
if ! [ -f $pkg_tar_gz_file ]; then
63
63
echo ' Error! Tag version does not match version built using latest package files.'
64
- exit - 1
64
+ exit 1
65
65
fi
66
66
67
67
# Build a wheel for the source distribution
Original file line number Diff line number Diff line change @@ -11,9 +11,6 @@ function cov {
11
11
${1}
12
12
}
13
13
14
- PYTHON_VERSION=$( python -c ' import sys; print(".".join(map(str, sys.version_info[:3])))' )
15
- PYTHON_VERSION_INFO=(${PYTHON_VERSION// ./ } )
16
-
17
14
coverage erase
18
15
19
16
cov instrumentation/opentelemetry-instrumentation-flask
You can’t perform that action at this time.
0 commit comments