Skip to content
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

Fix a minor bug in CI slack report #22906

Merged
merged 2 commits into from
Apr 21, 2023
Merged

Fix a minor bug in CI slack report #22906

merged 2 commits into from
Apr 21, 2023

Conversation

ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented Apr 21, 2023

What does this PR do?

#22798 added code to show the difference between 2 CI runs. However, the previous CI run(s) may not yet produced the artifact test_failure_tables, and we got KeyError: 'model_failures_report.txt' in the last run.

This PR adds some check.

artifact_zip_path = os.path.join(output_dir, f"{artifact_name}.zip")
if os.path.isfile(artifact_zip_path):
results[artifact_name] = {}
Copy link
Collaborator Author

@ydshieh ydshieh Apr 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add the key only if the artifact is downloaded

@ydshieh ydshieh requested a review from amyeroberts April 21, 2023 02:30
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Apr 21, 2023

The documentation is not available anymore as the PR was closed or merged.

@ydshieh ydshieh requested review from amyeroberts and sgugger and removed request for amyeroberts April 21, 2023 15:06
Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@ydshieh ydshieh merged commit 5166c30 into main Apr 21, 2023
@ydshieh ydshieh deleted the fix_noti branch April 21, 2023 18:36
novice03 pushed a commit to novice03/transformers that referenced this pull request Jun 23, 2023
* fix

* fix

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants