Skip to content

Delete message session when listener.Listen returns - #3240

Merged
nikola-jokic merged 2 commits into
masterfrom
nikola-jokic/delete-session
Jan 25, 2024
Merged

nikola-jokic merged 2 commits into
masterfrom
nikola-jokic/delete-session

Conversation

@nikola-jokic

Copy link
Copy Markdown
Collaborator

This PR fixes a bug where if the listener.Listen method returns an error, the session is not deleted.

As described in issue #3209, there may be cases where patching on job started message fails due to a not found error. If that occurs, the listener should not crash but rather inform that it is skipping the patch and continuing its work.

This PR also fixes a bug in github/actions/client.go when the expected response status code is matched, but the response unmarshal target is not provided.

Fixes #3209

@nikola-jokic
nikola-jokic requested review from a team, mumoshu and toast-gear as code owners January 22, 2024 11:20
@nikola-jokic nikola-jokic added the gha-runner-scale-set Related to the gha-runner-scale-set mode label Jan 22, 2024
@nikola-jokic nikola-jokic added the priority-0 Lower numbers eq. higher priority label Jan 22, 2024
@nikola-jokic
nikola-jokic merged commit 728f05c into master Jan 25, 2024
@nikola-jokic
nikola-jokic deleted the nikola-jokic/delete-session branch January 25, 2024 14:12
unpollito pushed a commit to DistruApp/actions-runner-controller that referenced this pull request Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gha-runner-scale-set Related to the gha-runner-scale-set mode priority-0 Lower numbers eq. higher priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Listener gets into crash loop with createSession 409 error

2 participants