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

feat!: unregister runner using its unique id #39

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Conversation

soonum
Copy link
Contributor

@soonum soonum commented Nov 14, 2024

BREAKING CHANGE: runner name cannot be used anymore to remove it from GitHub platform.

A runner can be removed directly, through the REST API, using its ID. This change has been made to avoid Slab server to fetch all registered runners before being able to filter by name and finally find ID of the runner to remove.

CI will fail as long as Slab is not updated to handle stop mode with runner-id as input.

@soonum soonum requested a review from IceTDrinker November 14, 2024 15:13
@soonum soonum self-assigned this Nov 14, 2024
@soonum soonum force-pushed the dt/feat/runner_id branch 3 times, most recently from ed1dec2 to ea9229d Compare December 3, 2024 08:16
BREAKING CHANGE: runner name cannot be used anymore to remove it
from GitHub platform.

A runner can be removed directly, through the REST API, using its ID.
This change has been made to avoid Slab server to fetch all
registered runners before being able to filter by name and finally
find ID of the runner to remove.
@soonum soonum force-pushed the dt/feat/runner_id branch from ea9229d to ab93d44 Compare December 3, 2024 08:23
Comment on lines 29 to 33
async function stop() {
const stop_instance_response = await slab.terminateInstanceRequest(
config.input.label
config.input.runnerId
)
await slab.waitForInstance(stop_instance_response.task_id, 'stop')
Copy link
Member

Choose a reason for hiding this comment

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

that's fully breaking, is that what we discussed ?

Copy link
Contributor Author

@soonum soonum Dec 3, 2024

Choose a reason for hiding this comment

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

It's fully breaking but older version of the action can still be used. It's breaking from action point of view but Slab handle the backward compatibility.

@soonum soonum requested a review from IceTDrinker December 3, 2024 11:13
Copy link
Member

@IceTDrinker IceTDrinker left a comment

Choose a reason for hiding this comment

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

This may cause issues with dependabot if it's able to start instances but they don't get stopped, likely need to update everything ASAP on repos with dependabot

@soonum
Copy link
Contributor Author

soonum commented Dec 3, 2024

This may cause issues with dependabot if it's able to start instances but they don't get stopped, likely need to update everything ASAP on repos with dependabot

Yes you're right. I'll handle this update.

@soonum soonum merged commit e8d3b74 into main Dec 3, 2024
29 of 32 checks passed
@soonum soonum deleted the dt/feat/runner_id branch December 3, 2024 14:01
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