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

Add job and service support fields: owner, summary, notes. #310

Merged
merged 8 commits into from Oct 2, 2015

Conversation

mikepea
Copy link
Contributor

@mikepea mikepea commented Aug 28, 2015

When supporting Tron with a large configuration managed by many people and teams, it gets very difficult to see who owns what. 'git blame' and looking at the code of individual jobs, basically.

Namespaces help with this, and naturally comments in the YAML files help too. However, this is pretty basic and very difficult to enforce.

This PR adds the following fields to the configuration, and extends visibility to the API and Tronview.

  • owner (string)
  • summary (string)
  • notes (string)

These should allow job/service authors to give reasonable hints as to who to contact in the event of maintenance/update, what the job/service does, and arbitrary notes (such as links to runbooks, details of business impacts, etc).

The fields are all optional, and default to the empty string.

The PR also updates the Vagrant playground environment to have working playground tronfig, with these fields included.

Mike Pountney added 8 commits August 27, 2015 06:58
With a large tronfig managed by many people, it can be difficult
to know who should be contacted when performing maintenance.

Namespaces help with this, but it is still hard without going to the job
code itself, or git blame.

This allows job/service authors to put contact details, a summary of the job/services
purpose, and any support notes they feel are relevant, by adding the following optional fields
to the job and service schemas:

* 'owner' (string)
* 'summary' (string)
* 'notes' (string)
Adds service owner,summary,notes to JSON returned by /api/service

Adds service owner,summary,notes to per-service tronview

Adds owner to service summary in general tronview.
This adds a sample tronfig that tests out the new service fields.

A key change is the addition of the sshd_config, as MaxSessions is needed
for Tron.
* owner/summary/notes now available.
For some reason it's still not working, but this fixes the first problem.
@mikepea
Copy link
Contributor Author

mikepea commented Aug 28, 2015

@yyejun -- could you review?

yyejun pushed a commit that referenced this pull request Oct 2, 2015
Add job and service support fields: owner, summary, notes.
@yyejun yyejun merged commit 0e4dd22 into Yelp:master Oct 2, 2015
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.

None yet

2 participants