![]() You are now at a point where you can test the Sourcegraph extensions in Phabricator code review. Sourcegraph either gets these changes from staging areas (cmd+f for "staging area") or it attempts to apply the patchset on a temporary clone of the repo. Create large diffs in your test cases.Īt this point, changes live on Phabricator that aren't in the git remote. Phabricator's philosophy is to keep diffs as small as possible so they can be reviewed quickly and thoroughly, but don't assume that users follow this. git commit -m "some changes" arc diffĪrc uploaded the patch that git generated from your changes and creates an associated "diff". If you push the changes to the git remote, we no longer are testing a critical feature of the Sourcegraph Phabricator integration, which is that it uses staging areas if configured or attempts to apply patchsets. Make some changes, commit them, and upload the diff to Phabricator. ![]() Use arc to create a new branch arc branch my-branch Make some changes and push the diff to Phabricator's In your terminal, navigate to a repository that has been added to your Phabricator instance If you used the helper scripts, the root Phabricator directorywill be /opt/bitnami/phabricator. SSH into your Phabricator instance and follow the installation steps in the README. You can use dev/phabricator/install-sourcegraph.sh. Install the Sourcegraph Phabricator extension. If configured correctly, Phabricator will start mirroringthe repository. Now go back to the "manage repository" page and click activate repository on the right. ![]() Then open conf/nf and give $USER read and write permissions to the repository. To add it to Gitolite, checkout the gitolite-admin repo and add the public key to keydir/ under the name $USER.pub. Give it a private key from a public/private key pair that has access to your gitolite. Once created, click "Set Credential" on the rightĬlick "Add New Credential". Go to the URIs list again and click Add New URI on the right side of the page, click edit, then set it to Observe and Visible. Give the repository a name and a callsign with onlyalphanumeric characters (just the name in all caps works).Ĭlick on each URI that's already there, click edit, and set it to no I/O and hidden. # where is a release version from dev/phabricator/restart.shĬreate a repository andselect git as the vcs cd sourcegraph/infrastructure/kubernetes/toolingįor this using Bitnami. Setup KubernetesĬreate the phabricator pods by navigating to the infrastructure repository and applying the Phabricatorconfig. If staging areas aren't enabled, Sourcegraph takes the patchset fromthe diff and attempts to apply them to therepository. If thisis the case, Sourcegraph simply takes changes from the staging area,which is itself a git repository. Ideally, staging areas (cmd+f for "stagingarea")Īre enabled for each repository and accessible by Sourcegraph. Because of this, Sourcegraphmust get the changes a user is viewing from somewhere else. This means that it doesn't have to uploadchanges to the git remote of a repository. my-new-feature) as is thecase with pull requests. ![]() Phabricator's codereviews are of patches from a changeset rather than a diff between atarget (e.g. Phabricator is primarily used as a code review tool. Once your changes in gitolite-admin are done, commit and pushto the remote. RW+ = create a new repository, add a new entry in this file andgitolite will provision a new repository once you push theupdate to the remote. If you'd like to create a new private/public key pair forPhabricator, add the public key to gitolite-admin/keydir andmodify gitolite-admin/conf/nf to look the following repo gitolite-admin You simply clone it, commit configuration changesand push back to the remote and gitolite will apply any changesyou made. Managing your gitolite instance is done via the gitolite-admin docker run -p 22:22 -e SSH_KEY = " $(cat ~/.ssh/id_rsa.pub ) " elsdoerfer/gitolite I suggest just using because it can messygetting your gitolite docker container to talk to yourPhabricator docker container. cd sourcegraph/infrastructure/kubernetes/toolingĪlternatively, you can run gitolite via dockerlocally. Spin up in the tooling cluster if it does not yet exist.Ĭreate the gitolite pods by navigating to the infrastructure repository and applying the Gitolite config.Configuring a test instance of Phabricator and Gitolite Gitolite Setup Kubernetes ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |