Difference between revisions of "Committer resources"
(6 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
* RT account |
* RT account |
||
* Git access |
* Git access |
||
− | * Daptiv access (for some contributors working on time-sensitive projects) |
||
* Posting authorization to cvs-krb5 if you are going to commit stuff. |
* Posting authorization to cvs-krb5 if you are going to commit stuff. |
||
+ | * Coverity scan access |
||
== Where stuff is at == |
== Where stuff is at == |
||
− | * Git URL |
+ | * Git URL: krbdev.mit.edu:/git/krb5.git -- you may need to put "username@" in front if your local username is not the same as your Athena account name. Clone this instead of git@github.com:krb5/krb5.git when setting up your local repository in order to be able to push changes. |
* SSH to athena.dialup.mit.edu if you want easy access to AFS, a UNIX shell, etc. |
* SSH to athena.dialup.mit.edu if you want easy access to AFS, a UNIX shell, etc. |
||
** You'll need to set GSSAPIDelegateCredentials=yes in order to do passwordless login, because user home directories are in AFS, and the administrators didn't want to confuse users who logged in with Kerberos but couldn't access their files. |
** You'll need to set GSSAPIDelegateCredentials=yes in order to do passwordless login, because user home directories are in AFS, and the administrators didn't want to confuse users who logged in with Kerberos but couldn't access their files. |
||
* RT https://krbdev.mit.edu/rt/ (or https://krbdev.mit.edu:444/rt/ if your browser doesn't deal with "optional" SSL client certificate verification) |
* RT https://krbdev.mit.edu/rt/ (or https://krbdev.mit.edu:444/rt/ if your browser doesn't deal with "optional" SSL client certificate verification) |
||
− | == Accessing |
+ | == Accessing krbdev.mit.edu == |
− | The preferred way to access |
+ | The preferred way to access krbdev.mit.edu is with GSSAPI krb5 authentication. It is not necessary to delegate credentials. publickey authentication can be set up if required. |
− | |||
− | It is also possible to use publickey authentication. Because Athena account home directories are stored in AFS, there are some extra setup steps required to make sure that the sshd on git.mit.edu can read your public key: |
||
− | |||
− | * Your home directory and .ssh directory must allow list (but not read) access to unauthenticated users. This is generally the case by default. |
||
− | * Your .ssh/authorized_keys file must be a link to a directory which allows read access to unauthenticated users. To set this up, you can ssh to athena.dialup.mit.edu and run: |
||
− | |||
− | # mkdir $HOME/.ssh if it doesn't already exist. |
||
− | cd $HOME/.ssh |
||
− | mkdir pub |
||
− | fs sa pub system:anyuser rl |
||
− | # Move aside authorized_keys if it already exists. |
||
− | ln -s pub/authorized_keys authorized_keys |
||
− | |||
− | The contents of your key pair's .pub file should be placed into $HOME/.ssh/pub/authorized_keys. |
||
− | |||
− | Finally, you can authenticate to git.mit.edu using password authentication with your Athena password. |
||
== RT headers == |
== RT headers == |
||
− | If a commit makes a user-visible change, such as adding a new feature or fixing a user-visible bug in a previous release, it should be associated with an RT ticket. Do this by adding RT pseudo-headers at the end of the commit message, after a blank line. The most important header is "ticket:", which associates the commit with a ticket number. Add "tags: pullup" and "target_version: X.Y |
+ | If a commit makes a user-visible change, such as adding a new feature or fixing a user-visible bug in a previous release, it should be associated with an RT ticket. Do this by adding RT pseudo-headers at the end of the commit message, after a blank line. The most important header is "ticket:", which associates the commit with a ticket number. Add "tags: pullup" and "target_version: X.Y-next" if the commit should be pulled up to a release branch. Here is an example: |
Use correct profile var in krb5_get_tgs_ktypes |
Use correct profile var in krb5_get_tgs_ktypes |
||
Line 33: | Line 33: | ||
ticket: 7155 |
ticket: 7155 |
||
− | target_version: 1.10 |
+ | target_version: 1.10-next |
tags: pullup |
tags: pullup |
||
− | A ticket can |
+ | A ticket can multiple target_version values. If a fix needs to go into multiple releases, use a separate target_version header for each one. |
=== New tickets === |
=== New tickets === |
||
− | If you are creating a new ticket, run "ssh |
+ | If you are creating a new ticket, run "ssh krbdev.mit.edu krb5-rt-id" to reserve a ticket number, and put "ticket: NNNN (new)" in the commit message, substituting the ticket number for NNNN. The summary line of the commit will be used as the subject of the new ticket; if this is not what you want, you can use a "subject:" RT header to set the ticket subject, or you can change the subject afterwards in RT. |
− | You can automate this process using a [https://raw.github.com/krb5/krbdev-services/master/githooks-client/commit-msg commit-msg hook]. Drop the contents of the hook into .git/hooks/commit-msg and make it executable. Then you can put just "ticket: new" at the end of a commit message, and the hook will automatically reserve a ticket number and rewrite the header to "ticket: NNNN (new)". You should have some form of passwordless login to |
+ | You can automate this process using a [https://raw.github.com/krb5/krbdev-services/master/githooks-client/commit-msg commit-msg hook]. Drop the contents of the hook into .git/hooks/commit-msg and make it executable. Then you can put just "ticket: new" at the end of a commit message, and the hook will automatically reserve a ticket number and rewrite the header to "ticket: NNNN (new)". You should have some form of passwordless login to krbdev.mit.edu set up for this to work transparently. |
+ | |||
+ | === More about RT keywords === |
||
+ | |||
+ | These are somewhat inconsistent and will need more editing: |
||
+ | * Additional detail about [[RT keywords]] |
||
+ | * [[Manipulating RT tickets using commits]] |
||
== Pushing changes from contributors == |
== Pushing changes from contributors == |
||
Line 55: | Line 55: | ||
* Make sure the changes build and pass "make check". |
* Make sure the changes build and pass "make check". |
||
+ | |||
+ | * Add appropriate RT headers to the commit messages if appropriate. |
||
+ | |||
+ | * If you need to make significant changes to the commit or commit message, you can add a note to the end (before any RT headers) like: |
||
+ | |||
+ | [ghudson@mit.edu: Stylistic changes, commit message] |
Latest revision as of 13:17, 13 April 2022
This is information for developers who are committers to our repository.
Contents
Enrollment
- Athena account: MITKC staff will sponsor as appropriate. See http://web.mit.edu/accounts/www/getaccount.html for some overview information about Athena accounts.
- X.509 client certificate: Needed for RT access, among others. Information on how to obtain one is at http://web.mit.edu/ist/topics/certificates/index.html
- RT account
- Git access
- Posting authorization to cvs-krb5 if you are going to commit stuff.
- Coverity scan access
Where stuff is at
- Git URL: krbdev.mit.edu:/git/krb5.git -- you may need to put "username@" in front if your local username is not the same as your Athena account name. Clone this instead of git@github.com:krb5/krb5.git when setting up your local repository in order to be able to push changes.
- SSH to athena.dialup.mit.edu if you want easy access to AFS, a UNIX shell, etc.
- You'll need to set GSSAPIDelegateCredentials=yes in order to do passwordless login, because user home directories are in AFS, and the administrators didn't want to confuse users who logged in with Kerberos but couldn't access their files.
- RT https://krbdev.mit.edu/rt/ (or https://krbdev.mit.edu:444/rt/ if your browser doesn't deal with "optional" SSL client certificate verification)
Accessing krbdev.mit.edu
The preferred way to access krbdev.mit.edu is with GSSAPI krb5 authentication. It is not necessary to delegate credentials. publickey authentication can be set up if required.
RT headers
If a commit makes a user-visible change, such as adding a new feature or fixing a user-visible bug in a previous release, it should be associated with an RT ticket. Do this by adding RT pseudo-headers at the end of the commit message, after a blank line. The most important header is "ticket:", which associates the commit with a ticket number. Add "tags: pullup" and "target_version: X.Y-next" if the commit should be pulled up to a release branch. Here is an example:
Use correct profile var in krb5_get_tgs_ktypes In r21879, when we converted to using KRB5_CONF macros for profile variable names, we made a typo in krb5_get_tgs_ktypes and erroneously started using default_tkt_enctypes instead of default_tgs_enctypes for TGS requests. Fix the typo and return to the documented behavior. ticket: 7155 target_version: 1.10-next tags: pullup
A ticket can multiple target_version values. If a fix needs to go into multiple releases, use a separate target_version header for each one.
New tickets
If you are creating a new ticket, run "ssh krbdev.mit.edu krb5-rt-id" to reserve a ticket number, and put "ticket: NNNN (new)" in the commit message, substituting the ticket number for NNNN. The summary line of the commit will be used as the subject of the new ticket; if this is not what you want, you can use a "subject:" RT header to set the ticket subject, or you can change the subject afterwards in RT.
You can automate this process using a commit-msg hook. Drop the contents of the hook into .git/hooks/commit-msg and make it executable. Then you can put just "ticket: new" at the end of a commit message, and the hook will automatically reserve a ticket number and rewrite the header to "ticket: NNNN (new)". You should have some form of passwordless login to krbdev.mit.edu set up for this to work transparently.
More about RT keywords
These are somewhat inconsistent and will need more editing:
- Additional detail about RT keywords
- Manipulating RT tickets using commits
Pushing changes from contributors
When integrating code changes created by contributors, take note of the following:
- If the change is presented to you as one or more git commits, fetch the commit into your local git repository and then use git cherry-pick to make a copy of the relevant commits onto your master branch (or a topic branch). Do not use git merge.
- If the change is presented to you as a patch, make a commit from the patch and use the --author flag to git commit to set the commit author field to the author's name and email address.
- Review the changes as well as possible, and make sure they are organized into logical commits as required by our version control practices. Run the C style checker to identify possible style issues.
- Make sure the changes build and pass "make check".
- Add appropriate RT headers to the commit messages if appropriate.
- If you need to make significant changes to the commit or commit message, you can add a note to the end (before any RT headers) like:
[ghudson@mit.edu: Stylistic changes, commit message]