zulip/tools
YashRE42 b0be6a0f92 test_script: Reword provision warning not to assume running tests.
Previously, running `./tools/run-dev.py` when provision was required
would lead to a warning along the lines of:
```
Before we run tests, we make sure your provisioning version
is correct by looking at var/provision_version, which is at
version 165.1, and we compare it to the version in source
control (version.py), which is 165.2.

It looks like you checked out a branch that has added
dependencies beyond what you last provisioned. Your command
is likely to fail until you add dependencies by provisioning.

Do this: `./tools/provision`

If you really know what you are doing, use --skip-provision-check to
run anyway.
```

The assumption that we're trying to run tests might cause some
confusion, especially if its the first time you're seeing the
provision warning. Hence, we reword the first paragraph to avoid
making that assumption.

The second paragraph has also been slightly altered, since (1) it's
possible that we didn't checkout a different branch, but eg just
rebased with upstream and (2) we might not be on a VM.

The warning you'd get after this commit would be along the lines of:
```
Provisioning state check failed! This check compares
`var/provision_version` (currently 165.2) to the version in
source control (`version.py`), which is 164.6, to see if you
likely need to provision before this command can run
properly.

The branch you are currently on expects an older version of
dependencies than the version you provisioned last. This may
be ok, but it's likely that you either want to rebase your
branch on top of upstream/main or re-provision your machine.

Do this: `./tools/provision`

If you really know what you are doing, use --skip-provision-check to
run anyway.
```
or along the lines of:
```
Provisioning state check failed! This check compares
`var/provision_version` (currently 165.2) to the version in
source control (`version.py`), which is 167.2, to see if you
likely need to provision before this command can run
properly.

The branch you are currently on has added dependencies beyond
what you last provisioned. Your command is likely to fail
until you add dependencies by provisioning.

Do this: `./tools/provision`

If you really know what you are doing, use --skip-provision-check to
run anyway.
```
2021-11-16 16:29:34 -08:00
..
ci ci: Update outdated comments to generated Dockerfiles. 2021-11-05 15:45:46 -07:00
documentation_crawler Rename default branch to ‘main’. 2021-09-06 12:56:35 -07:00
droplets docs: Format Markdown with Prettier. 2021-09-08 12:06:24 -07:00
i18n i18n: Adjust Transifex sync-translations download mode. 2021-06-02 09:48:58 -07:00
lib test_script: Reword provision warning not to assume running tests. 2021-11-16 16:29:34 -08:00
linter_lib custom_check: Improve check for exit(...) call in management commands. 2021-11-16 11:21:05 -08:00
node_lib js: Elide .js and .ts extensions from imports and requires. 2020-09-01 16:43:02 -07:00
oneclickapps docs: Format Markdown with Prettier. 2021-09-08 12:06:24 -07:00
setup dev-vagrant-docker: Upgrade docker-systemctl-replacement to 1.5.4505. 2021-11-10 09:02:56 -08:00
test-install install: Replace wget with curl. 2021-06-25 09:05:07 -07:00
tests queue_processors: Drop unused current_queue_size, which was local size. 2021-11-16 11:48:50 -08:00
wsl
zulip-export python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
__init__.py
build-docs tools: Use root-based absolute import for tools.lib, etc. 2021-07-05 12:21:52 -07:00
build-release-tarball build-release-tarball: Use require_clean_work_tree helper. 2021-06-10 16:08:28 -07:00
cache-zulip-git-version Rename default branch to ‘main’. 2021-09-06 12:56:35 -07:00
check-capitalization tools: Use root-based absolute import for tools.lib, etc. 2021-07-05 12:21:52 -07:00
check-frontend-i18n tools: Use root-based absolute import for tools.lib, etc. 2021-07-05 12:21:52 -07:00
check-issue-labels python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
check-openapi check-openapi: Automatically fix Prettier formatting errors. 2021-09-10 10:39:25 -07:00
check-provision tools: Rename force argument to skip-provision-check 2021-03-03 09:17:49 -08:00
check-schemas check_schema: Ignore operation field in schema validation for openapi. 2021-03-22 23:45:42 -07:00
check-templates python: Remove locally dead code. 2021-08-19 01:51:37 -07:00
check-thirdparty python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
clean-branches Rename default branch to ‘main’. 2021-09-06 12:56:35 -07:00
commit-message-lint Rename default branch to ‘main’. 2021-09-06 12:56:35 -07:00
commit-msg requirements: Install gitlint from its Debian package. 2021-09-17 17:05:18 -07:00
conf.ini-template
coveragerc parallel: Remove run_parallel. 2020-09-14 16:22:23 -07:00
create-test-api-docs python: Remove locally dead code. 2021-08-19 01:51:37 -07:00
debug-require-webpack-plugin.ts debug-require-webpack-plugin: Handle missing chunkGraph. 2021-10-17 07:15:09 -07:00
debug-require.js webpack: Upgrade to Webpack 5. 2021-09-14 17:02:03 -07:00
deploy-branch Rename default branch to ‘main’. 2021-09-06 12:56:35 -07:00
diagnose python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
documentation.vnufilter requirements: Upgrade Python requirements. 2021-08-24 07:51:48 -07:00
duplicate_commits.json
fetch-contributor-data fetch-contributor-data: Modernize set literal syntax. 2021-09-22 14:59:42 -07:00
fetch-pull-request tools: Avoid readlink -f in *-pull-request scripts. 2021-04-30 14:57:13 -07:00
fetch-rebase-pull-request Rename default branch to ‘main’. 2021-09-06 12:56:35 -07:00
find-unused-css styles: Rename .scss files back to .css. 2020-09-15 16:33:28 -07:00
generate-integration-docs-screenshot python: Remove default "utf8" argument for encode(), decode(). 2021-08-02 15:53:52 -07:00
lint lint: Remove deprecated semgrep flag. 2021-09-17 17:05:18 -07:00
message-screenshot.js tools: Add support for generating integration screenshots remotely. 2021-04-19 10:44:43 -07:00
pre-commit tools: Rename force argument to skip-provision-check 2021-03-03 09:17:49 -08:00
pretty-print-html tools: Use root-based absolute import for tools.lib, etc. 2021-07-05 12:21:52 -07:00
provision provision: Refuse to run outside an existing Vagrant environment. 2021-10-20 10:35:46 -07:00
push-to-pull-request Rename default branch to ‘main’. 2021-09-06 12:56:35 -07:00
README.md
rebuild-dev-database terminate-psql-sessions: Rely on the caller to set PGHOST, PGUSER. 2020-06-15 21:37:14 -07:00
rebuild-test-database shfmt: Reformat shell scripts with shfmt. 2020-10-15 15:16:00 -07:00
release-tarball-exclude.txt
renumber-migrations python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
reset-to-pull-request tools: Avoid readlink -f in *-pull-request scripts. 2021-04-30 14:57:13 -07:00
review Rename default branch to ‘main’. 2021-09-06 12:56:35 -07:00
run-codespell run-codespell: Fix invocation with multiple arguments. 2021-10-28 09:59:27 -07:00
run-dev.py clean-repo: Remove. 2021-11-05 17:44:24 -07:00
run-mypy tools: Rename force argument to skip-provision-check 2021-03-03 09:17:49 -08:00
run-tsc
run-yarn-deduplicate
semgrep.yml semgrep: Replace pattern-where-python with metavariable-regex. 2021-08-24 07:51:48 -07:00
setup-git-repo shfmt: Reformat shell scripts with shfmt. 2020-10-15 15:16:00 -07:00
show-profile-results python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
stop-run-dev python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test-all clean-repo: Remove. 2021-11-05 17:44:24 -07:00
test-api python: Remove locally dead code. 2021-08-19 01:51:37 -07:00
test-backend ci: Migrate to new Codecov uploader. 2021-10-14 17:56:52 -07:00
test-documentation shfmt: Reformat shell scripts with shfmt. 2020-10-15 15:16:00 -07:00
test-help-documentation tools: Use root-based absolute import for tools.lib, etc. 2021-07-05 12:21:52 -07:00
test-js-with-node billing: Migrate to Stripe hosted checkout page. 2021-11-05 17:23:10 -07:00
test-js-with-puppeteer test-js-with-puppeteer: Remove bogus CHROMIUM_EXECUTABLE variable. 2021-09-13 10:10:13 -07:00
test-locked-requirements python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
test-migrations requirements: Upgrade Python requirements. 2021-04-15 21:47:33 -07:00
test-queue-worker-reload tools: Use root-based absolute import for tools.lib, etc. 2021-07-05 12:21:52 -07:00
test-run-dev test-run-dev: Fix log file opening. 2021-08-02 15:53:52 -07:00
test-tools tools: Use root-based absolute import for tools.lib, etc. 2021-07-05 12:21:52 -07:00
update-locked-requirements requirements: Remove Thumbor. 2021-05-06 20:07:32 -07:00
update-prod-static Revert "update-prod-static: Call django.setup during initialization." 2021-07-18 21:29:28 -07:00
update-zuliprc-api-field python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
upload-release tools: Add a tool to upload release tarballs to S3. 2021-08-26 17:21:31 -07:00
webpack webpack: Increase Node.js heap size on low-memory systems. 2021-09-22 16:01:01 -07:00
webpack.assets.json billing: Migrate to Stripe hosted checkout page. 2021-11-05 17:23:10 -07:00
webpack.dev-assets.json webpack: Introduce webpack.dev-asset.json. 2021-04-19 10:31:39 -07:00
zanitizer zanitizer: Reformat with perltidy. 2021-03-24 12:12:04 -07:00
zanitizer_config.pm.sample zanitizer: Reformat with perltidy. 2021-03-24 12:12:04 -07:00

This directory contains scripts that are used in building, managing, testing, and other forms of work in a Zulip development environment. Note that tools that are also useful in production belong in scripts/ or should be Django management commands.

For more details, see https://zulip.readthedocs.io/en/latest/overview/directory-structure.html.