Skip to content

test: exclude system_initialize_function in t295 and t296 using filter option#2001

Merged
honggyukim merged 1 commit into
namhyung:masterfrom
junyeong0619:test
Jun 17, 2025
Merged

test: exclude system_initialize_function in t295 and t296 using filter option#2001
honggyukim merged 1 commit into
namhyung:masterfrom
junyeong0619:test

Conversation

@junyeong0619

@junyeong0619 junyeong0619 commented Jun 15, 2025

Copy link
Copy Markdown
Contributor

Previously, t295 and t296 excluded system_initialize_function
by filtering its name in the test logic.

This change moves that logic to use the Filter option instead,
making the exclusion cleaner and more consistent.

 ========== FUNCTION CALL GRAPH ==========
    TOTAL AVG   TOTAL MAX   TOTAL MIN   FUNCTION
    10.758 ms   10.758 ms   10.758 ms : (1) t-sort
    10.758 ms   10.758 ms   10.758 ms : (1) main
   139.750 us  262.084 us   17.416 us :  +-(2) foo
    10.305 us   31.875 us    5.083 us :  | (6) loop
                                      :  |
    10.357 ms   10.357 ms   10.357 ms :  +-(1) bar
    10.172 ms   10.172 ms   10.172 ms :    (1) usleep
 $ make -j 8 test TESTARG=graph_field

 Running 0 test cases
 ======================

 unit test stats
 ====================
   0 ran successfully
   0 failed
   0 skipped
   0 signal caught
   0 unknown result

   TEST     test_all
 Start 2 tests with 2 worker

 Compiler                  gcc
 Runtime test case         pg             finstrument-fu fpatchable-fun
 ------------------------: O0 O1 O2 O3 Os O0 O1 O2 O3 Os O0 O1 O2 O3 Os
 295 graph_field_total   : OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
 296 graph_field_self    : OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK

@honggyukim honggyukim requested a review from Copilot June 16, 2025 01:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request refactors test logic in t295 and t296 by replacing manual exclusions for system initialization functions with a filter option, thereby simplifying and standardizing the exclusion process.

  • Removed explicit filtering of '__monstartup' and '__cxa_atexit' from conversion functions
  • Updated the option string in test setup to include the '-F main' filter

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tests/t296_graph_field_self.py Removed manual filtering and added filter option in test setup
tests/t295_graph_field_total.py Removed manual filtering and added filter option in test setup
Comments suppressed due to low confidence (2)

tests/t296_graph_field_self.py:28

  • Verify that the filter option '-F main' reliably excludes the system initialization functions as intended.
self.option = '-F main -f self-avg,self-max,self-min'

tests/t295_graph_field_total.py:28

  • Verify that the filter option '-F main' reliably excludes the system initialization functions as intended.
self.option = '-F main -f total-avg,total-max,total-min'

@honggyukim honggyukim left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for your patch. I feel the commit title is too long so I would like to ask to change the commit title to the following.

tests: Fix unexpected failures of 295, 296 with -F main filter

But it's not a problem blocking this PR so LGTM!

Previously, t295 and t296 excluded system_initialize_function
 by filtering its name in the test logic.

This change moves that logic to use the Filter option instead,
 making the exclusion cleaner and more consistent.

 ========== FUNCTION CALL GRAPH ==========
    TOTAL AVG   TOTAL MAX   TOTAL MIN   FUNCTION
    10.758 ms   10.758 ms   10.758 ms : (1) t-sort
    10.758 ms   10.758 ms   10.758 ms : (1) main
   139.750 us  262.084 us   17.416 us :  +-(2) foo
    10.305 us   31.875 us    5.083 us :  | (6) loop
                                      :  |
    10.357 ms   10.357 ms   10.357 ms :  +-(1) bar
    10.172 ms   10.172 ms   10.172 ms :    (1) usleep

 $ make -j 8 test TESTARG=graph_field

 Running 0 test cases
 ======================

 unit test stats
 ====================
   0 ran successfully
   0 failed
   0 skipped
   0 signal caught
   0 unknown result

   TEST     test_all
 Start 2 tests with 2 worker

 Compiler                  gcc
 Runtime test case         pg             finstrument-fu fpatchable-fun
 ------------------------: O0 O1 O2 O3 Os O0 O1 O2 O3 Os O0 O1 O2 O3 Os
 295 graph_field_total   : OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
 296 graph_field_self    : OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK

Signed-off-by: Jun Yeong Kim <junyeonggim5@gmail.com>
@junyeong0619

Copy link
Copy Markdown
Contributor Author

I have revised the commit title based on your review. Thank you for your feedback.

@honggyukim honggyukim merged commit d8ebb42 into namhyung:master Jun 17, 2025
3 checks passed
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.

3 participants