zulip/tools
Priyank Patel e834439d82 provision: Do service <service-name> start instead of restart.
Doing service memcached start instead of restart fixed an issue on
focal build in GitHub actions, where it exits with code 1 when it
is done twice.It is done first in Install Dependencies step and then
again in last step where we call tools/ci/setup-backend again which
runs provision.

Furthermore, I don't belive there is a technical reason we use
restart over start; rather I think it was just a random choice with
the intend to just start the services in CI. I traced the code back
to commit 1f2f497cab if it helps.
Looking at the source code of memcached, the step that's failing is:
  start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
which is equivilent to: service memcached stop, we can rule out the
service memcache start since it works. Ideally, we do figure out and
solve the issue of why memcached fails when executing service
memcached stop but I am not equipped with debugging it. And this
workaround seems reasonable rather than a "hacky" solution.

For the relevant code in memcached see:
https://github.com/memcached/memcached/blob/master/scripts/memcached-init.

Finally, the change to the rest of services is for consistency.
2020-07-06 18:09:15 -07:00
..
ci requirements: Upgrade Thumbor to 7.0.0a5 on Python 3. 2020-07-06 16:09:53 -07:00
documentation_crawler mypy: Type simple generators as Iterator, not Iterable. 2020-06-23 11:29:54 -07:00
droplets python: Convert more "".format to Python 3.6 f-strings. 2020-06-13 15:39:00 -07:00
i18n python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
lib provision: Do service <service-name> start instead of restart. 2020-07-06 18:09:15 -07:00
linter_lib thumbor: Replace comment type annotations with normal annotations. 2020-07-06 16:09:53 -07:00
setup requirements: Upgrade Thumbor to 7.0.0a5 on Python 3. 2020-07-06 16:09:53 -07:00
test-install test-install: Wait for network in the lxc container. 2020-06-24 16:07:20 -07:00
tests html_branches: Fix strict_optional errors. 2020-07-06 11:25:48 -07:00
wsl tools: Add script to start database services for WSL. 2020-04-11 12:05:33 -07:00
zulip-export python: Convert more percent formatting to Python 3.6 f-strings. 2020-06-14 23:27:22 -07:00
__init__.py Add __init__.py to tools/ and tools/setup/. 2016-07-20 18:20:37 -07:00
build-docs docs: Replace Makefile based on output of newer sphinx-quickstart. 2019-12-02 18:39:33 -08:00
build-release-tarball refactor: Rename bugdown to markdown in misc. files. 2020-06-29 15:10:39 -07:00
cache-zulip-git-version version: Only let git describe match tags beginning with a digit. 2019-10-24 14:54:45 -07:00
check-capitalization python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
check-frontend-i18n python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
check-issue-labels check-issue-labels: Fix configparser import. 2020-06-24 19:26:02 -07:00
check-openapi openapi: Add test for validating examples. 2020-05-12 23:03:06 -07:00
check-provision python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
check-templates python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
check-thirdparty python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
clean-branches text: Fix some typos (most of them found and fixed by codespell). 2020-03-27 17:25:56 -07:00
clean-repo clean-repo: Revert optimization to .pyc removal. 2017-07-30 17:24:55 -07:00
commit-message-lint docs: Use consistent spelling of CircleCI. 2020-04-28 11:26:58 -07:00
commit-msg Use #!/usr/bin/env for bash shebangs. 2018-12-17 17:21:08 -08:00
conf.ini-template Add tool for scanning issues without area labels. 2017-02-03 09:59:35 -08:00
coveragerc validator: Remove unused type_structure system. 2020-06-23 16:30:17 -07:00
create-test-api-docs python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
debug-require-webpack-plugin.ts eslint: Enable comma-dangle for functions. 2020-07-03 16:55:51 -07:00
debug-require.js webpack: Generalize debug-require-webpack-plugin interface. 2020-02-25 14:01:06 -08:00
deploy-branch Use #!/usr/bin/env for bash shebangs. 2018-12-17 17:21:08 -08:00
diagnose python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
documentation.vnufilter requirements: Upgrade Python requirements. 2020-06-25 13:14:37 -07:00
duplicate_commits.json tools: Move duplicate_commits.json file to tools directory. 2020-04-07 16:06:29 -07:00
fetch-contributor-data logging: Use logging.exception and exc_info for unexpected exceptions. 2020-06-14 23:27:22 -07:00
fetch-pull-request tools: Use require_clean_work_tree everywhere. 2020-04-06 17:52:10 -07:00
fetch-rebase-pull-request tools: Use require_clean_work_tree everywhere. 2020-04-06 17:52:10 -07:00
find-unused-css tools: Convert fix-unused-css to look at zulip.scss. 2020-04-21 14:12:57 -07:00
generate-integration-docs-screenshot audit_log: Log acting_user in user creation and user activation. 2020-07-06 17:32:09 -07:00
lint lint: Upgrade zulint and remove run-isort wrapper. 2020-07-01 12:53:21 -07:00
message-screenshot.js tools: Fix message-screenshot.js failing to take screenshot. 2020-06-13 07:20:32 -04:00
pre-commit lint: Add --skip arg to replace --no-gitlint/mypy. 2019-06-18 11:32:04 -07:00
pretty-print-html python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
provision ci: Remove the need of using TRAVIS in env. 2020-04-21 14:46:40 -07:00
push-to-pull-request reset-to-pull-request: Add a usage message. 2020-02-11 14:45:17 -08:00
README.md cleanup: Delete trailing newlines. 2019-08-06 23:29:11 -07:00
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 terminate-psql-sessions: Rely on the caller to set PGHOST, PGUSER. 2020-06-15 21:37:14 -07:00
release-tarball-exclude.txt tests: Move zerver/fixtures to zerver/tests/fixtures for clarity. 2018-04-19 21:50:17 -07:00
renumber-migrations renumber-migrations: Skip migration 0261. 2020-06-18 15:42:57 -07:00
reset-to-pull-request tools: Use require_clean_work_tree everywhere. 2020-04-06 17:52:10 -07:00
review python: Convert more percent formatting to Python 3.6 f-strings. 2020-06-14 23:27:22 -07:00
run-dev.py python: Convert more percent formatting to Python 3.6 f-strings. 2020-06-14 23:27:22 -07:00
run-mypy python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
run-tsc tsconfig: Move to top level. 2019-11-04 18:12:11 -08:00
run-yarn-deduplicate yarn.lock: Share duplicate packages with yarn-deduplicate. 2019-09-02 19:30:09 -07:00
semgrep.yml semgrep: Ban eval. 2020-06-26 12:35:40 -07:00
setup-git-repo Use #!/usr/bin/env for bash shebangs. 2018-12-17 17:21:08 -08:00
show-profile-results python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
stop-run-dev python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
test-all tests: Make puppeteer tests run in full suites and CircleCI. 2020-06-03 17:39:35 -07:00
test-api python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test-backend tests: Remove slow tests detection. 2020-06-30 23:34:53 -07:00
test-documentation test-documentation: Invoke sphinx-build via make instead of directly. 2019-12-02 18:39:33 -08:00
test-help-documentation python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test-js-with-casper casper: Rename frontend_tests/run to clarify it uses casper. 2015-10-28 10:11:47 -07:00
test-js-with-node recent_topics: Support arrow key navigation. 2020-06-20 22:50:47 -07:00
test-js-with-puppeteer puppeteer: Improve --interactive option for test-js-with-puppeteer. 2020-06-17 15:24:14 -07:00
test-locked-requirements python: Fix misuse of Optional types for optional parameters. 2020-06-13 15:31:27 -07:00
test-migrations requirements: Update Python requirements. 2020-06-03 17:23:20 -07:00
test-queue-worker-reload python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test-run-dev python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
test-tools python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
update-locked-requirements requirements: Upgrade Thumbor to 7.0.0a5 on Python 3. 2020-07-06 16:09:53 -07:00
update-prod-static python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
update-zuliprc-api-field python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
webpack python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
webpack-helpers.ts js: Automatically convert var to let and const in more files. 2019-11-20 14:10:47 -08:00
webpack.assets.json auth: Use the clipboard instead of zulip:// for desktop auth flow. 2020-04-30 16:45:00 -07:00
webpack.config.ts tsconfig: Enable resolveJsonModule. 2020-05-26 23:33:40 -07:00
zanitizer docs: Avoid hardcoded /tmp paths in miscellaneous documentation. 2019-01-15 16:16:12 -08:00
zanitizer_config.pm.sample zanitizer_config.pm.sample: keep_file → scrub_filename 2018-09-23 20:42:27 -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.