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

Update notification service #17921

Merged
merged 12 commits into from
Jul 21, 2022
Merged

Update notification service #17921

merged 12 commits into from
Jul 21, 2022

Conversation

ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented Jun 28, 2022

What does this PR do?

Let me run a dummy test before merge

  • Fix failure report blocks (the tables) with too long text (might happen for past CI) - similar to Fix very long job failure text #17630
    • A complete version of (long) tables are saved as artifacts
  • Still send successful report if it is not push CI (we are close to 0 failure now)

A dummy run with very long blocks

https://github.com/huggingface/transformers/runs/7094507618?check_suite_focus=true

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jun 28, 2022

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

@ydshieh ydshieh requested a review from LysandreJik June 29, 2022 12:54
@ydshieh
Copy link
Collaborator Author

ydshieh commented Jul 18, 2022

To make this PR visible again, @LysandreJik .

More context: this is mainly for past CI - the summary table(s) could be very long as there are many more test failures.

Update: I will try to save a complete table as an artifacts, so we have it.

@ydshieh ydshieh force-pushed the update_notification_service branch from b66277b to c070219 Compare July 20, 2022 08:22
@ydshieh ydshieh marked this pull request as draft July 21, 2022 08:06
@ydshieh ydshieh marked this pull request as ready for review July 21, 2022 11:34
@ydshieh
Copy link
Collaborator Author

ydshieh commented Jul 21, 2022

PR ready again for review.

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Perfect, exciting to read that we're close to 0 tests failing and that we need to prepare for that 🤩

Comment on lines 330 to 333
with open(
os.path.join(os.getcwd(), "test_failure_tables/model_failures_report.txt"), "w", encoding="UTF-8"
) as fp:
fp.write(model_failures_report)
Copy link
Member

Choose a reason for hiding this comment

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

Could this be reformatted? It's a bit hard to read right now :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed to :-)

file_path = os.path.join(os.getcwd(), "test_failure_tables/model_failures_report.txt")
with open(file_path, "w", encoding="UTF-8") as fp:
fp.write(model_failures_report)

@LysandreJik
Copy link
Member

Perfect!

@ydshieh ydshieh merged commit 2c5747e into main Jul 21, 2022
@ydshieh ydshieh deleted the update_notification_service branch July 21, 2022 13:03
muellerzr pushed a commit that referenced this pull request Jul 25, 2022
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
oneraghavan pushed a commit to oneraghavan/transformers that referenced this pull request Sep 26, 2022
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.

None yet

3 participants