-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve log message for timeout and poll intervals
Info on submission/execution timeout. Info on polling schedule. Info on issuing a poll, and estimated delay for next one.
- Loading branch information
1 parent
fd9dc8c
commit 808550f
Showing
8 changed files
with
101 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
echo "HELLO FROM log-check.sh shutdown handler for $CYLC_SUITE_NAME" | ||
echo "HELLO FROM log-check.sh shutdown handler for ${CYLC_SUITE_NAME}" | ||
|
||
# compare events.log with the reference version | ||
# sorted so that event order doesn't matter | ||
|
||
NEW_LOG=$EVNTLOG | ||
REF_LOG=$CYLC_SUITE_DEF_PATH/events.log | ||
sed -i 's/ (after .\+)$//' "${EVNTLOG}" | ||
REF_LOG="${CYLC_SUITE_DEF_PATH}/events.log" | ||
|
||
# difference with 'sort -u' (unique) because polling on timeouts may now | ||
# result in multiple 'started' messages etc. | ||
if ! diff -u <(sort -u $NEW_LOG) <(sort -u $REF_LOG); then | ||
echo "ERROR: event handler output logs differ" >&2 | ||
diff -u <(sort -u $NEW_LOG) <(sort -u $REF_LOG) >&2 | ||
if ! diff -u <(sort -u "${EVNTLOG}") <(sort -u "${REF_LOG}") >&2; then | ||
echo 'ERROR: event handler output logs differ' >&2 | ||
exit 1 | ||
else | ||
echo "OK: event handler output logs agree" | ||
echo 'OK: event handler output logs agree' | ||
fi | ||
|
||
echo "BYE FROM log-check.sh shutdown handler for $CYLC_SUITE_NAME" | ||
echo "BYE FROM log-check.sh shutdown handler for ${CYLC_SUITE_NAME}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
echo "HELLO FROM log-check.sh shutdown handler for $CYLC_SUITE_NAME" | ||
echo "HELLO FROM log-check.sh shutdown handler for ${CYLC_SUITE_NAME}" | ||
|
||
# compare events.log with the reference version | ||
# sorted so that event order doesn't matter | ||
|
||
NEW_LOG=$EVNTLOG | ||
REF_LOG=$CYLC_SUITE_DEF_PATH/events.log | ||
sed -i 's/ (after .\+)$//' "${EVNTLOG}" | ||
REF_LOG="${CYLC_SUITE_DEF_PATH}/events.log" | ||
|
||
# difference with 'sort -u' (unique) because polling on timeouts may now | ||
# result in multiple 'started' messages etc. | ||
if ! diff -u <(sort -u $NEW_LOG) <(sort -u $REF_LOG); then | ||
echo "ERROR: event handler output logs differ" >&2 | ||
diff -u <(sort -u $NEW_LOG) <(sort -u $REF_LOG) >&2 | ||
if ! diff -u <(sort -u "${EVNTLOG}") <(sort -u "${REF_LOG}") >&2; then | ||
echo 'ERROR: event handler output logs differ' >&2 | ||
exit 1 | ||
else | ||
echo "OK: event handler output logs agree" | ||
echo 'OK: event handler output logs agree' | ||
fi | ||
|
||
echo "BYE FROM log-check.sh shutdown handler for $CYLC_SUITE_NAME" | ||
echo "BYE FROM log-check.sh shutdown handler for ${CYLC_SUITE_NAME}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters