The Current Working Directory is $SRC_ROOT/infra/appengine/findit, i.e. the directory that contains this file. Please cd
into it for the commands below to work.
Note:
From command line, run: make run
Then open http://localhost:8080 for the home page.
From command line, run:
make test
to run all tests;make test TEST_GLOB=<path to a sub dir>
to run tests in a sub directory;make test TEST_GLOB=<path to a sub dir>:*<test name>*
to run a given test.If a code path branch is not tested and no line number is shown in the command line output, you could check the code coverage report shown in the output.
YAPF is used to format the code in chromium style, and it is expected to format the code before uploading a CL for review. To install YAPF, please refer to https://github.com/google/yapf.
From command line, run: make format
Deploy to the staging instance (and make it default): make deploy-findit-staging
Deploy to analysis.chromium.org (production): make deploy-findit-prod
Please use pantheon to make the new version default.
To get bqchemaupdater installed run
cd infra/go eval `./env.py` ./deps.py update ./deps.py install
This should install it in your path.
In the event that you need to create a table, run a command like this:
bqschemaupdater -message-dir <absolute findit dir>/model/proto/ -table "findit-for-me.events.test" -message findit.TestAnalysisCompletionEvent -dry-run
From findit/ this command may be out of date. Refer to bqschemaupdater --help.
WARNING: Consult with chrome-findit@ before running any commands that may affect production data. Once you're confident that the command does what you want, remove the -dry-run argument.