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
Adds flaky test info to build_message #14
Draft
joseph-sentry
wants to merge
12
commits into
main
Choose a base branch
from
joseph/add-flaky-pr-comment
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This commit ports over two functions for manipulating failure messages: - escape_failure_message: escapes a failure message to prepare it to be displayed in the comment so that the content of the failure message does not interfere with the formatting of the PR comment. - shorten_file_paths: truncates the beginning of long file paths in the failure message in order to reduce the horizontal space a failure message takes up. Signed-off-by: joseph-sentry <[email protected]>
- fix ? to & for escaping - make rust_string and pystring variants of functions so that we can compare the performance of using the Rust standard types (String) vs. the pyo3 types (PyString) - Add some more granular test cases Signed-off-by: joseph-sentry <[email protected]>
Signed-off-by: joseph-sentry <[email protected]>
Signed-off-by: joseph-sentry <[email protected]>
this function uses the shorten_file_paths and escape_failure_message functions as well as the newly introduced generate_failure_info and generate_test_description functions We want to use this function to generate the contents of the test results PR comment in both the CLI and the worker Signed-off-by: joseph-sentry <[email protected]>
The Failure object passed in the MessagePayload now contains 2 extra fields: flags and flake. the flags field are the flags associated with the upload of the failure. the field is a list of strings the flake field represents the flake on the Test this failure is on. this field is a list of Flake objects. A Flake object consists of 2 fields: symptoms (a list of enums that represent what kind of flake this test is a part of) and is_new_flake (signifies whether the flake was a previously know one, or if it was just detected) This commit also moves all the sample test result files to the samples directory in the tests directory. Signed-off-by: joseph-sentry <[email protected]>
Test Failures Detected: Due to failing tests, we cannot provide coverage reports at this time. ❌ Failed Test Results:Completed 15 tests with View the full list of failed tests
|
Test Failures Detected: Due to failing tests, we cannot provide coverage reports at this time. ❌ Failed Test Results:Completed 15 tests with View the full list of failed tests
|
Signed-off-by: joseph-sentry <[email protected]>
… finisher Signed-off-by: joseph-sentry <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
depends on #11