Skip to content
Draft
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
152 changes: 76 additions & 76 deletions .tekton/pipeline/default-pipeline.yaml

Large diffs are not rendered by default.

48 changes: 27 additions & 21 deletions .tekton/tasks/test-groups/autoprofile-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ spec:
value: $(params.coverage)
- name: prerelease
value: $(params.prerelease)
- name: skip-cache
value: $(params.skip-cache)
workspaces:
- name: output
mountPath: /artifacts
Expand Down Expand Up @@ -98,27 +100,31 @@ spec:
npm config set fetch-retry-mintimeout 20000
npm config set fetch-retry-maxtimeout 120000
npm config set maxsockets 5
if [ ! -d ".npm-offline-cache" ]; then
mkdir .npm-offline-cache
# Try to download daily cache
TODAY=$(date +%F)
CACHE_KEY="npm-cache-apps-$TODAY"
echo "Attempting to download daily cache: $CACHE_KEY"
# Install IBM Cloud CLI if needed (it might not be in the image, check if we need to install it or if we can use curl/wget if the bucket is public? No, it's private likely. The install-project-dependencies task installs it.)
# Wait, this script runs inside the test container which is `node:version`. It probably doesn't have ibmcloud cli.
# install-project-dependencies.yaml installs it.
# We should probably do the same here.
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
ibmcloud plugin install cloud-object-storage -f -r 'IBM Cloud'
ibmcloud login -a https://cloud.ibm.com -r eu-de --apikey $API_KEY
if ibmcloud cos download --bucket npm-cache --key "$CACHE_KEY.tar.zst" "npm-cache.tar.zst"; then
echo "Downloaded daily cache."
apt-get update -y && apt-get install -y zstd
zstd -d npm-cache.tar.zst -o npm-cache.tar
tar -xf npm-cache.tar
rm npm-cache.tar npm-cache.tar.zst
else
echo "Daily cache not found. Proceeding with empty cache."
if [ "$(params.skip-cache)" == "true" ]; then
echo "Skipping npm-offline-cache (skip-cache=true). Installing dependencies freshly..."
else
if [ ! -d ".npm-offline-cache" ]; then
mkdir .npm-offline-cache
# Try to download daily cache
TODAY=$(date +%F)
CACHE_KEY="npm-cache-apps-$TODAY"
echo "Attempting to download daily cache: $CACHE_KEY"
# Install IBM Cloud CLI if needed (it might not be in the image, check if we need to install it or if we can use curl/wget if the bucket is public? No, it's private likely. The install-project-dependencies task installs it.)
# Wait, this script runs inside the test container which is `node:version`. It probably doesn't have ibmcloud cli.
# install-project-dependencies.yaml installs it.
# We should probably do the same here.
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
ibmcloud plugin install cloud-object-storage -f -r 'IBM Cloud'
ibmcloud login -a https://cloud.ibm.com -r eu-de --apikey $API_KEY
if ibmcloud cos download --bucket npm-cache --key "$CACHE_KEY.tar.zst" "npm-cache.tar.zst"; then
echo "Downloaded daily cache."
apt-get update -y && apt-get install -y zstd
zstd -d npm-cache.tar.zst -o npm-cache.tar
tar -xf npm-cache.tar
rm npm-cache.tar npm-cache.tar.zst
else
echo "Daily cache not found. Proceeding with empty cache."
fi
fi
fi
if [ -n "$(params.revision)" ]; then
Expand Down
48 changes: 27 additions & 21 deletions .tekton/tasks/test-groups/aws-fargate-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ spec:
value: $(params.coverage)
- name: prerelease
value: $(params.prerelease)
- name: skip-cache
value: $(params.skip-cache)
workspaces:
- name: output
mountPath: /artifacts
Expand Down Expand Up @@ -98,27 +100,31 @@ spec:
npm config set fetch-retry-mintimeout 20000
npm config set fetch-retry-maxtimeout 120000
npm config set maxsockets 5
if [ ! -d ".npm-offline-cache" ]; then
mkdir .npm-offline-cache
# Try to download daily cache
TODAY=$(date +%F)
CACHE_KEY="npm-cache-apps-$TODAY"
echo "Attempting to download daily cache: $CACHE_KEY"
# Install IBM Cloud CLI if needed (it might not be in the image, check if we need to install it or if we can use curl/wget if the bucket is public? No, it's private likely. The install-project-dependencies task installs it.)
# Wait, this script runs inside the test container which is `node:version`. It probably doesn't have ibmcloud cli.
# install-project-dependencies.yaml installs it.
# We should probably do the same here.
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
ibmcloud plugin install cloud-object-storage -f -r 'IBM Cloud'
ibmcloud login -a https://cloud.ibm.com -r eu-de --apikey $API_KEY
if ibmcloud cos download --bucket npm-cache --key "$CACHE_KEY.tar.zst" "npm-cache.tar.zst"; then
echo "Downloaded daily cache."
apt-get update -y && apt-get install -y zstd
zstd -d npm-cache.tar.zst -o npm-cache.tar
tar -xf npm-cache.tar
rm npm-cache.tar npm-cache.tar.zst
else
echo "Daily cache not found. Proceeding with empty cache."
if [ "$(params.skip-cache)" == "true" ]; then
echo "Skipping npm-offline-cache (skip-cache=true). Installing dependencies freshly..."
else
if [ ! -d ".npm-offline-cache" ]; then
mkdir .npm-offline-cache
# Try to download daily cache
TODAY=$(date +%F)
CACHE_KEY="npm-cache-apps-$TODAY"
echo "Attempting to download daily cache: $CACHE_KEY"
# Install IBM Cloud CLI if needed (it might not be in the image, check if we need to install it or if we can use curl/wget if the bucket is public? No, it's private likely. The install-project-dependencies task installs it.)
# Wait, this script runs inside the test container which is `node:version`. It probably doesn't have ibmcloud cli.
# install-project-dependencies.yaml installs it.
# We should probably do the same here.
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
ibmcloud plugin install cloud-object-storage -f -r 'IBM Cloud'
ibmcloud login -a https://cloud.ibm.com -r eu-de --apikey $API_KEY
if ibmcloud cos download --bucket npm-cache --key "$CACHE_KEY.tar.zst" "npm-cache.tar.zst"; then
echo "Downloaded daily cache."
apt-get update -y && apt-get install -y zstd
zstd -d npm-cache.tar.zst -o npm-cache.tar
tar -xf npm-cache.tar
rm npm-cache.tar npm-cache.tar.zst
else
echo "Daily cache not found. Proceeding with empty cache."
fi
fi
fi
if [ -n "$(params.revision)" ]; then
Expand Down
48 changes: 27 additions & 21 deletions .tekton/tasks/test-groups/aws-lambda-split-2-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ spec:
value: $(params.coverage)
- name: prerelease
value: $(params.prerelease)
- name: skip-cache
value: $(params.skip-cache)
workspaces:
- name: output
mountPath: /artifacts
Expand Down Expand Up @@ -98,27 +100,31 @@ spec:
npm config set fetch-retry-mintimeout 20000
npm config set fetch-retry-maxtimeout 120000
npm config set maxsockets 5
if [ ! -d ".npm-offline-cache" ]; then
mkdir .npm-offline-cache
# Try to download daily cache
TODAY=$(date +%F)
CACHE_KEY="npm-cache-apps-$TODAY"
echo "Attempting to download daily cache: $CACHE_KEY"
# Install IBM Cloud CLI if needed (it might not be in the image, check if we need to install it or if we can use curl/wget if the bucket is public? No, it's private likely. The install-project-dependencies task installs it.)
# Wait, this script runs inside the test container which is `node:version`. It probably doesn't have ibmcloud cli.
# install-project-dependencies.yaml installs it.
# We should probably do the same here.
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
ibmcloud plugin install cloud-object-storage -f -r 'IBM Cloud'
ibmcloud login -a https://cloud.ibm.com -r eu-de --apikey $API_KEY
if ibmcloud cos download --bucket npm-cache --key "$CACHE_KEY.tar.zst" "npm-cache.tar.zst"; then
echo "Downloaded daily cache."
apt-get update -y && apt-get install -y zstd
zstd -d npm-cache.tar.zst -o npm-cache.tar
tar -xf npm-cache.tar
rm npm-cache.tar npm-cache.tar.zst
else
echo "Daily cache not found. Proceeding with empty cache."
if [ "$(params.skip-cache)" == "true" ]; then
echo "Skipping npm-offline-cache (skip-cache=true). Installing dependencies freshly..."
else
if [ ! -d ".npm-offline-cache" ]; then
mkdir .npm-offline-cache
# Try to download daily cache
TODAY=$(date +%F)
CACHE_KEY="npm-cache-apps-$TODAY"
echo "Attempting to download daily cache: $CACHE_KEY"
# Install IBM Cloud CLI if needed (it might not be in the image, check if we need to install it or if we can use curl/wget if the bucket is public? No, it's private likely. The install-project-dependencies task installs it.)
# Wait, this script runs inside the test container which is `node:version`. It probably doesn't have ibmcloud cli.
# install-project-dependencies.yaml installs it.
# We should probably do the same here.
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
ibmcloud plugin install cloud-object-storage -f -r 'IBM Cloud'
ibmcloud login -a https://cloud.ibm.com -r eu-de --apikey $API_KEY
if ibmcloud cos download --bucket npm-cache --key "$CACHE_KEY.tar.zst" "npm-cache.tar.zst"; then
echo "Downloaded daily cache."
apt-get update -y && apt-get install -y zstd
zstd -d npm-cache.tar.zst -o npm-cache.tar
tar -xf npm-cache.tar
rm npm-cache.tar npm-cache.tar.zst
else
echo "Daily cache not found. Proceeding with empty cache."
fi
fi
fi
if [ -n "$(params.revision)" ]; then
Expand Down
48 changes: 27 additions & 21 deletions .tekton/tasks/test-groups/aws-lambda-split-3-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ spec:
value: $(params.coverage)
- name: prerelease
value: $(params.prerelease)
- name: skip-cache
value: $(params.skip-cache)
workspaces:
- name: output
mountPath: /artifacts
Expand Down Expand Up @@ -98,27 +100,31 @@ spec:
npm config set fetch-retry-mintimeout 20000
npm config set fetch-retry-maxtimeout 120000
npm config set maxsockets 5
if [ ! -d ".npm-offline-cache" ]; then
mkdir .npm-offline-cache
# Try to download daily cache
TODAY=$(date +%F)
CACHE_KEY="npm-cache-apps-$TODAY"
echo "Attempting to download daily cache: $CACHE_KEY"
# Install IBM Cloud CLI if needed (it might not be in the image, check if we need to install it or if we can use curl/wget if the bucket is public? No, it's private likely. The install-project-dependencies task installs it.)
# Wait, this script runs inside the test container which is `node:version`. It probably doesn't have ibmcloud cli.
# install-project-dependencies.yaml installs it.
# We should probably do the same here.
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
ibmcloud plugin install cloud-object-storage -f -r 'IBM Cloud'
ibmcloud login -a https://cloud.ibm.com -r eu-de --apikey $API_KEY
if ibmcloud cos download --bucket npm-cache --key "$CACHE_KEY.tar.zst" "npm-cache.tar.zst"; then
echo "Downloaded daily cache."
apt-get update -y && apt-get install -y zstd
zstd -d npm-cache.tar.zst -o npm-cache.tar
tar -xf npm-cache.tar
rm npm-cache.tar npm-cache.tar.zst
else
echo "Daily cache not found. Proceeding with empty cache."
if [ "$(params.skip-cache)" == "true" ]; then
echo "Skipping npm-offline-cache (skip-cache=true). Installing dependencies freshly..."
else
if [ ! -d ".npm-offline-cache" ]; then
mkdir .npm-offline-cache
# Try to download daily cache
TODAY=$(date +%F)
CACHE_KEY="npm-cache-apps-$TODAY"
echo "Attempting to download daily cache: $CACHE_KEY"
# Install IBM Cloud CLI if needed (it might not be in the image, check if we need to install it or if we can use curl/wget if the bucket is public? No, it's private likely. The install-project-dependencies task installs it.)
# Wait, this script runs inside the test container which is `node:version`. It probably doesn't have ibmcloud cli.
# install-project-dependencies.yaml installs it.
# We should probably do the same here.
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
ibmcloud plugin install cloud-object-storage -f -r 'IBM Cloud'
ibmcloud login -a https://cloud.ibm.com -r eu-de --apikey $API_KEY
if ibmcloud cos download --bucket npm-cache --key "$CACHE_KEY.tar.zst" "npm-cache.tar.zst"; then
echo "Downloaded daily cache."
apt-get update -y && apt-get install -y zstd
zstd -d npm-cache.tar.zst -o npm-cache.tar
tar -xf npm-cache.tar
rm npm-cache.tar npm-cache.tar.zst
else
echo "Daily cache not found. Proceeding with empty cache."
fi
fi
fi
if [ -n "$(params.revision)" ]; then
Expand Down
48 changes: 27 additions & 21 deletions .tekton/tasks/test-groups/aws-lambda-split-4-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ spec:
value: $(params.coverage)
- name: prerelease
value: $(params.prerelease)
- name: skip-cache
value: $(params.skip-cache)
workspaces:
- name: output
mountPath: /artifacts
Expand Down Expand Up @@ -98,27 +100,31 @@ spec:
npm config set fetch-retry-mintimeout 20000
npm config set fetch-retry-maxtimeout 120000
npm config set maxsockets 5
if [ ! -d ".npm-offline-cache" ]; then
mkdir .npm-offline-cache
# Try to download daily cache
TODAY=$(date +%F)
CACHE_KEY="npm-cache-apps-$TODAY"
echo "Attempting to download daily cache: $CACHE_KEY"
# Install IBM Cloud CLI if needed (it might not be in the image, check if we need to install it or if we can use curl/wget if the bucket is public? No, it's private likely. The install-project-dependencies task installs it.)
# Wait, this script runs inside the test container which is `node:version`. It probably doesn't have ibmcloud cli.
# install-project-dependencies.yaml installs it.
# We should probably do the same here.
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
ibmcloud plugin install cloud-object-storage -f -r 'IBM Cloud'
ibmcloud login -a https://cloud.ibm.com -r eu-de --apikey $API_KEY
if ibmcloud cos download --bucket npm-cache --key "$CACHE_KEY.tar.zst" "npm-cache.tar.zst"; then
echo "Downloaded daily cache."
apt-get update -y && apt-get install -y zstd
zstd -d npm-cache.tar.zst -o npm-cache.tar
tar -xf npm-cache.tar
rm npm-cache.tar npm-cache.tar.zst
else
echo "Daily cache not found. Proceeding with empty cache."
if [ "$(params.skip-cache)" == "true" ]; then
echo "Skipping npm-offline-cache (skip-cache=true). Installing dependencies freshly..."
else
if [ ! -d ".npm-offline-cache" ]; then
mkdir .npm-offline-cache
# Try to download daily cache
TODAY=$(date +%F)
CACHE_KEY="npm-cache-apps-$TODAY"
echo "Attempting to download daily cache: $CACHE_KEY"
# Install IBM Cloud CLI if needed (it might not be in the image, check if we need to install it or if we can use curl/wget if the bucket is public? No, it's private likely. The install-project-dependencies task installs it.)
# Wait, this script runs inside the test container which is `node:version`. It probably doesn't have ibmcloud cli.
# install-project-dependencies.yaml installs it.
# We should probably do the same here.
curl -fsSL https://clis.cloud.ibm.com/install/linux | sh
ibmcloud plugin install cloud-object-storage -f -r 'IBM Cloud'
ibmcloud login -a https://cloud.ibm.com -r eu-de --apikey $API_KEY
if ibmcloud cos download --bucket npm-cache --key "$CACHE_KEY.tar.zst" "npm-cache.tar.zst"; then
echo "Downloaded daily cache."
apt-get update -y && apt-get install -y zstd
zstd -d npm-cache.tar.zst -o npm-cache.tar
tar -xf npm-cache.tar
rm npm-cache.tar npm-cache.tar.zst
else
echo "Daily cache not found. Proceeding with empty cache."
fi
fi
fi
if [ -n "$(params.revision)" ]; then
Expand Down
Loading