You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scaled object for the Github runner scaler takes an 'installationID' and 'applicationId' parameter as input, which are both expected to be int. The method that parses those values checks that they are valid integers and will raise an error, however the calling method ignores the detailed error and raises a generic "applicationID, installationID and applicationKey must be given" error message, which is misleading. The values were given, but they were invalid.
Expected Behavior
The detailed parsing error message should be returned from the setupGitHubApp method so that the author has better information to debug their issue.
Actual Behavior
Passing a string to either applicationID or installationID will raise the following error in the operator logs.
"error parsing GitHub Runner metadata: applicationID, installationID and applicationKey must be given"
Steps to Reproduce the Problem
Deploy keda to the cluster
Follow the keda logs: kubectl logs -f -l app=keda-operator -n keda
Report
The scaled object for the Github runner scaler takes an 'installationID' and 'applicationId' parameter as input, which are both expected to be int. The method that parses those values checks that they are valid integers and will raise an error, however the calling method ignores the detailed error and raises a generic "applicationID, installationID and applicationKey must be given" error message, which is misleading. The values were given, but they were invalid.
Expected Behavior
The detailed parsing error message should be returned from the setupGitHubApp method so that the author has better information to debug their issue.
Actual Behavior
Passing a string to either applicationID or installationID will raise the following error in the operator logs.
"error parsing GitHub Runner metadata: applicationID, installationID and applicationKey must be given"
Steps to Reproduce the Problem
Logs from KEDA operator
KEDA Version
2.15.1
Kubernetes Version
1.29
Platform
Microsoft Azure
Scaler Details
Github Runner Scaler
Anything else?
Code reference:
Parse method does a good job of validating the content and raising an informative error:
keda/pkg/scalers/github_runner_scaler.go
Line 371 in f6358d5
setupGithubApp method swallows the detailed error and raises a generic error:
keda/pkg/scalers/github_runner_scaler.go
Line 442 in f6358d5
The text was updated successfully, but these errors were encountered: