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

EphemeralRunner status.ready should reflect Pod readiness #3823

Open
4 tasks done
ordovicia opened this issue Nov 25, 2024 · 1 comment
Open
4 tasks done

EphemeralRunner status.ready should reflect Pod readiness #3823

ordovicia opened this issue Nov 25, 2024 · 1 comment
Labels
bug Something isn't working gha-runner-scale-set Related to the gha-runner-scale-set mode needs triage Requires review from the maintainers

Comments

@ordovicia
Copy link
Contributor

Checks

Controller Version

0.9.3

Deployment Method

Other

Checks

  • This isn't a question or user support case (For Q&A and community support, go to Discussions).
  • I've read the Changelog before submitting this issue and I'm sure it's not due to any recently-introduced backward-incompatible changes

To Reproduce

N/A

Describe the bug

EphemeralRunner's readiness (status.ready field) is calculated as follows.
It becomes true when the associated Pod starts running (status.phase: Running).

obj.Status.Ready = obj.Status.Ready || (pod.Status.Phase == corev1.PodRunning)

However, EphemeralRunner's readiness should reflect the Pod's readiness (status.conditions[type="Ready"].status).
Otherwise, an EphemeralRunner is recognized as ready while its Pod is actually not ready yet.

Describe the expected behavior

EphemeralRunners become ready once their associated Pods become ready, not just running.

Additional Context

N/A

Controller Logs

N/A

Runner Pod Logs

N/A
@ordovicia ordovicia added bug Something isn't working gha-runner-scale-set Related to the gha-runner-scale-set mode needs triage Requires review from the maintainers labels Nov 25, 2024
Copy link
Contributor

Hello! Thank you for filing an issue.

The maintainers will triage your issue shortly.

In the meantime, please take a look at the troubleshooting guide for bug reports.

If this is a feature request, please review our contribution guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gha-runner-scale-set Related to the gha-runner-scale-set mode needs triage Requires review from the maintainers
Projects
None yet
Development

No branches or pull requests

1 participant