-
Notifications
You must be signed in to change notification settings - Fork 418
Move configurable parameters from env vars to config file #222
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
Move configurable parameters from env vars to config file #222
Conversation
Signed-off-by: Hsin Chen <[email protected]>
Signed-off-by: Hsin Chen <[email protected]>
Signed-off-by: Hsin Chen <[email protected]>
|
/ok to test 76c42c0 |
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.
Pull Request Overview
This PR migrates configurable parameters from environment variables to a configuration file, streamlining parameter management and improving consistency. Key changes include:
- Replacing environment variable dependency with explicit config parameters in multiple modules.
- Updating utility functions to preload and retrieve test data using the new config values.
- Reflecting these changes in the workflow configuration and documentation.
Reviewed Changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| utils.py | Refactored functions to preload and retrieve test data using explicit config paths and removed dependency on env vars |
| telemetry_metrics_*_check_tool.py, network_connectivity_check_tool.py, host_performance_check_tool.py, hardware_check_tool.py, monitoring_process_check_tool.py | Updated to use config.test_mode and get_test_data instead of environment variable–driven functions |
| register.py | Updated field types and added new config parameters for test mode and test data paths |
| config.yml | Added test_mode and path parameters for each tool and workflow |
| README.md | Updated documentation to reflect the new configuration approach |
Files not reviewed (1)
- examples/alert_triage_agent/.env_example: Language not supported
examples/alert_triage_agent/src/aiq_alert_triage_agent/maintenance_check.py
Show resolved
Hide resolved
...ert_triage_agent/src/aiq_alert_triage_agent/telemetry_metrics_host_performance_check_tool.py
Show resolved
Hide resolved
Signed-off-by: Hsin Chen <[email protected]>
|
/ok to test 8177eaf |
dagardner-nv
left a comment
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, just a question
examples/alert_triage_agent/src/aiq_alert_triage_agent/configs/config.yml
Show resolved
Hide resolved
...ert_triage_agent/src/aiq_alert_triage_agent/telemetry_metrics_host_performance_check_tool.py
Show resolved
Hide resolved
Signed-off-by: Hsin Chen <[email protected]>
a36faaa to
443ec27
Compare
|
/ok to test 443ec27 |
|
/merge |
This PR moves the parameters used by the model in the environment variables to the config file for easier parameter tracking. Closes NVIDIA#213 Tested offline and validated the generation of an expected output file. Authors: - https://github.com/hsin-c Approvers: - David Gardner (https://github.com/dagardner-nv) - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah) URL: NVIDIA#222 Signed-off-by: Yuchen Zhang <[email protected]>
This PR moves the parameters used by the model in the environment variables to the config file for easier parameter tracking. Closes NVIDIA#213 Tested offline and validated the generation of an expected output file. Authors: - https://github.com/hsin-c Approvers: - David Gardner (https://github.com/dagardner-nv) - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah) URL: NVIDIA#222 Signed-off-by: Yuchen Zhang <[email protected]>
This PR moves the parameters used by the model in the environment variables to the config file for easier parameter tracking. Closes NVIDIA#213 Tested offline and validated the generation of an expected output file. Authors: - https://github.com/hsin-c Approvers: - David Gardner (https://github.com/dagardner-nv) - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah) URL: NVIDIA#222
This PR moves the parameters used by the model in the environment variables to the config file for easier parameter tracking. Closes NVIDIA#213 Tested offline and validated the generation of an expected output file. Authors: - https://github.com/hsin-c Approvers: - David Gardner (https://github.com/dagardner-nv) - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah) URL: NVIDIA#222 Signed-off-by: Yuchen Zhang <[email protected]>
This PR moves the parameters used by the model in the environment variables to the config file for easier parameter tracking. Closes NVIDIA#213 Tested offline and validated the generation of an expected output file. Authors: - https://github.com/hsin-c Approvers: - David Gardner (https://github.com/dagardner-nv) - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah) URL: NVIDIA#222 Signed-off-by: Yuchen Zhang <[email protected]>
This PR moves the parameters used by the model in the environment variables to the config file for easier parameter tracking. Closes NVIDIA#213 Tested offline and validated the generation of an expected output file. Authors: - https://github.com/hsin-c Approvers: - David Gardner (https://github.com/dagardner-nv) - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah) URL: NVIDIA#222 Signed-off-by: Eric Evans <[email protected]>
This PR moves the parameters used by the model in the environment variables to the config file for easier parameter tracking. Closes NVIDIA#213 Tested offline and validated the generation of an expected output file. Authors: - https://github.com/hsin-c Approvers: - David Gardner (https://github.com/dagardner-nv) - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah) URL: NVIDIA#222 Signed-off-by: Eric Evans <[email protected]>
This PR moves the parameters used by the model in the environment variables to the config file for easier parameter tracking. Closes NVIDIA#213 Tested offline and validated the generation of an expected output file. Authors: - https://github.com/hsin-c Approvers: - David Gardner (https://github.com/dagardner-nv) - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah) URL: NVIDIA#222
This PR moves the parameters used by the model in the environment variables to the config file for easier parameter tracking. Closes NVIDIA#213 Tested offline and validated the generation of an expected output file. Authors: - https://github.com/hsin-c Approvers: - David Gardner (https://github.com/dagardner-nv) - Anuradha Karuppiah (https://github.com/AnuradhaKaruppiah) URL: NVIDIA#222
Description
This PR moves the parameters used by the model in the environment variables to the config file for easier parameter tracking.
Closes #213
Tested offline and validated the generation of an expected output file.