Skip to content

SS 1516 Fix error release not in statusdata - #13

Merged
alfredeen merged 13 commits into
mainfrom
ss-1516-fix-error-release-not-in-statusdata
Sep 15, 2025
Merged

SS 1516 Fix error release not in statusdata#13
alfredeen merged 13 commits into
mainfrom
ss-1516-fix-error-release-not-in-statusdata

Conversation

@alfredeen

@alfredeen alfredeen commented Sep 5, 2025

Copy link
Copy Markdown
Member

This PR adds a fix to bug that occurs when the k8s event stream registers a delete event but the app (release) is not registered in the EL status queue. It also:

  • modifies Dockerfile to /app layout and main as module execution
  • adds an http_client subpackage with session and client wrappers to separate HTTP concerns
  • installs jq into the docker container
  • adds several new unit test classes for better test coverage

Note that kubeconfig is now expected at /app/cluster.conf inside the container (impacts docker compose of stackn project).

@alfredeen alfredeen self-assigned this Sep 5, 2025
@alfredeen
alfredeen marked this pull request as ready for review September 5, 2025 13:55
@alfredeen
alfredeen requested a review from a team as a code owner September 5, 2025 13:55
Comment thread serve_event_listener/event_listener.py
Comment thread serve_event_listener/event_listener.py
…te HTTP concerns. Centralized retry, token refresh, and exception handling.
… Install jq. Kubeconfig now expected at /app/cluster.conf inside the container
… Refactor StatusQueue to take a shared session and use the new http post wrapper. Add unit tests for EventListener and StatusQueue.

@churnikov churnikov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it looks good:)
I didn't read too deep into tests though, but they seem good too


logger = logging.getLogger(__name__)

Timeout = Tuple[float, float]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
Timeout = Tuple[float, float]
TimeoutRange = Tuple[float, float]

If I understand it correctly

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The values are not a range, but control two distinct request activities, namely connect timeout and read timeout.

Comment thread serve_event_listener/status_queue.py Outdated
Comment thread serve_event_listener/status_queue.py Outdated
@alfredeen
alfredeen merged commit c51f75d into main Sep 15, 2025
3 checks passed
@alfredeen
alfredeen deleted the ss-1516-fix-error-release-not-in-statusdata branch September 15, 2025 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants