Repository navigation
feat(toolkit): guided setup for any org or repository, and CI benchmark - #10
Merged
Merged
Conversation
Anyone who gets the toolkit can register a runner with their own organization or repository, nothing is tied to one account anymore. - make setup asks the four values of .env (resource group, HCP organization, runner target, PAT), picked from lists, opens a prefilled token page, checks the token with GitHub and offers to allow public repositories in an organization runner group - GITHUB_RUNNER_URL selects an organization or a repository; changing it moves the runner on the next ansible-apply, no VM rebuild - runner name is unique per VM, so --replace never takes over the runner of someone else in the same organization - HCP organization, resource group and OIDC repository come from .env and the origin remote instead of hardcoded values - benchmark menu: pick a repository and a run, show its logs or the total CI duration to the millisecond, read from the log archive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The toolkit is no longer tied to one account: anyone who gets it can register a runner with their own organization or repository.
make setup(menu entry 1) asks the four values of.env, picked from lists: resource group, HCP Terraform organization, runner target, PAT. It opens a prefilled token page, checks the token with GitHub, and for an organization offers to allow public repositories in the default runner group.GITHUB_RUNNER_URLis an organization or a repository. Changing it moves the runner on the nextmake ansible-apply, without rebuilding the VM.vm-runner-<machine id>), so--replacenever takes over someone else's runner in the same organization..envand the origin remote, no hardcoded values left.make bench-*): pick a repository and a run, show its logs or the total CI duration to the millisecond, read from the run log archive (the API only has seconds).Verified
Melvin-Simplon, smoke test run on it.vm-runner-4a6b3637, 3.657s.terraform fmt,terraform validate, 13 Terraform tests, Ansible syntax check.Not verified