Testing a Phabricator and Gitolite instance
Browser Extension
- Verify
sourcegraph.enabled
is set totrue
- Point your browser extension to a Sourcegraph instance with the following code host:
{ "prefix": "gitolite.sgdev.org/", "host": "[email protected]", }
- Verify the
sourcegraph.callsignMappings
are correctly set - Make sure your browser extension has permissions for
https://phabricator.sgdev.org
(you can check this through the popup) - Navigate to a single file
- Verify "View on Sourcegraph" button is present and working correctly
- Verify hovers work as expected
- Navigate to a diff
- Verify "View on Sourcegraph" buttons are present on all change types, and working correctly
- Verify hovers are working correctly on added, removed, unchanged lines
Native Integration
- Run a local Sourcegraph dev instance tunnelled through ngrok
- Set
corsOrigin
to"https://phabricator.sgdev.org"
in your site config - Add the following Gitolite code host:
{ "prefix": "gitolite.sgdev.org/", "host": "[email protected]", }
- Verify that the phabricator assets are served:
%NGROK_URL%/.assets/extension/scripts/phabricator.bundle.js
%NGROK_URL%/.assets/extension/css/app.bundle.css
- Set
sourcegraph.url
to your tunnelled ngrok URL - Verify the
sourcegraph.callsignMappings
are correctly set - Verify
sourcegraph.enabled
is set totrue
- Navigate to a single file
- Verify "View on Sourcegraph" button is present and working correctly
- Verify hovers work as expected
- Navigate to a diff
- Verify "View on Sourcegraph" buttons are present on all change types, and working correctly
- Verify hovers are working correctly on added, removed, unchanged lines