Skip to content
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

[tests] Minimize the fork regression tests. #754

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

ChrisCummins
Copy link
Contributor

This wrote a simple routine minimize_fork_regression_testcase() that
takes as input a forked regression test and iteratively attempts to
remove each of the actions that do not prevent the test from failing.

Running this on the five known regression tests simplifies them
dratically. In all but one case, they are simplified to a single
pre-fork and single post-fork action.

I'll dig more into the details of what's going on in later.

Issue #749.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 12, 2022
@codecov-commenter
Copy link

codecov-commenter commented Aug 12, 2022

Codecov Report

Merging #754 (b1605cd) into development (72fb339) will increase coverage by 1.65%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@               Coverage Diff               @@
##           development     #754      +/-   ##
===============================================
+ Coverage        80.46%   82.11%   +1.65%     
===============================================
  Files              131      131              
  Lines             7995     8008      +13     
===============================================
+ Hits              6433     6576     +143     
+ Misses            1562     1432     -130     
Impacted Files Coverage Δ
compiler_gym/util/filesystem.py 93.33% <0.00%> (-1.41%) ⬇️
compiler_gym/third_party/llvm/__init__.py 88.33% <0.00%> (+0.19%) ⬆️
compiler_gym/envs/gcc/service/gcc_service.py 95.97% <0.00%> (+0.36%) ⬆️
compiler_gym/envs/llvm/datasets/cbench.py 74.46% <0.00%> (+0.44%) ⬆️
compiler_gym/util/runfiles_path.py 91.07% <0.00%> (+1.78%) ⬆️
compiler_gym/envs/llvm/llvm_benchmark.py 51.38% <0.00%> (+2.08%) ⬆️
compiler_gym/service/connection.py 75.08% <0.00%> (+2.58%) ⬆️
compiler_gym/service/service_cache.py 92.10% <0.00%> (+5.26%) ⬆️
compiler_gym/envs/loop_tool/__init__.py 90.00% <0.00%> (+20.00%) ⬆️
...loop_tool/service/loop_tool_compilation_session.py 87.83% <0.00%> (+72.29%) ⬆️

This wrote a simple routine minimize_fork_regression_testcase() that
takes as input a forked regression test and iteratively attempts to
remove each of the actions that do not prevent the test from failing.

Running this on the five known regression tests simplifies them
dratically. In all but one case, they are simplified to a single
pre-fork and single post-fork action.

I'll dig more into the details of what's going on in later.

Issue facebookresearch#749.
@ChrisCummins ChrisCummins added this to the v0.2.6 milestone Nov 2, 2022
@ChrisCummins ChrisCummins merged commit c2d8845 into facebookresearch:development Nov 2, 2022
@ChrisCummins ChrisCummins deleted the fix/749 branch November 2, 2022 20:49
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