Skip to content

[Backend Tester] Add CSV report generation #12741

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

Open
wants to merge 9 commits into
base: gh/GregoryComer/87/head
Choose a base branch
from

Conversation

GregoryComer
Copy link
Member

@GregoryComer GregoryComer commented Jul 23, 2025

Add some initial CSV report generation, detailing results and parameters for each individual test. Delegation statistics and such will come next. I've also added a basic test for the report generation, which I will expand upon in this stack.

Here's some sample output from running add tests for XNNPACK:

Test ID,Test Case,Backend,Flow,Result,Dtype
test_add_dtype_float32_xnnpack,test_add_dtype,xnnpack,xnnpack,Success (Delegated),torch.float32
test_add_dtype_float32_xnnpack_static_int8,test_add_dtype,xnnpack,xnnpack_static_int8,Success (Delegated),torch.float32
test_add_f32_alpha_xnnpack,test_add_f32_alpha,xnnpack,xnnpack,Fail (Quantize),
test_add_f32_alpha_xnnpack_static_int8,test_add_f32_alpha,xnnpack,xnnpack_static_int8,Fail (Quantize),
test_add_f32_bcast_first_xnnpack,test_add_f32_bcast_first,xnnpack,xnnpack,Success (Delegated),
test_add_f32_bcast_first_xnnpack_static_int8,test_add_f32_bcast_first,xnnpack,xnnpack_static_int8,Success (Delegated),
test_add_f32_bcast_second_xnnpack,test_add_f32_bcast_second,xnnpack,xnnpack,Success (Delegated),
test_add_f32_bcast_second_xnnpack_static_int8,test_add_f32_bcast_second,xnnpack,xnnpack_static_int8,Success (Delegated),
test_add_f32_bcast_unary_xnnpack,test_add_f32_bcast_unary,xnnpack,xnnpack,Success (Delegated),
test_add_f32_bcast_unary_xnnpack_static_int8,test_add_f32_bcast_unary,xnnpack,xnnpack_static_int8,Success (Delegated),

[ghstack-poisoned]
@GregoryComer GregoryComer requested a review from cccclai as a code owner July 23, 2025 01:28
Copy link

pytorch-bot bot commented Jul 23, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12741

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 5cc4941 with merge base 4fd2079 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@@ -0,0 +1,101 @@
import torch
Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you!

]

class Reporting(unittest.TestCase):
def test_csv_report_simple(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: tsv works better usually

[ghstack-poisoned]
GregoryComer added a commit that referenced this pull request Jul 23, 2025
ghstack-source-id: f67c54b
ghstack-comment-id: 3105325555
Pull-Request: #12741
[ghstack-poisoned]
GregoryComer added a commit that referenced this pull request Jul 23, 2025
ghstack-source-id: 058e3ca
ghstack-comment-id: 3105325555
Pull-Request: #12741
[ghstack-poisoned]
GregoryComer added a commit that referenced this pull request Jul 23, 2025
ghstack-source-id: 8dd5a49
ghstack-comment-id: 3105325555
Pull-Request: #12741
[ghstack-poisoned]
GregoryComer added a commit that referenced this pull request Jul 23, 2025
ghstack-source-id: 4f76de1
ghstack-comment-id: 3105325555
Pull-Request: #12741
[ghstack-poisoned]
GregoryComer added a commit that referenced this pull request Jul 23, 2025
ghstack-source-id: 17e6147
ghstack-comment-id: 3105325555
Pull-Request: #12741
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
GregoryComer added a commit to GregoryComer/executorch that referenced this pull request Jul 31, 2025
ghstack-source-id: 6264a78
ghstack-comment-id: 3105325555
Pull-Request: pytorch#12741
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants