Skip to content

Conversation

@alokgoswami-ag
Copy link
Contributor

Created function wrappers in monitor_compat.py for each public function in monitor.py: they call the underlying function in a try block, catch any exceptions, and convert them via a helper _err_str_from_exc() into the legacy error string or tuple.

Module-level globals PROW_URL and final_job_list are proxied so legacy callers that set/read them still work.

The module includes a getattr fallback so any attribute not explicitly wrapped is forwarded to monitor.py, preserving full API coverage.

No breaking changes: monitor.py still behaves as before; legacy calls via monitor_compat.py behave as before in terms of error returns.

@ppc64le-cloud-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: alokgoswami-ag
Once this PR has been reviewed and has the lgtm label, please assign shilpa-gokul for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@alokgoswami-ag alokgoswami-ag changed the title refactor exception handling WIP:refactor exception handling Oct 24, 2025
@alokgoswami-ag alokgoswami-ag changed the title WIP:refactor exception handling WIP: refactor exception handling Oct 24, 2025
@alokgoswami-ag alokgoswami-ag force-pushed the refactor-exception-handling branch from 2bb7328 to f545e5c Compare October 27, 2025 09:19
@alokgoswami-ag alokgoswami-ag force-pushed the refactor-exception-handling branch from f545e5c to f86afaf Compare October 27, 2025 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants