whywaita / myshoes Goto Github PK
View Code? Open in Web Editor NEWAuto-scaling VirtualMachine runner ๐ for GitHub Actions
License: MIT License
Auto-scaling VirtualMachine runner ๐ for GitHub Actions
License: MIT License
Currently, the docker tag only sets latest
.
related: #31
now, myshoes skip downloading runner's file if found cache.
myshoes/pkg/starter/scripts.go
Lines 230 to 232 in 2edd288
gzip -d
always. It has occurrs many i/o tasks.
So myshoes need to add directory cache
that extracted gzip.
2021/04/20 19:20:40 failed to bung: failed to get plugin client: failed to get shoes client: fork/exec /tmp/shoes-lxd: text file busy
https://github.com/octo-org/hello-world-javascript-action
octo-org/hello-world-javascript-action
OCTO-ORG/hello-world-javascript-action
octo-org/hello-world-javascript-action
OCTO-ORG/hello-world-javascript-action
GitHub released workflow_job
as a new webhook event.
myshoes use check_run
in
Line 46 in b0f514d
workflow_job
provides a label for runs-on
in the workflow definition.step
runners_runnning
active
#87 becomes checking registration before deleting a job.
But actions/runner
has a problem with race. So myshoes needs API for mode chenge.
myshoes/pkg/web/target_create.go
Line 75 in 8edab30
Lines 167 to 184 in 98029fd
When the deleteRunner
function is failed, target status becomes "error", but the lines below (L179~182) always set the status as โ"active".
Therefore the target status will be always "active" even though all the runner deletion was failed.
mysql> delete from targets where uuid = "UUID";
ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails (`myshoes`.`runners`, CONSTRAINT `runners_ibfk_1` FOREIGN KEY (`target_id`) REFERENCES `targets` (`uuid`) ON DELETE RESTRICT)
GitHub will remove offline runner if connected last 30 days.
https://docs.github.com/en/actions/hosting-your-own-runners/removing-self-hosted-runners
A self-hosted runner is automatically removed from GitHub if it has not connected to GitHub Actions for more than 30 days.
if remove runner for queueing by GitHub, myshoes not remove a runner created by myshoes.
runner_detail add columns
failed to process check_run event: failed to search registered target: failed to get target from repo: %!w(<nil>)
The stadium VM has dust runner because bug from myshoes.
This project is great!
Thank you for developing it.
By the way, I would like to be able to change an image ID for each target.
Are there any plans to support multiple image ID?
myshoes/pkg/starter/starter.go
Line 164 in 4d7c105
GitHub Personal Token has force permission.
GitHub Server send webhook that skipped check, But myshoes shouldn't create an instance from this notify
/shoes-lxd
Line 148 in 8c3ef91
searchRepo()
not check the status of the target.
octocat/example
octocat
octocat/example
So, searchRepo return octocat/example
, but this target is deleted.
#61 changed the method of authentication.
one myshoes uses one GitHub Apps.
So, myshoes host only one ghe_domain
.
targets
table does not need to has a ghe_domain
column.
myshoes/pkg/starter/starter.go
Lines 228 to 237 in ab232b1
https://github.com/whywaita/myshoes/blob/master/pkg/runner/runner.go#L56-L70
m.doTargetToken need to start in a some interval, But this code block due m.do .
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.