-
Notifications
You must be signed in to change notification settings - Fork 277
De-duplicate contracts regression tests #7581
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
De-duplicate contracts regression tests #7581
Conversation
We should do the same thing in #7541. |
Reduce the maintenance burden by using tags to run contracts tests both with and without DFCC. A first round of filtering was done as follows: ``` cd regression/contracts-dfcc ; sed -i '1s/$/ dfcc-only/' */*.desc cd ../contracts for d in * ; do [ -d $d ] || continue [ -d ../contracts-dfcc/$d ] || continue cp -a ../contracts-dfcc/$d ../contracts-dfcc/X.$d sed -i '1s/ dfcc-only$//' ../contracts-dfcc/X.$d/*.desc sed -i '3s/--dfcc main //' ../contracts-dfcc/X.$d/*.desc if diff -urN $d ../contracts-dfcc/X.$d ; then sed -i '1s/ dfcc-only$//' ../contracts-dfcc/$d/*.desc git rm -r $d fi rm -r ../contracts-dfcc/X.$d done ```
Removal of duplicates based on a manual review of the diff between test directories of the same name.
7fb297a
to
205e123
Compare
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## develop #7581 +/- ##
===========================================
- Coverage 78.50% 78.41% -0.10%
===========================================
Files 1670 1670
Lines 191768 191768
===========================================
- Hits 150549 150373 -176
- Misses 41219 41395 +176
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
The tagged test configuration in diffblue#7581 introduced a race for multiple test runs would read/write via the same file names, and may be doing so concurrently. See https://github.com/diffblue/cbmc/actions/runs/4480043988/jobs/7874814034 for one such example.
The tagged test configuration in diffblue#7581 introduced a race for multiple test runs would read/write via the same file names, and may be doing so concurrently. See https://github.com/diffblue/cbmc/actions/runs/4480043988/jobs/7874814034 for one such example.
e22a788 added a wholesale copy of regression/contracts as regression/contracts-dfcc. This is now follow-up cleanup to reduce duplication with the intent to reduce future maintenance cost. See individual commit messages for details on how the cleanup was done.