-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
feat: add collect info #233
Conversation
.github/ISSUE_TEMPLATE/bug-report.md
Outdated
@@ -27,7 +27,9 @@ Steps to reproduce the behavior: | |||
<!-- A screenshot of the error message or anything shouldn't appear--> | |||
|
|||
## Environment | |||
<!-- TODO: We may provide a more automatic way to get the information --> | |||
|
|||
**Note**: User could run `rdagent collect_info` under project directory to get system information and paste them here directly. |
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.
under project directory?
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.
pip install
rdagent/app/cli.py
Outdated
@@ -37,6 +46,58 @@ def ui(port=80, log_dir="", debug=False): | |||
subprocess.run(cmds) | |||
|
|||
|
|||
def find_project_root(): |
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.
find the file via Path(__file__).resolve().parent.parent
rdagent/app/cli.py
Outdated
["Name of current operating system: ", "system"], | ||
["Processor architecture: ", "machine"], | ||
["System, version, and hardware information: ", "platform"], | ||
["Version number of the system: ", "version"], |
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.
Docker setting
rdagent/app/cli.py
Outdated
root_dir = find_project_root() | ||
current_version = get_version(root=root_dir) | ||
logger.info(f"RD-Agent version: {current_version.split('+')[0]}") | ||
package_list = [line for file in root_dir.joinpath("requirements").rglob("*") for line in open(file)] |
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.
check it works if it is a package installed by pip install
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.
maybe pip provides similar feature to get dependency
.github/ISSUE_TEMPLATE/bug-report.md
Outdated
<!-- TODO: We may provide a more automatic way to get the information --> | ||
|
||
**Note**: Users can run `rdagent collect_info` to get system information and paste it directly here. | ||
|
||
- RD-Agent version: |
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.
This should be changed now
* fix package * fix lint
* update cross validation for kaggle scenario * CI Issues * delete useless file * CI issues
* init a scenario for kaggle feature engineering * update the readme * Delete rdagent/app/kaggle_feature/conf.py * update some pictures * Delete rdagent/app/kaggle_feature/model.py * change a photo * add pics to docs * update the readme * update the README * for a try * for another try * change the style of the pictures in readme * fix a small bug * update the readme and the docs * update the docs * fix a typo * change a website url * change some styles * fix a typo * change the size of the logo * change two urls * Update README.md * Update README.md * Update README.md * Update README.md --------- Co-authored-by: Linlang <[email protected]>
rdagent/app/cli.py
Outdated
root_dir = Path(__file__).resolve().parent.parent.parent | ||
current_version = get_version(root=root_dir) | ||
logger.info(f"RD-Agent version: {current_version.split('+')[0]}") | ||
package_list = [ |
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.
update package
logger.info(f"OS of the last run is: {last_image.attrs['Os']}") | ||
else: | ||
logger.info(f"No images.") | ||
containers = client.containers.list(all=True) |
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.
latest container
rdagent/app/utils/info.py
Outdated
else: | ||
logger.info(f"No images.") | ||
containers = client.containers.list(all=True) | ||
last_container = containers[0] |
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.
index error
Description
Motivation and Context
How Has This Been Tested?
pytest qlib/tests/test_all_pipeline.py
under upper directory ofqlib
.Screenshots of Test Results (if appropriate):
Types of changes
📚 Documentation preview 📚: https://RDAgent--233.org.readthedocs.build/en/233/