-
Notifications
You must be signed in to change notification settings - Fork 946
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
Implement new runner service name convention #193
Conversation
265fb63
to
a390f1b
Compare
I thought we had this in AZP, did we miss it when we fork the repo? |
Yeah, currently we are limited to 7 characters for the name, which is really rough UX |
Correct @TingluoHuang, the code exists in AZP, but we missed when we forked the repo. So this is a straight re-addition. |
Can we also fix the issue where the service says it is starting when it actually is not, otherwise can we go ahead and file another issue for that item |
Changes look good, lets add some tests! |
I'm good with keeping runner service names consistent. I'll make it Edit: I'm going to defer making the service rename change with this PR, as it's not a bug and it's not pressing in any sort of way to get it merged. |
b1162a3
to
a390f1b
Compare
6223624
to
e0aacfa
Compare
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.
LGTM clean
What does a "generated" service name look like now? |
^^ I would also like to review the generated name and compare to linux and mac. It would be nice if the docs just said, a service name looks like xxx and it's the same. |
@bryanmacfarlane with my proposed PR changes, generated service names look like this:
|
We may want to run this by product because the hash is ugly and pool names are irrelevant in actions. I think it should just be:
The key is we want it to be clear but also avoid conflicts (thus the repo | org). The other option is to just tell folks to use distinct names and drops that. The hash should go. Also, the config file has the url and host so that doesn't need to be in the name |
Hey @bryanmacfarlane, are we good merging this PR? My focus was on fixing the >80 chars bug to keep the changes well-scoped. We can discuss/implement the proposed naming changes with a separate issue/PR. What do you think? |
Spoke with @bryanmacfarlane and @thejoebourneidentity. We're going to re-purpose this PR to include the proposed service naming changes by Bryan. |
37ad3da
to
446acd6
Compare
Hey @lucascosti! FYI, this PR now implements a the service naming convention below:
For example: if I'm setting up a service for a Linux/systemd runner that targets the |
We may want to consider doing {Org.Repo | Org} as two repos can have the same name in different orgs. |
@thboop The code is currently doing: [Org-Repo | Org]. So e.g. repos |
446acd6
to
50ca4de
Compare
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.
Minor Code thoughts but LGTM
Thanks, @juliobbv! I have opened a docs issue for the change: https://github.com/github/help-docs/issues/11694. We are currently frozen for Thanksgiving, but I'll make the docs update early next week. 🚀 |
@juliobbv are these changes public? I just tested it, and the I have a docs change ready to go in https://github.com/github/help-docs/pull/11704, but I'll hold off on that until you confirm. 🙂 |
@lucascosti the service name changes will be effective with the next runner release (2.162.0), which is scheduled to happen later today (release was frozen due to Thanksgiving weekend). I'll let you know once the release is created so you can merge your PR. |
* Limit service name to 80 characters * Add L0 tests * New service name convention * Make RepoOrOrgName a computed property * Add service name sanitizing logic with L0 test
Adopt new runner service name convention:
Additionally, because
[org-repo|org]
and<runnername>
can be long enough to create a service name that's longer than 80 characters, this PR adds code that sensibly trims each part to make everything fit inside 80 chars.Fixes #187, #191