-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document a general-purpose recovery process #4991
Conversation
Now I see what's wrong with the playbook, no dot graphs |
@@ -0,0 +1,18 @@ | |||
# Documented Processes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how happy is the Markdown toolchain going to be with uppercase file extensions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure which toolchain - or which extension - you mean. Do you have a specific downstream tool in mind?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No just TOLing.
@@ -0,0 +1,7 @@ | |||
#!/usr/bin/env bash | |||
|
|||
while IFS= read -r -d '' file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not just
for dot in $(find . -name "*.dot" -print0)
do
...
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can ask shellcheck why - it made me do it 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm might be whitespace safe 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah apparently this is for whitespace safety, TIL https://unix.stackexchange.com/questions/174016/how-do-i-use-null-bytes-in-bash
while IFS= read -r -d '' file | ||
do | ||
echo "Rendering graph ${file} into ${file}.png" | ||
dot -Tpng -o "$file.png" "$file" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid blah.dot.png
:
...
png="${dot%.dot}.png"
echo "Rendering graph ${dot} into ${png}"
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The .dot.png
is preexisting so I'm reluctant to change that as well in this PR - could that happen as a follow up maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose 😞
@@ -0,0 +1,18 @@ | |||
# Documented Processes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No just TOLing.
@@ -0,0 +1,7 @@ | |||
#!/usr/bin/env bash | |||
|
|||
while IFS= read -r -d '' file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah apparently this is for whitespace safety, TIL https://unix.stackexchange.com/questions/174016/how-do-i-use-null-bytes-in-bash
while IFS= read -r -d '' file | ||
do | ||
echo "Rendering graph ${file} into ${file}.png" | ||
dot -Tpng -o "$file.png" "$file" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose 😞
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM – always happy to see more 📉 in the world!
An attempt to document my observation of our general purpose debugging process - will hopefully help the next generation of Cromwell fire troubleshooters.
See the process rendered and in situ
NB: If this gets approval, I'll update our playbook to link to this as our "general purpose fallback process"