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 pytest to run all tests;make pytest TEST_GLOB=<path to a sub dir> to run tests in a sub directory;make pytest 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.
From command line, run: git cl format
[!IMPORTANT] Modern
maincheckouts contain a newer version ofnpm_modulesthat is missing critical legacy Polymer 2.0 files, causing UI elements (like the top bar) to crash. To deploy successfully, we use an automated script that force-pins legacy dependencies, patches the version generator to bypass taint checks, executes the deployment, and cleanly restores your workspace state afterward. For a detailed technical explanation of this issue, see DEPLOYMENT_HACK_REASON.md.
An automated script deploy_with_olddeps.py is available in this directory to handle the entire deployment process and guarantee a clean state rollback afterward.
To deploy Code Coverage to the staging instance (findit-for-me-staging):
./deploy_with_olddeps.py
To deploy Code Coverage to the production instance (findit-for-me):
./deploy_with_olddeps.py --prod
calculate_version.py file, deleting temp branches, syncing submodules back to main, and restoring your stashed local changes) even if the deployment fails or is interrupted (Ctrl+C).Y to the App Engine deployment confirmation prompts.npm_modules revision, you can pass the --npm-rev <revision_hash> flag.