Confirmed users
514
edits
(added a check for the warning of secure revision) |
(Add git-cinnabar and cinnabarc install instructions and tests) |
||
| Line 9: | Line 9: | ||
* https://github.com/phacility/libphutil | * https://github.com/phacility/libphutil | ||
* https://github.com/phacility/arcanist | * https://github.com/phacility/arcanist | ||
* https://github.com/mozilla-conduit/arcanist cinnabarc | |||
2. Add <code>arc</code> to your path. On OS X and Linux (and the Windows 10 Linux Subsystem), you can add the following to your `~/.bash_profile` (modifying the path appropriately): | 2. Add <code>arc</code> to your path. On OS X and Linux (and the Windows 10 Linux Subsystem), you can add the following to your `~/.bash_profile` (modifying the path appropriately): | ||
| Line 15: | Line 16: | ||
Doing so will allow you to use the <code>arc</code> command from anywhere on your machine. | Doing so will allow you to use the <code>arc</code> command from anywhere on your machine. | ||
3. | 3. Install git-cinnabar: | ||
git clone https://github.com/glandium/git-cinnabar.git | |||
export PATH=/Users/youruser/path/to/git-cinnabar | |||
git cinnabar download | |||
4. In the local repository checkout, run: | 4. Alias Arcanist modified for git-cinnabar use to <code>cinnabarc</code>. This will allow to use both vanilla and modified Arcanist interchangeably: | ||
alias cinnabarc='/Users/youruser/path/to/cinnabarc/bin/arc' | |||
5. Clone the repo(s) you plan to test on: | |||
* <code>hg clone https://hg.mozilla.org/automation/phabricator-qa-dev/</code> | |||
* <code>git clone hg::https://hg.mozilla.org/automation/phabricator-qa-dev/ phabricator-qa-dev-cinnabar</code> | |||
6. In the local <code>phabricator-qa-dev</code> repository checkout, run: | |||
arc install-certificate | arc install-certificate | ||
| Line 26: | Line 37: | ||
Follow the instructions presented in the command line to associate your local machine with the Phabricator instance via an API key. | Follow the instructions presented in the command line to associate your local machine with the Phabricator instance via an API key. | ||
Repeat the process in <code>phabricator-qa-dev-cinnabar</code>. Use <code>cinnabarc</code> instead: | |||
cinnabarc install-certificate | |||
7. Test away! You can create branches within your local <code>phabricator-qa-dev</code> repository checkout, add commits, and send them to Phabricator via <code>arc diff .^</code>. See the [http://moz-conduit.readthedocs.io/en/latest/phabricator-user.html Mozilla Phabricator User Documentation] for more. | |||
This should be all you need to get going with arc and our staging and dev servers! | This should be all you need to get going with arc and our staging and dev servers! | ||
| Line 237: | Line 252: | ||
====Results==== | ====Results==== | ||
# The bug's Phabricator attachment is unobsoleted. | # The bug's Phabricator attachment is unobsoleted. | ||
=== Creating a Diff from git repo is not allowed === | |||
====Test Plan==== | |||
# Change directory to the repository <code>phabricator-qa-dev-cinnabar</code>. | |||
# Create a commit with git and run <code>arc diff HEAD~</code>. | |||
# Fill the needed data (<code>Test Plan</code>) and confirm. | |||
====Results==== | |||
# Creating a diff fails with : | |||
ERR-CONDUIT-CORE: Local VCS (git) is different from the one defined in the repository (hg). | |||
=== Patching Diff created from git repository === | |||
====Test Plan==== | |||
# Using a commit created above run <code>cinnabarc diff HEAD~</code>. | |||
# Fill the needed data (<code>Test Plan</code>) and confirm. | |||
# Change directory to <code>phabricator-qa-dev</code>. | |||
# Run <code>arc patch D{number of the revision created above}</code>. | |||
====Results==== | |||
# Code is sucessfully patched using the Diff. | |||