-
Notifications
You must be signed in to change notification settings - Fork 0
Fix runtime runner provisioning regressions after merged x64 patch #20
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,6 +55,10 @@ const getAllEnabledPools = db.prepare('SELECT * FROM runner_pools WHERE enabled | |
| const deleteRunner = db.prepare('DELETE FROM runners WHERE id = ?'); | ||
| const updateRunnerStatus = db.prepare('UPDATE runners SET status = ?, updated_at = datetime(\'now\') WHERE id = ?'); | ||
|
|
||
| export function shouldSkipGitHubExistenceCheck(status: string): boolean { | ||
| return status === 'pending' || status === 'configuring'; | ||
| } | ||
|
|
||
| /** | ||
| * Start the periodic reconciliation service | ||
| */ | ||
|
|
@@ -157,6 +161,11 @@ async function reconcileRunnersInternal(): Promise<void> { | |
| for (const runner of localRunners) { | ||
| stats.checked++; | ||
|
|
||
| // Newly provisioning runners are expected to not exist in GitHub yet. | ||
| if (shouldSkipGitHubExistenceCheck(runner.status)) { | ||
| continue; | ||
| } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Stuck provisioning runners are never cleaned upMedium Severity
|
||
|
|
||
| // Check if runner exists in GitHub (by ID or name) | ||
| const existsInGitHub = | ||
| (runner.github_runner_id && ghRunnerIds.has(runner.github_runner_id)) || | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exported functions now unused in production code
Low Severity
normalizeImageArchitectureandassertImageArchitectureare still exported but their only production callers were insidepullRunnerImage, which this commit removed. They are now dead code in production, used only bydockerRunner.test.ts.