Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .sps/pr/pipeline-config-autoprofile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ tasks:

# upload executed test files to COS for coverage verification
COS_API_KEY="$(get_secret ibm-object-storage-api-key)"
GIT_COMMIT="$(get_env GIT_COMMIT "")"
GIT_COMMIT="$(get_env HEAD_SHA "")"
if [ -n "$COS_API_KEY" ] && [ -n "$GIT_COMMIT" ]; then
IAM_TOKEN=$(curl -sf -X POST "https://iam.cloud.ibm.com/identity/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
Expand All @@ -112,7 +112,7 @@ tasks:
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: text/plain" \
--data-binary "$(echo "$TEST_FILES" | tr ' ' '\n' | sort)" \
&& echo "Uploaded test coverage for autoprofile" \
&& echo "Uploaded test coverage for autoprofile → test-results/$GIT_COMMIT/autoprofile.txt" \
|| echo "WARNING: Failed to upload test coverage for autoprofile (non-fatal)"
else
echo "WARNING: COS credentials or git commit unavailable — skipping coverage upload"
Expand Down
16 changes: 8 additions & 8 deletions .sps/pr/pipeline-config-cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ tasks:

# upload executed test files to COS for coverage verification
COS_API_KEY="$(get_secret ibm-object-storage-api-key)"
GIT_COMMIT="$(get_env GIT_COMMIT "")"
GIT_COMMIT="$(get_env HEAD_SHA "")"
if [ -n "$COS_API_KEY" ] && [ -n "$GIT_COMMIT" ]; then
IAM_TOKEN=$(curl -sf -X POST "https://iam.cloud.ibm.com/identity/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
Expand All @@ -137,7 +137,7 @@ tasks:
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: text/plain" \
--data-binary "$(echo "$TEST_FILES" | tr ' ' '\n' | sort)" \
&& echo "Uploaded test coverage for aws-lambda" \
&& echo "Uploaded test coverage for aws-lambda → test-results/$GIT_COMMIT/aws-lambda.txt" \
|| echo "WARNING: Failed to upload test coverage for aws-lambda (non-fatal)"
else
echo "WARNING: COS credentials or git commit unavailable — skipping coverage upload"
Expand Down Expand Up @@ -202,7 +202,7 @@ tasks:

# upload executed test files to COS for coverage verification
COS_API_KEY="$(get_secret ibm-object-storage-api-key)"
GIT_COMMIT="$(get_env GIT_COMMIT "")"
GIT_COMMIT="$(get_env HEAD_SHA "")"
if [ -n "$COS_API_KEY" ] && [ -n "$GIT_COMMIT" ]; then
IAM_TOKEN=$(curl -sf -X POST "https://iam.cloud.ibm.com/identity/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
Expand All @@ -213,7 +213,7 @@ tasks:
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: text/plain" \
--data-binary "$(echo "$TEST_FILES" | tr ' ' '\n' | sort)" \
&& echo "Uploaded test coverage for aws-fargate" \
&& echo "Uploaded test coverage for aws-fargate → test-results/$GIT_COMMIT/aws-fargate.txt" \
|| echo "WARNING: Failed to upload test coverage for aws-fargate (non-fatal)"
else
echo "WARNING: COS credentials or git commit unavailable — skipping coverage upload"
Expand Down Expand Up @@ -278,7 +278,7 @@ tasks:

# upload executed test files to COS for coverage verification
COS_API_KEY="$(get_secret ibm-object-storage-api-key)"
GIT_COMMIT="$(get_env GIT_COMMIT "")"
GIT_COMMIT="$(get_env HEAD_SHA "")"
if [ -n "$COS_API_KEY" ] && [ -n "$GIT_COMMIT" ]; then
IAM_TOKEN=$(curl -sf -X POST "https://iam.cloud.ibm.com/identity/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
Expand All @@ -289,7 +289,7 @@ tasks:
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: text/plain" \
--data-binary "$(echo "$TEST_FILES" | tr ' ' '\n' | sort)" \
&& echo "Uploaded test coverage for azure-container-services" \
&& echo "Uploaded test coverage for azure-container-services → test-results/$GIT_COMMIT/azure-container-services.txt" \
|| echo "WARNING: Failed to upload test coverage for azure-container-services (non-fatal)"
else
echo "WARNING: COS credentials or git commit unavailable — skipping coverage upload"
Expand Down Expand Up @@ -354,7 +354,7 @@ tasks:

# upload executed test files to COS for coverage verification
COS_API_KEY="$(get_secret ibm-object-storage-api-key)"
GIT_COMMIT="$(get_env GIT_COMMIT "")"
GIT_COMMIT="$(get_env HEAD_SHA "")"
if [ -n "$COS_API_KEY" ] && [ -n "$GIT_COMMIT" ]; then
IAM_TOKEN=$(curl -sf -X POST "https://iam.cloud.ibm.com/identity/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
Expand All @@ -365,7 +365,7 @@ tasks:
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: text/plain" \
--data-binary "$(echo "$TEST_FILES" | tr ' ' '\n' | sort)" \
&& echo "Uploaded test coverage for google-cloud-run" \
&& echo "Uploaded test coverage for google-cloud-run → test-results/$GIT_COMMIT/google-cloud-run.txt" \
|| echo "WARNING: Failed to upload test coverage for google-cloud-run (non-fatal)"
else
echo "WARNING: COS credentials or git commit unavailable — skipping coverage upload"
Expand Down
12 changes: 6 additions & 6 deletions .sps/pr/pipeline-config-collector-currencies-async.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ tasks:

# upload executed test files to COS for coverage verification
COS_API_KEY="$(get_secret ibm-object-storage-api-key)"
GIT_COMMIT="$(get_env GIT_COMMIT "")"
GIT_COMMIT="$(get_env HEAD_SHA "")"
if [ -n "$COS_API_KEY" ] && [ -n "$GIT_COMMIT" ]; then
IAM_TOKEN=$(curl -sf -X POST "https://iam.cloud.ibm.com/identity/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
Expand All @@ -121,7 +121,7 @@ tasks:
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: text/plain" \
--data-binary "$(echo "$TEST_FILES" | tr ' ' '\n' | sort)" \
&& echo "Uploaded test coverage for collector-async-await" \
&& echo "Uploaded test coverage for collector-async-await → test-results/$GIT_COMMIT/collector-async-await.txt" \
|| echo "WARNING: Failed to upload test coverage for collector-async-await (non-fatal)"
else
echo "WARNING: COS credentials or git commit unavailable — skipping coverage upload"
Expand Down Expand Up @@ -198,7 +198,7 @@ tasks:

# upload executed test files to COS for coverage verification
COS_API_KEY="$(get_secret ibm-object-storage-api-key)"
GIT_COMMIT="$(get_env GIT_COMMIT "")"
GIT_COMMIT="$(get_env HEAD_SHA "")"
if [ -n "$COS_API_KEY" ] && [ -n "$GIT_COMMIT" ]; then
IAM_TOKEN=$(curl -sf -X POST "https://iam.cloud.ibm.com/identity/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
Expand All @@ -209,7 +209,7 @@ tasks:
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: text/plain" \
--data-binary "$(echo "$TEST_FILES" | tr ' ' '\n' | sort)" \
&& echo "Uploaded test coverage for collector-async-bluebird" \
&& echo "Uploaded test coverage for collector-async-bluebird → test-results/$GIT_COMMIT/collector-async-bluebird.txt" \
|| echo "WARNING: Failed to upload test coverage for collector-async-bluebird (non-fatal)"
else
echo "WARNING: COS credentials or git commit unavailable — skipping coverage upload"
Expand Down Expand Up @@ -286,7 +286,7 @@ tasks:

# upload executed test files to COS for coverage verification
COS_API_KEY="$(get_secret ibm-object-storage-api-key)"
GIT_COMMIT="$(get_env GIT_COMMIT "")"
GIT_COMMIT="$(get_env HEAD_SHA "")"
if [ -n "$COS_API_KEY" ] && [ -n "$GIT_COMMIT" ]; then
IAM_TOKEN=$(curl -sf -X POST "https://iam.cloud.ibm.com/identity/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
Expand All @@ -297,7 +297,7 @@ tasks:
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: text/plain" \
--data-binary "$(echo "$TEST_FILES" | tr ' ' '\n' | sort)" \
&& echo "Uploaded test coverage for collector-async-native-promise" \
&& echo "Uploaded test coverage for collector-async-native-promise → test-results/$GIT_COMMIT/collector-async-native-promise.txt" \
|| echo "WARNING: Failed to upload test coverage for collector-async-native-promise (non-fatal)"
else
echo "WARNING: COS credentials or git commit unavailable — skipping coverage upload"
Expand Down
40 changes: 20 additions & 20 deletions .sps/pr/pipeline-config-collector-currencies-cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ tasks:

# upload executed test files to COS for coverage verification
COS_API_KEY="$(get_secret ibm-object-storage-api-key)"
GIT_COMMIT="$(get_env GIT_COMMIT "")"
GIT_COMMIT="$(get_env HEAD_SHA "")"
if [ -n "$COS_API_KEY" ] && [ -n "$GIT_COMMIT" ]; then
IAM_TOKEN=$(curl -sf -X POST "https://iam.cloud.ibm.com/identity/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
Expand All @@ -149,7 +149,7 @@ tasks:
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: text/plain" \
--data-binary "$(echo "$TEST_FILES" | tr ' ' '\n' | sort)" \
&& echo "Uploaded test coverage for collector-cloud-client-dynamodb" \
&& echo "Uploaded test coverage for collector-cloud-client-dynamodb → test-results/$GIT_COMMIT/collector-cloud-client-dynamodb.txt" \
|| echo "WARNING: Failed to upload test coverage for collector-cloud-client-dynamodb (non-fatal)"
else
echo "WARNING: COS credentials or git commit unavailable — skipping coverage upload"
Expand Down Expand Up @@ -254,7 +254,7 @@ tasks:

# upload executed test files to COS for coverage verification
COS_API_KEY="$(get_secret ibm-object-storage-api-key)"
GIT_COMMIT="$(get_env GIT_COMMIT "")"
GIT_COMMIT="$(get_env HEAD_SHA "")"
if [ -n "$COS_API_KEY" ] && [ -n "$GIT_COMMIT" ]; then
IAM_TOKEN=$(curl -sf -X POST "https://iam.cloud.ibm.com/identity/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
Expand All @@ -265,7 +265,7 @@ tasks:
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: text/plain" \
--data-binary "$(echo "$TEST_FILES" | tr ' ' '\n' | sort)" \
&& echo "Uploaded test coverage for collector-cloud-client-kinesis" \
&& echo "Uploaded test coverage for collector-cloud-client-kinesis → test-results/$GIT_COMMIT/collector-cloud-client-kinesis.txt" \
|| echo "WARNING: Failed to upload test coverage for collector-cloud-client-kinesis (non-fatal)"
else
echo "WARNING: COS credentials or git commit unavailable — skipping coverage upload"
Expand Down Expand Up @@ -370,7 +370,7 @@ tasks:

# upload executed test files to COS for coverage verification
COS_API_KEY="$(get_secret ibm-object-storage-api-key)"
GIT_COMMIT="$(get_env GIT_COMMIT "")"
GIT_COMMIT="$(get_env HEAD_SHA "")"
if [ -n "$COS_API_KEY" ] && [ -n "$GIT_COMMIT" ]; then
IAM_TOKEN=$(curl -sf -X POST "https://iam.cloud.ibm.com/identity/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
Expand All @@ -381,7 +381,7 @@ tasks:
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: text/plain" \
--data-binary "$(echo "$TEST_FILES" | tr ' ' '\n' | sort)" \
&& echo "Uploaded test coverage for collector-cloud-client-lambda" \
&& echo "Uploaded test coverage for collector-cloud-client-lambda → test-results/$GIT_COMMIT/collector-cloud-client-lambda.txt" \
|| echo "WARNING: Failed to upload test coverage for collector-cloud-client-lambda (non-fatal)"
else
echo "WARNING: COS credentials or git commit unavailable — skipping coverage upload"
Expand Down Expand Up @@ -486,7 +486,7 @@ tasks:

# upload executed test files to COS for coverage verification
COS_API_KEY="$(get_secret ibm-object-storage-api-key)"
GIT_COMMIT="$(get_env GIT_COMMIT "")"
GIT_COMMIT="$(get_env HEAD_SHA "")"
if [ -n "$COS_API_KEY" ] && [ -n "$GIT_COMMIT" ]; then
IAM_TOKEN=$(curl -sf -X POST "https://iam.cloud.ibm.com/identity/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
Expand All @@ -497,7 +497,7 @@ tasks:
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: text/plain" \
--data-binary "$(echo "$TEST_FILES" | tr ' ' '\n' | sort)" \
&& echo "Uploaded test coverage for collector-cloud-client-s3" \
&& echo "Uploaded test coverage for collector-cloud-client-s3 → test-results/$GIT_COMMIT/collector-cloud-client-s3.txt" \
|| echo "WARNING: Failed to upload test coverage for collector-cloud-client-s3 (non-fatal)"
else
echo "WARNING: COS credentials or git commit unavailable — skipping coverage upload"
Expand Down Expand Up @@ -602,7 +602,7 @@ tasks:

# upload executed test files to COS for coverage verification
COS_API_KEY="$(get_secret ibm-object-storage-api-key)"
GIT_COMMIT="$(get_env GIT_COMMIT "")"
GIT_COMMIT="$(get_env HEAD_SHA "")"
if [ -n "$COS_API_KEY" ] && [ -n "$GIT_COMMIT" ]; then
IAM_TOKEN=$(curl -sf -X POST "https://iam.cloud.ibm.com/identity/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
Expand All @@ -613,7 +613,7 @@ tasks:
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: text/plain" \
--data-binary "$(echo "$TEST_FILES" | tr ' ' '\n' | sort)" \
&& echo "Uploaded test coverage for collector-cloud-client-sns" \
&& echo "Uploaded test coverage for collector-cloud-client-sns → test-results/$GIT_COMMIT/collector-cloud-client-sns.txt" \
|| echo "WARNING: Failed to upload test coverage for collector-cloud-client-sns (non-fatal)"
else
echo "WARNING: COS credentials or git commit unavailable — skipping coverage upload"
Expand Down Expand Up @@ -718,7 +718,7 @@ tasks:

# upload executed test files to COS for coverage verification
COS_API_KEY="$(get_secret ibm-object-storage-api-key)"
GIT_COMMIT="$(get_env GIT_COMMIT "")"
GIT_COMMIT="$(get_env HEAD_SHA "")"
if [ -n "$COS_API_KEY" ] && [ -n "$GIT_COMMIT" ]; then
IAM_TOKEN=$(curl -sf -X POST "https://iam.cloud.ibm.com/identity/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
Expand All @@ -729,7 +729,7 @@ tasks:
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: text/plain" \
--data-binary "$(echo "$TEST_FILES" | tr ' ' '\n' | sort)" \
&& echo "Uploaded test coverage for collector-cloud-client-sqs" \
&& echo "Uploaded test coverage for collector-cloud-client-sqs → test-results/$GIT_COMMIT/collector-cloud-client-sqs.txt" \
|| echo "WARNING: Failed to upload test coverage for collector-cloud-client-sqs (non-fatal)"
else
echo "WARNING: COS credentials or git commit unavailable — skipping coverage upload"
Expand Down Expand Up @@ -836,7 +836,7 @@ tasks:

# upload executed test files to COS for coverage verification
COS_API_KEY="$(get_secret ibm-object-storage-api-key)"
GIT_COMMIT="$(get_env GIT_COMMIT "")"
GIT_COMMIT="$(get_env HEAD_SHA "")"
if [ -n "$COS_API_KEY" ] && [ -n "$GIT_COMMIT" ]; then
IAM_TOKEN=$(curl -sf -X POST "https://iam.cloud.ibm.com/identity/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
Expand All @@ -847,7 +847,7 @@ tasks:
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: text/plain" \
--data-binary "$(echo "$TEST_FILES" | tr ' ' '\n' | sort)" \
&& echo "Uploaded test coverage for collector-cloud-storage-blob" \
&& echo "Uploaded test coverage for collector-cloud-storage-blob → test-results/$GIT_COMMIT/collector-cloud-storage-blob.txt" \
|| echo "WARNING: Failed to upload test coverage for collector-cloud-storage-blob (non-fatal)"
else
echo "WARNING: COS credentials or git commit unavailable — skipping coverage upload"
Expand Down Expand Up @@ -953,7 +953,7 @@ tasks:

# upload executed test files to COS for coverage verification
COS_API_KEY="$(get_secret ibm-object-storage-api-key)"
GIT_COMMIT="$(get_env GIT_COMMIT "")"
GIT_COMMIT="$(get_env HEAD_SHA "")"
if [ -n "$COS_API_KEY" ] && [ -n "$GIT_COMMIT" ]; then
IAM_TOKEN=$(curl -sf -X POST "https://iam.cloud.ibm.com/identity/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
Expand All @@ -964,7 +964,7 @@ tasks:
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: text/plain" \
--data-binary "$(echo "$TEST_FILES" | tr ' ' '\n' | sort)" \
&& echo "Uploaded test coverage for collector-cloud-pubsub" \
&& echo "Uploaded test coverage for collector-cloud-pubsub → test-results/$GIT_COMMIT/collector-cloud-pubsub.txt" \
|| echo "WARNING: Failed to upload test coverage for collector-cloud-pubsub (non-fatal)"
else
echo "WARNING: COS credentials or git commit unavailable — skipping coverage upload"
Expand Down Expand Up @@ -1070,7 +1070,7 @@ tasks:

# upload executed test files to COS for coverage verification
COS_API_KEY="$(get_secret ibm-object-storage-api-key)"
GIT_COMMIT="$(get_env GIT_COMMIT "")"
GIT_COMMIT="$(get_env HEAD_SHA "")"
if [ -n "$COS_API_KEY" ] && [ -n "$GIT_COMMIT" ]; then
IAM_TOKEN=$(curl -sf -X POST "https://iam.cloud.ibm.com/identity/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
Expand All @@ -1081,7 +1081,7 @@ tasks:
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: text/plain" \
--data-binary "$(echo "$TEST_FILES" | tr ' ' '\n' | sort)" \
&& echo "Uploaded test coverage for collector-cloud-storage" \
&& echo "Uploaded test coverage for collector-cloud-storage → test-results/$GIT_COMMIT/collector-cloud-storage.txt" \
|| echo "WARNING: Failed to upload test coverage for collector-cloud-storage (non-fatal)"
else
echo "WARNING: COS credentials or git commit unavailable — skipping coverage upload"
Expand Down Expand Up @@ -1186,7 +1186,7 @@ tasks:

# upload executed test files to COS for coverage verification
COS_API_KEY="$(get_secret ibm-object-storage-api-key)"
GIT_COMMIT="$(get_env GIT_COMMIT "")"
GIT_COMMIT="$(get_env HEAD_SHA "")"
if [ -n "$COS_API_KEY" ] && [ -n "$GIT_COMMIT" ]; then
IAM_TOKEN=$(curl -sf -X POST "https://iam.cloud.ibm.com/identity/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
Expand All @@ -1197,7 +1197,7 @@ tasks:
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: text/plain" \
--data-binary "$(echo "$TEST_FILES" | tr ' ' '\n' | sort)" \
&& echo "Uploaded test coverage for collector-cloud-aws-sdk" \
&& echo "Uploaded test coverage for collector-cloud-aws-sdk → test-results/$GIT_COMMIT/collector-cloud-aws-sdk.txt" \
|| echo "WARNING: Failed to upload test coverage for collector-cloud-aws-sdk (non-fatal)"
else
echo "WARNING: COS credentials or git commit unavailable — skipping coverage upload"
Expand Down
Loading