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

Fix rate limit and runner not registered detection logic and action #309

Conversation

jonico
Copy link
Contributor

@jonico jonico commented Feb 14, 2021

  • in the changes introduced by feat: Prevent blocking on transient runner registration failure #297 - conditions to detect not found runners or rate limit exceptions have never been triggered because errors.Is compares all members of a struct to return true which never happened

  • switched to type check instead of exact value check and use references instead of copying values

  • in changes introduced by feat: Prevent blocking on transient runner registration failure #297 runners have been deregistered all 10 minutes (de-registration timeout), no matter whether they have failed to register or not because the if statement checking notRegistered was using double negation in if statement which lead to deregistration in all cases

  • changed if statement to only deregister if actually needed and cleaned up error messages and detection logic in replicaset and runner controllers

* errors.Is compares all members of a struct to return true which never 
happened
* switched to type check instead of exact value check
* notRegistered was using double negation in if statement which lead to 
unregistering runners after the registration timeout
Copy link
Collaborator

@mumoshu mumoshu left a comment

Choose a reason for hiding this comment

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

Awesome! I had a hard time testing/debugging the latest changes myself which delayed releasing them so this was SUPER helpful ❤️ Thanks again for your help, @jonico 🙇

@mumoshu mumoshu merged commit bc8bc70 into actions:master Feb 15, 2021
@jonico jonico deleted the fix-rate-limit-and-runner-not-found-detection-and-action branch February 15, 2021 12:10
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.

None yet

2 participants