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

feat: add collect info #233

Merged
merged 31 commits into from
Sep 7, 2024
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0c5494f
add collect info
SunsetWolf Aug 29, 2024
7bd45af
fix isort error
SunsetWolf Aug 29, 2024
90dc4f7
optimize code
SunsetWolf Aug 29, 2024
0749b0d
fix black error
SunsetWolf Aug 29, 2024
95250a9
Update rdagent/app/cli.py
you-n-g Aug 29, 2024
3b76535
Modify the code according to the comments
SunsetWolf Aug 30, 2024
7db6e4c
Merge branch 'add_collect_info' of github.com:microsoft/RD-Agent into…
SunsetWolf Aug 30, 2024
f01c8b5
fix isort error
SunsetWolf Aug 30, 2024
6e97242
add docker info
SunsetWolf Sep 6, 2024
b9747f5
docs: update contributors (#230)
Hytn Aug 28, 2024
28a1650
fix: package dependency. (#234)
you-n-g Aug 31, 2024
826c032
docs: Update development.rst (#235)
you-n-g Aug 31, 2024
361bc1a
feat: add cross validation for kaggle scenario (#236)
TPLin22 Sep 1, 2024
524d223
docs: Update README.md (#245)
xisen-w Sep 6, 2024
f513316
docs: refine the README (#244)
WinstonLiyt Sep 6, 2024
29babe5
Merge branch 'main' into add_collect_info
you-n-g Sep 6, 2024
5f9c681
move the component to other files
you-n-g Sep 6, 2024
ccf5d5c
last container
you-n-g Sep 6, 2024
1b747bf
optimize rdagent info
SunsetWolf Sep 6, 2024
83caef3
format with isort
SunsetWolf Sep 6, 2024
ecf1c89
format with black
SunsetWolf Sep 6, 2024
4e466d1
format_with_black
SunsetWolf Sep 6, 2024
49dc07f
fix pip error
SunsetWolf Sep 6, 2024
e514503
Merge branch 'main' of github.com:microsoft/RD-Agent into add_collect…
SunsetWolf Sep 6, 2024
3cf38b0
format with isort
SunsetWolf Sep 6, 2024
b58cd8d
change requirements
SunsetWolf Sep 6, 2024
765d2eb
fix pip error
SunsetWolf Sep 6, 2024
ed23b62
fix_pip_error
SunsetWolf Sep 6, 2024
99a6fbf
fix pip error
SunsetWolf Sep 6, 2024
bc12e72
format with black
SunsetWolf Sep 6, 2024
73fea83
fix pip error
SunsetWolf Sep 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix pip error
  • Loading branch information
SunsetWolf committed Sep 6, 2024
commit 765d2eb0ada9069aa58e5a1504ca4673e1ae590e
7 changes: 3 additions & 4 deletions rdagent/app/utils/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ def docker_info():

def rdagent_info():
"""collect rdagent related info"""
root_dir = Path(__file__).resolve().parent.parent.parent.parent
current_version = get_version(root=root_dir)
logger.info(f"RD-Agent version: {current_version.split('+')[0]}")
current_version = importlib.metadata.version("rdagent")
logger.info(f"RD-Agent version: {current_version}")
api_url = f"https://api.github.com/repos/microsoft/RD-Agent/contents/requirements?ref=main"
response = requests.get(api_url)
if response.status_code == 200:
Expand All @@ -76,7 +75,7 @@ def rdagent_info():
]
package_version_list = []
for package in package_list:
version = importlib.metadata.version("mypy")
version = importlib.metadata.version(package)
package_version_list.append(f"{package}=={version}")
logger.info(f"Package version: {package_version_list}")
return None
Expand Down