-
Notifications
You must be signed in to change notification settings - Fork 46
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
ci: Upload phase 1 & phase 2 training logs for loss graphs #356
base: main
Are you sure you want to change the base?
Conversation
8214570
to
8352fba
Compare
Signed-off-by: Ali Maredia <[email protected]>
8352fba
to
f261630
Compare
cat "${output_file}" >> "${GITHUB_STEP_SUMMARY}" |
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.
It seems like this E2E file has an error - this line should be present after the output files are generated by running the python scripts/create-loss-graph.py
cat "${output_file}" >> "${GITHUB_STEP_SUMMARY}" |
--pr-number "${{ github.event.pull_request.number }}" \ | ||
--head-sha "${{ github.event.pull_request.head.sha }}" \ | ||
--origin-repository "${{ github.repository }}" | ||
|
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'll want to actually move the cat "${output_file}" >> "{GITHUB_STEP_SUMMARY}"
step to take place in the upload to phase steps.
Otherwise the current logic is paradoxical - we never output the summary on a successful upload, but we try to upload it on error.
cat "${output_file}" >> "${GITHUB_STEP_SUMMARY}" |
echo "::warning::Failed to upload loss graph to S3. This won't block the workflow, but you may want to investigate." | ||
echo "Loss graph upload failed" >> "${GITHUB_STEP_SUMMARY}" | ||
|
||
cat "${output_file}" >> "${GITHUB_STEP_SUMMARY}" |
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.
Move this one to the phase 1 upload step
cat "${output_file}" >> "${GITHUB_STEP_SUMMARY}" |
@@ -295,10 +314,34 @@ jobs: | |||
--head-sha "${{ github.event.pull_request.head.sha }}" \ | |||
--origin-repository "${{ github.repository }}" | |||
|
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'll want to also echo the output file here:
cat "${output_file}" >> "${GITHUB_STEP_SUMMARY}" | |
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.
Thank you for making the quick PR Ali! I've provided some inline suggestions to fix a few issues in the PR. Once those are made we can go ahead and merge this. Appreciate you taking this on!!
No description provided.