-
Notifications
You must be signed in to change notification settings - Fork 796
[SYCL][E2E] Track amount of XFAILed tests
#15603
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
Merged
AlexeySachkov
merged 8 commits into
intel:sycl
from
AlexeySachkov:private/asachkov/track-amount-of-xfailed-tests-without-tracker
Oct 11, 2024
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3b89b37
[SYCL][E2E] Track amount of XFAILed tests
AlexeySachkov 7c72b73
Merge remote-tracking branch 'origin/sycl' into private/asachkov/trac…
AlexeySachkov 8da85a5
Small tweaks to the test
AlexeySachkov 8ff75fd
Apply suggestions from code review
AlexeySachkov c908d65
Require full issue URL instead of shortcut; Allow to use internal tra…
AlexeySachkov e9e4dd2
Merge branch 'private/asachkov/track-amount-of-xfailed-tests-without-…
AlexeySachkov 4c855cb
Merge remote-tracking branch 'origin/sycl' into private/asachkov/trac…
AlexeySachkov 505ee97
Update test after merge
AlexeySachkov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 file contains hidden or 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 file contains hidden or 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 file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| // This test is intended to ensure that we have no trackers marked as XFAIL | ||
| // without a tracker information added to a test. | ||
| // | ||
| // The format we check is: | ||
| // XFAIL: lit,features | ||
| // XFAIL-TRACKER: [GitHub issue URL|Internal tracker ID] | ||
| // | ||
| // GitHub issue URL format: | ||
| // https://github.com/owner/repo/issues/12345 | ||
| // | ||
| // Internal tracker ID format: | ||
| // PROJECT-123456 | ||
| // | ||
| // REQUIRES: linux | ||
| // | ||
| // Explanation of the command: | ||
| // - search for all "XFAIL" occurrences, display line with match and the next one | ||
| // -I, --include to drop binary files and other unrelated files | ||
| // - in the result, search for "XFAIL" again, but invert the result - this | ||
| // allows us to get the line *after* XFAIL | ||
| // - in those lines, check that XFAIL-TRACKER is present and correct. Once | ||
| // again, invert the search to get all "bad" lines | ||
| // - make a final count of how many ill-formatted directives there are and | ||
| // verify that against the reference | ||
| // | ||
| // RUN: grep -rI "XFAIL:" %S -A 1 --include=*.c --include=*.cpp \ | ||
| // RUN: --no-group-separator | \ | ||
| // RUN: grep -v "XFAIL:" | \ | ||
| // RUN: grep -Pv "XFAIL-TRACKER:\s+(?:https://github.com/[\w\d-]+/[\w\d-]+/issues/[\d]+)|(?:[\w]+-[\d]+)" | \ | ||
| // RUN: wc -l | FileCheck %s --check-prefix NUMBER-OF-XFAIL-WITHOUT-TRACKER | ||
| // | ||
| // The number below is a number of tests which are *improperly* XFAIL-ed, i.e. | ||
| // we either don't have a tracker associated with a failure listed in those | ||
| // tests, or it is listed in a wrong format. | ||
| // Note: strictly speaking, that is not amount of files, but amount of XFAIL | ||
| // directives. If a test contains several XFAIL directives, some of them may be | ||
| // valid and other may not. | ||
| // | ||
| // That number *must not* increase. Any PR which causes this number to grow | ||
| // should be rejected and it should be updated to either keep the number as-is | ||
| // or have it reduced (preferrably, down to zero). | ||
| // | ||
| // If you see this test failed for your patch, it means that you either | ||
| // introduced XFAIL directive to a test improperly, or broke the format of an | ||
| // existing XFAIL-ed tests. | ||
| // Another possibility (and that is a good option) is that you updated some | ||
| // tests to match the required format and in that case you should just update | ||
| // (i.e. reduce) the number below. | ||
| // | ||
| // NUMBER-OF-XFAIL-WITHOUT-TRACKER: 187 |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.