[GitHub Actions] Fix install xsltproc

This commit is contained in:
Corneil du Plessis
2022-11-02 11:09:47 +02:00
parent 90132ef7df
commit c1e4b0f9d2
66 changed files with 84 additions and 70 deletions

View File

@@ -371,7 +371,6 @@ jobs:
uses: ./.github/workflows/recreate-runners.yml
with:
verbose: ${{ inputs.verbose == 'true' && 'true' || 'false' }}
deployment_type: 'helm'
secrets:
TMC_API_TOKEN: ${{ secrets.TMC_API_TOKEN }}
GCP_CRED_JSON: ${{ secrets.GCP_CRED_JSON }}

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
(return 0 2>/dev/null) && sourced=1 || sourced=0

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
(return 0 2>/dev/null) && sourced=1 || sourced=0
function check_env() {
eval ev='$'$1

View File

@@ -12,9 +12,9 @@
},
"stream_apps_gh_runners": {
"pods_per_job": 1,
"ram_per_pod": 6,
"cpu_per_pod": 2,
"machine_type": "n2-standard-8",
"ram_per_pod": 3,
"cpu_per_pod": 1.5,
"machine_type": "e2-highcpu-8",
"runner_scaling": "manual",
"scale_down": 1,
"arc_version": "v0.26.0",

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
pushd applications/processor > /dev/null
PROCESSORS=$(find * -maxdepth 0 -type d)
popd > /dev/null

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
java --version
if [ $? -eq 0 ]
then

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
ROOT_DIR=$(realpath $SCDIR/..)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
ROOT_DIR=$(realpath $SCDIR/..)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
ROOT_DIR=$(realpath $SCDIR/..)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
VERSIONS=$(./mvnw exec:exec -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive -q | sed 's/\"//g' | sed 's/version=//g')
for v in $VERSIONS; do
VERSION=$v

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
(return 0 2>/dev/null) && sourced=1 || sourced=0

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
function add_role() {
ROLE=$1
ROLE_NAME=$(echo "rolebinding-$NS-default-$ROLE" | sed 's/:/-/g')

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
PARENT=$(realpath $SCDIR/..)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
(return 0 2>/dev/null) && sourced=1 || sourced=0
if [ "$sourced" = "0" ]; then
echo "This script must be invoked using: source $0 $*"

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
PARENT=$(realpath $SCDIR/..)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
PARENT=$(realpath $SCDIR/..)

View File

@@ -1,10 +1,9 @@
#!/usr/bin/env bash
TO_DEL=$(gh run list --limit 100 -w "housekeeping.yml" --json "conclusion,event,databaseId,name,status,updatedAt" --jq 'map(select(.status == "completed" and .conclusion == "cancelled" and .event == "schedule"))')
#!/bin/bash
TO_DEL=$(gh run list --limit 100 -w "housekeeping.yml" --json "conclusion,event,databaseId,name,status" --jq 'map(select(.status == "completed" and .conclusion == "cancelled" and .event == "schedule"))')
if [ "$VERBOSE" != "" ] && [ "$VERBOSE" != "false" ]; then
echo "Deleting:$TO_DEL"
fi
RUNS=$(gh run list --limit 100 -w "housekeeping.yml" --json "conclusion,event,databaseId,name,status,updatedAt" --jq 'map(select(.status == "completed" and .conclusion == "cancelled" and .event == "schedule")) | .[] | .databaseId' | sed 's/\"//g')
RUNS=$(echo "$TO_DEL" | jq '.[] | .databaseId' | sed 's/\"//g')
for run in $RUNS; do
echo "Deleting run $run"
gh api --method DELETE -H "Accept: application/vnd.github+json" "/repos/spring-cloud/stream-applications/actions/runs/$run"

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
(return 0 2>/dev/null) && sourced=1 || sourced=0
function check_env() {
eval ev='$'$1

View File

@@ -0,0 +1,16 @@
#!/bin/bash
TO_DEL=$(gh run list --limit 100 -w "housekeeping.yml" --json "conclusion,databaseId,name,status" --jq 'map(select(.status == "completed" and .conclusion == "failure"))')
if [ "$VERBOSE" != "" ] && [ "$VERBOSE" != "false" ]; then
echo "Deleting:$TO_DEL"
fi
RUNS=$(echo "$TO_DEL" | jq '.[] | .databaseId' | sed 's/\"//g')
for run in $RUNS; do
echo "Deleting run $run"
gh api --method DELETE -H "Accept: application/vnd.github+json" "/repos/spring-cloud/stream-applications/actions/runs/$run"
done
RUNS=$(gh run list --limit 100 -w "clean-housekeeping.yml" --json "conclusion,databaseId,status" --jq 'map(select(.status == "completed" and .conclusion == "failure")) | .[] | .databaseId' | sed 's/\"//g')
for run in $RUNS; do
echo "Deleting run $run"
gh api --method DELETE -H "Accept: application/vnd.github+json" "/repos/spring-cloud/stream-applications/actions/runs/$run"
done

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
WAIT=
CARVEL=false
NS=default

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
NS=default
if [ "$1" == "" ]; then
echo "Arguments: <secret-name> [namespace]"

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
kubectl create clusterrolebinding actions-runner-privileged-cluster-role-binding \

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
PARENT=$(realpath $SCDIR/..)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
PARENT=$(realpath $SCDIR/..)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
function check_env() {
eval ev='$'$1
if [ "$ev" == "" ]; then

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
PARENT=$(realpath $SCDIR/..)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
(return 0 2>/dev/null) && sourced=1 || sourced=0
if [ "$1" == "" ]; then
echo "Usage: ensure-ns.sh <namespace>"

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
PARENT=$(realpath $SCDIR/..)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
if [ "$1" == "" ]; then
echo "Expect name of workflow to ignore"
exit 1

View File

@@ -18,7 +18,7 @@ spec:
resources:
requests:
cpu: "3000m"
memory: "12Gi"
memory: "4Gi"
labels:
- stream-ci-large
---

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
(return 0 2>/dev/null) && sourced=1 || sourced=0
if (( sourced == 0 )); then
echo "This script must be invoked using: source $0 $*"

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
(return 0 2>/dev/null) && sourced=1 || sourced=0
if [ "$sourced" = "0" ]; then
echo "This script must be invoked using: source $0 $*"

View File

@@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
if [ "$1" = "" ]; then

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
PARENT=$(realpath $SCDIR/..)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
if [ "$1" = "" ]; then
echo "cluster name portion to match must be provided"
exit 1

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
if [ "$1" = "" ]; then
echo "cluster name portion to match must be provided"
exit 1

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
if [ "$1" != "" ]; then
WORKFLOWS=("$1")
else

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
if [ "$1" == "" ]; then
echo "Provide one or more workflow names like ci.yml that does produce download artefacts"
exit 1

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(realpath $(dirname "$(readlink -f "${BASH_SOURCE[0]}")" ))
if [ "$1" = "" ]; then
echo "Usage $0 <pom-file>"

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
if [ "$1" != "" ]; then
NS="$1"
fi

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
if [ "$1" == "" ]; then
echo "Input required"
exit 2

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
PARENT=$(realpath $SCDIR/..)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
PARENT=$(realpath $SCDIR/..)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
PROJECT_DIR=$(realpath $SCDIR/../..)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
if [ "$1" == "" ]; then
echo "Expect name of workflow to ignore"
fi

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)
PARENT=$(realpath $SCDIR/..)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
SCDIR=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
SCDIR=$(realpath $SCDIR)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
set +e
if [ "$1" == "" ]; then
echo "Deployment name required"

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
set +e
WAIT_NODES=false
while [ "$1" != "" ]; do

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
set +e
if [ "$1" != "" ]; then

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
RETRIES=$1
ERR_DIR="/tmp/$(dirname $0)"
ERR_FILE="/tmp/$0.err"