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

Update bug fix issue template #676

Merged
merged 7 commits into from
May 17, 2022

Conversation

ChrisCummins
Copy link
Contributor

  • Remove conda from the list of installation sources (we don't have a conda package)
  • Port collect_env.py from PyTorch repo to this repo.
  • Adapt collect_env.py for CompilerGym by removing irrelevant CUDA / PyTorch dependencies.

@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 May 10, 2022
@codecov-commenter
Copy link

codecov-commenter commented May 10, 2022

Codecov Report

Merging #676 (96ee4ca) into development (63dbfac) will decrease coverage by 0.06%.
The diff coverage is 100.00%.

@@               Coverage Diff               @@
##           development     #676      +/-   ##
===============================================
- Coverage        88.36%   88.30%   -0.07%     
===============================================
  Files              125      125              
  Lines             7565     7565              
===============================================
- Hits              6685     6680       -5     
- Misses             880      885       +5     
Impacted Files Coverage Δ
compiler_gym/util/gym_type_hints.py 100.00% <100.00%> (ø)
...er_gym/third_party/inst2vec/inst2vec_preprocess.py 69.73% <0.00%> (-4.22%) ⬇️
compiler_gym/util/commands.py 83.33% <0.00%> (-2.39%) ⬇️
...loop_tool/service/loop_tool_compilation_session.py 88.51% <0.00%> (-1.36%) ⬇️
compiler_gym/envs/llvm/datasets/cbench.py 80.50% <0.00%> (+1.08%) ⬆️
compiler_gym/service/connection.py 80.84% <0.00%> (+1.94%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 63dbfac...96ee4ca. Read the comment docs.

Copy link

@dpacgopinath dpacgopinath left a comment

Choose a reason for hiding this comment

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

This looks like a straight-forward ship-it considering there are only a few deviations from torch/utils/collect_env.py. I've left a few comments/questions

Comment on lines +46 to +51
# Caffe2 uses a copyright model similar to Caffe: each contributor holds
# copyright over their contributions to Caffe2. The project versioning records
# all such contribution and copyright details. If a contributor wants to further
# mark their specific copyright on a particular contribution, they should
# indicate their copyright solely in the commit message of the change when it is
# committed.

Choose a reason for hiding this comment

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

What is the source of these headers, and are they are necessary considering that the torch source file does not have them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm good question, I just inlined the entirety of PyTorch's LICENSE file, since it uses a somewhat non-standard text

if out is None:
return out
# Comment starting at beginning of line
comment_regex = re.compile(r"^#.*\n")

Choose a reason for hiding this comment

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

Would this cover comments using triple quotes? """ Comment """

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It wouldn't, but I think this is just to filter the output of conda list, which sometimes prefixes comment lines with # <something>

from enum import Enum
from typing import Any, Dict, List, Optional, Tuple, TypeVar, Union

Choose a reason for hiding this comment

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

I'd probably move this to another PR since it's an unrelated (but valid) change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah good catch, it crept into this PR as a tiny fixup 🙂

@ChrisCummins
Copy link
Contributor Author

Many thanks for the review @dpacgopinath!

@ChrisCummins ChrisCummins merged commit 596c242 into development May 17, 2022
@ChrisCummins ChrisCummins deleted the feature/bug-report-issue-template branch May 17, 2022 21:11
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.

4 participants