8000 Setup test case for coexisting object directories by oleurodecision · Pull Request #832 · gcovr/gcovr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Setup test case for coexisting object directories #832

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

Conversation

oleurodecision
Copy link
Contributor
@oleurodecision oleurodecision commented Sep 21, 2023

The PR aims to present a basic setup for testing issue(s) related to coexisting object directories.

The candidate_tests.bash script contains several valid or failing gcovr call variants (parallelised or non-parallelised calls).

Related to #756.
Closes #756.

Please ask for any piece of information needed on the subject.

@Spacetown
Copy link
Member

Thanks for the test. Please can you use the extension .cpp instead of . cc to be aligned to the other tests?

@oleurodecision
Copy link
Contributor Author

My bad! Twenty years of habits ;)

@Spacetown
10000 Copy link
Member

Please add a entry in the CHANGELOG.rst.

@Spacetown Spacetown added this to the Upcoming release milestone Sep 27, 2023
@Spacetown Spacetown added the QA related to testing, build infrastructure, etc label Sep 27, 2023
@codecov
Copy link
codecov bot commented Sep 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (064d409) 95.31% compared to head (00d8ddd) 95.31%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #832   +/-   ##
=======================================
  Coverage   95.31%   95.31%           
=======================================
  Files          54       54           
  Lines        4483     4483           
  Branches      878      878           
=======================================
  Hits         4273     4273           
  Misses        127      127           
  Partials       83       83           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@oleurodecision oleurodecision force-pushed the feature/coexisting_object_directories branch from 00391fc to 01d6c43 Compare October 19, 2023 09:41
@Spacetown Spacetown marked this pull request as ready for review October 19, 2023 14:37
Copy link
Member
@Spacetown Spacetown left a comment

Choose a reason for hiding this comment

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

I thinkl gcovr isn't executed in parallel since the -j option is missing when calling make. I`ve adapted the test environment on the branch https://github.com/Spacetown/gcovr/tree/feature/coexisting_object_directories I've modified your tests and the tests coexisting_object_directories-from_build_dir-without_search_dir and coexisting_object_directories-from_root_dir-without_object_dir are failing because of concurency.

Please have a look.

@oleurodecision
Copy link
Contributor Author

Thanks for upgrading the test environment, this will avoid the dirty call I previously had to do in the makefiles themselves 😞

The concurrency issue is now fixed using some dedicated rules (run.%.done) to avoid running the same binary several times.

Now (well, at least on my local tests), only the expected tests (the -without ones) fail (!)

@Spacetown
Copy link
Member

The concurrency issue is now fixed using some dedicated rules (run.%.done) to avoid running the same binary several times.

I don't get what this additional rule is fixing. The result should be the same. I need to check this the next days.

@Spacetown
Copy link
Member

The additional rule doesn't change anything. If I understand you correct the tests "without" should fail because of the parallel execution. This we can't test here. For the test coexisting_object_directories-from_root_dir-without_search_dir there is a workaround with GCOV_STRIP and GCOVR_PREFIX.

@Spacetown Spacetown force-pushed the feature/coexisting_object_directories branch from 2c5063e to e1c6f55 Compare October 31, 2023 20:15
@Spacetown Spacetown force-pushed the feature/coexisting_object_directories branch from 1d0f9f4 to 613f42a Compare October 31, 2023 21:56
Copy link
Member
@Spacetown Spacetown left a comment

Choose a reason for hiding this comment

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

I've updated the tests to get them green.

@oleurodecision Please can you check again from your side?

@Spacetown
Copy link
Member

@oleurodecision Have you already checked it?

@Spacetown
Copy link
Member

@oleurodecision I'm waiting for your response to merge this.

@oleurodecision
Copy link
Contributor Author

Thanks for waiting, and sorry for the late, my wife has been (and is still) very illed, and I am facing lack of time to seriously work on the subject. For what I quickly reviewed, it seems ok, so let's go !

Once again, thanks for the tool and the time spent on it.

@Spacetown Spacetown merged commit 8e1a410 into gcovr:main Dec 17, 2023
@Spacetown Spacetown removed this from the Upcoming release milestone Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QA related to testing, build infrastructure, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failure when several gcovr instances are launched concurrently
2 participants
0