Skip to content

Fix pods and runner api not in sync and other improvments#496

Open
hybner wants to merge 3 commits intoevryfs:masterfrom
hybner:fix/podsAndRunnerApiNotInSync
Open

Fix pods and runner api not in sync and other improvments#496
hybner wants to merge 3 commits intoevryfs:masterfrom
hybner:fix/podsAndRunnerApiNotInSync

Conversation

@hybner
Copy link
Copy Markdown
Contributor

@hybner hybner commented Oct 3, 2022

Fix reconcilation when pods was deleted.

When pods are deleted then podRunnerPairs should be reloaded, so it's
better to requeue reconcilation immediately.

When new pods are scale up then it takes some time usually a few seconds
to sync between pods and runner API and so there is no need to wait
whole period (default 1m) to sync.

Better scale up and down runners

We use ephemeral runners which shutdown after pipeline ends and after
this new runners starts. So I change behaviour to scale up new runners
when idle runners change to busy. This is change meaning minRunners
property to mininum idle Runners. This change respect maxRunners
property.

Lukas Hybner added 3 commits October 3, 2022 15:46
When pods are deleted then podRunnerPairs should be reloaded, so it's
better to requeue reconcilation immediately.

When new pods are scale up then it takes some time usually a few seconds
to sync between pods and runner API and so there is no need to wait
whole period (default 1m) to sync.

Signed-off-by: Lukas Hybner <git@hybner.net>
We use ephemeral runners which shutdown after pipeline ends and after
this new runners starts. So I change behaviour to scale up new runners
when idle runners change to busy. This is change meaning minRunners
property to mininum idle Runners. This change respect maxRunners
property.

Signed-off-by: Lukas Hybner <git@hybner.net>
Signed-off-by: Lukas Hybner <git@hybner.net>
@hybner hybner force-pushed the fix/podsAndRunnerApiNotInSync branch from 57d5dd6 to 5f7beae Compare October 3, 2022 13:47
@codecov
Copy link
Copy Markdown

codecov bot commented Oct 3, 2022

Codecov Report

❌ Patch coverage is 44.44444% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.13%. Comparing base (5ba542c) to head (5f7beae).
⚠️ Report is 84 commits behind head on master.

Files with missing lines Patch % Lines
controllers/githubactionrunner_controller.go 44.45% 8 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #496      +/-   ##
==========================================
- Coverage   64.22%   63.13%   -1.09%     
==========================================
  Files           3        3              
  Lines         313      320       +7     
==========================================
+ Hits          201      202       +1     
- Misses         86       91       +5     
- Partials       26       27       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lukashybner-ext90548
Copy link
Copy Markdown
Contributor

@davidkarlsen Is it possible to merge this PR?

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