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
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
set -e
# set -x

PROV_AND_WORKER_TYPE="proj-autophone/gecko-t-lambda-alpha-a55"

# check that count argument is provided
if [ -z "$1" ]; then
echo "Usage: $0 <count> [additional arguments]"
Expand All @@ -12,4 +14,4 @@ fi
COUNT="$1"
shift

./create_tc_task.py -q releng-hardware/gecko-t-linux-talos-2404 -c "$COUNT" "$@"
pipenv run ./create_tc_task.py -q "$PROV_AND_WORKER_TYPE" -c "$COUNT" "$@"
17 changes: 17 additions & 0 deletions worker_health/ct-talos-2404.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

set -e
# set -x

PROV_AND_WORKER_TYPE="releng-hardware/gecko-t-linux-talos-2404"

# check that count argument is provided
if [ -z "$1" ]; then
echo "Usage: $0 <count> [additional arguments]"
exit 1
fi

COUNT="$1"
shift

pipenv run ./create_tc_task.py -q "$PROV_AND_WORKER_TYPE" -c "$COUNT" "$@"
9 changes: 9 additions & 0 deletions worker_health/lw_1804.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -e
# set -x

PROV="releng-hardware"
WTYPE="gecko-t-linux-talos-1804"

./list_workers.py "$PROV" "$WTYPE"
10 changes: 10 additions & 0 deletions worker_health/lw_1804_no_quarantined.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

set -e
# set -x

PROV="releng-hardware"
WTYPE="gecko-t-linux-talos-1804"

QUAR_GREP_FILTER=$(pipenv run ./quarantine_tool.py "$PROV" "$WTYPE" show "$@" | tr ',' '|')
./list_workers.py "$PROV" "$WTYPE" | grep -vE "$QUAR_GREP_FILTER"
9 changes: 6 additions & 3 deletions worker_health/lw_2404.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env bash

set -euo pipefail
set -x
set -e
# set -x

pipenv run ./list_workers.py releng-hardware gecko-t-linux-talos-2404 "$@"
PROV="releng-hardware"
WTYPE="gecko-t-linux-talos-2404"

./list_workers.py "$PROV" "$WTYPE"
10 changes: 10 additions & 0 deletions worker_health/lw_2404_no_quarantined.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

set -e
# set -x

PROV="releng-hardware"
WTYPE="gecko-t-linux-talos-2404"

QUAR_GREP_FILTER=$(pipenv run ./quarantine_tool.py "$PROV" "$WTYPE" show "$@" | tr ',' '|')
./list_workers.py "$PROV" "$WTYPE" | grep -vE "$QUAR_GREP_FILTER"
9 changes: 9 additions & 0 deletions worker_health/lw_linux_report.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -e

echo "Linux Talos 1804 Worker count: $(./lw_1804.sh | wc -l)"
echo "Linux Talos 1804 Worker count (no quarantined): $(./lw_1804_no_quarantined.sh | wc -l)"
echo ""
echo "Linux Talos 2404 Worker count: $(./lw_2404.sh | wc -l)"
echo "Linux Talos 2404 Worker count (no quarantined): $(./lw_2404_no_quarantined.sh | wc -l)"
9 changes: 9 additions & 0 deletions worker_health/lw_lt_a55.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -e
set -x

PROV="proj-autophone"
WTYPE="gecko-t-lambda-perf-a55"

./list_workers.py "$PROV" "$WTYPE"
2 changes: 1 addition & 1 deletion worker_health/quar_talos_1804.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

set -e
set -x
# set -x

PROV="releng-hardware"
WTYPE="gecko-t-linux-talos-1804"
Expand Down
2 changes: 1 addition & 1 deletion worker_health/quar_talos_2404.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

set -e
set -x
# set -x

PROV="releng-hardware"
WTYPE="gecko-t-linux-talos-2404"
Expand Down