Skip to content

Commit

Permalink
[grizzly] Remove grizzly working directory artifact code
Browse files Browse the repository at this point in the history
  • Loading branch information
tysmith committed Jul 3, 2024
1 parent ccac8cc commit 23b2955
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
5 changes: 0 additions & 5 deletions services/bugmon/launch-bugmon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,3 @@ case "$BUG_ACTION" in
exit 1
;;
esac >"$ARTIFACT_DEST/live.log" 2>&1

# Record grizzly logs as an artifact
if [[ -d /tmp/grizzly ]]; then
cp -r /tmp/grizzly "$ARTIFACT_DEST/tmp-grizzly"
fi
4 changes: 0 additions & 4 deletions services/grizzly-win/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,6 @@ echo "returned $exit_code" >&2
echo "sleeping so logs can flush" >&2
sleep 15

# Archive grizzly working directory
# Excludes the target directory because on Windows it may contain open files
7z a -tzip tmp_grizzly.zip AppData/Local/Temp/grizzly/* -x\!AppData/Local/Temp/grizzly/target/ || touch tmp_grizzly.zip

case $exit_code in
5) # grizzly.common.utils.Exit
# expected results not reproduced (opposite of SUCCESS)
Expand Down
14 changes: 0 additions & 14 deletions services/grizzly/launch-grizzly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,6 @@ EOF
mkdir -p /var/lib/td-agent-bit/pos
/opt/td-agent-bit/bin/td-agent-bit -c /etc/td-agent-bit/td-agent-bit.conf

# shellcheck disable=SC2317
function onexit () {
echo "Waiting for logs to flush..." >&2
sleep 15
killall -INT td-agent-bit || true
sleep 15
if [[ -d /tmp/grizzly ]]
then
echo "Saving grizzly logs..." >&2
cp -r /tmp/grizzly /logs/tmp-grizzly
fi
}
trap onexit EXIT

wait_token="$(su worker -c "rwait create")"
su worker -c "/home/worker/launch-grizzly-worker.sh '$wait_token'"

Expand Down

0 comments on commit 23b2955

Please sign in to comment.