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

[FEA] Display full failure messages in failed CSV files #1135

Merged
merged 3 commits into from
Jun 25, 2024

Conversation

amahussein
Copy link
Collaborator

@amahussein amahussein commented Jun 24, 2024

Signed-off-by: Ahmed Hussein (amahussein) [email protected]

Fixes #1132

This commit changes the output CSV files failed_* . The new format will have the entire failure reason for jobs/stages/tasks if any.

  • The content of the failureReason is escaped. It will show as a single line.
  • Moved escapeMetaCharacters to StringUtils
  • Moved ProfileUtils.truncateFailureStr to StringUtils and renamed it to renderStr
  • Fixed a couple of inconsistency in formatting the strings
  • Updated the UnitTests
  • TODO: File a followup revisiting reformatCSVString to use renderStr: followup issue [FEA] Revisit string formats in tools #1136

Signed-off-by: Ahmed Hussein (amahussein) <[email protected]>

Fixes NVIDIA#1132

This commit changes the output CSV fiules failed_* . The new format will
have the entire failure reason for jobs/stages/tasks if any.

- The content of the failureReason is escaped. It will show as a single line.
- Moved `escapeMetaCharacters` to StringUtils
- Moved `ProfileUtils.truncateFailureStr` to StringUtils and renamed it
  to `renderStr`
- Fixed a couple of inconsistency in formatting the strings
- Updated the UnitTests
- TODO: File a followup revisiting `reformatCSVString` to use `renderStr`
Copy link
Collaborator

@wjxiz1992 wjxiz1992 left a comment

Choose a reason for hiding this comment

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

LGTM, the full error message can be shown in the failed_* files.

@amahussein amahussein requested a review from nartal1 June 25, 2024 13:33
Signed-off-by: Ahmed Hussein (amahussein) <[email protected]>
tgravescs
tgravescs previously approved these changes Jun 25, 2024
Signed-off-by: Ahmed Hussein (amahussein) <[email protected]>
@amahussein amahussein merged commit 99e2ffd into NVIDIA:dev Jun 25, 2024
14 checks passed
@amahussein amahussein deleted the spark-rapids-tools-1132 branch June 25, 2024 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core_tools Scope the core module (scala) feature request New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Error mesasges in failed_job.csv and failed_stages.csv are not fully displayed
3 participants