Go to file
Alex Vandiver 6c1a8185aa setup_path: Ensure that the right venv is activated.
`setup_path()` previously only checked that some `zulip-py3-venv` was
the `sys.prefix`, not that it was the one associated with this
deployment.  When `uwsgi` is started, it is started from `bin/uwsgi`
within a `zulip-py3-venv` virtualenv, and as such sets
`sys.executable` to that, resulting in uwsgi workers picking up the
library path of that virtualenv.  On first start, `sys.path` thus
already matches the expected virtualenv, and the `setup_path` in
`zproject.wsgi` does nothing.

If a rolling restart was later done into a deployment with a different
virtualenv, the `zproject.wsgi` call to `setup_path()` did not change
`sys.path` to the new virtualenv, since it was already running within
_a_ virtualenv.  This led to dependency version mismatches, and
potentially even more disastrous consequences if the old (but still
erroneously in use) virtualenv was later garbage-collected.

PR #26771 was a previous attempt to resolve this, but failed due to
not thinking of the uwsgi binary itself as possibly providing a
virtualenv path.  We leave the `chdir` hooks from that in-place, since
it cannot hurt for the "master" uwsgi process to be chdir'd to `/`,
and the `hook-post-fork` `chdir` is reasonable as well.

Resolve the virtualenv in `setup_path()`, and activate it if it
differs from the one that is currently active.  To be sure that no
other old virtualenvs are used, we also filter out any paths which
appear to be from other Zulip virtualenvs.
2024-08-29 12:42:13 -07:00
.github ci: Test upgrades from Noble and 9.0. 2024-07-26 14:25:49 -07:00
.tx provision: Replace transifex-client with new transifex-cli. 2022-12-13 12:34:08 -08:00
.vscode vscode: Recommend remote development extension. 2021-11-03 16:03:46 -07:00
analytics analytics: Migrate to @typed_endpoint. 2024-08-26 08:57:49 -07:00
api_docs api-docs: Clarify the behavior of the near operator. 2024-08-20 09:56:00 -07:00
confirmation migrations: Squash most confirmation migrations. 2024-08-23 17:15:35 -07:00
corporate activity: Add invoiced through information to plan activity view. 2024-08-29 12:00:38 -07:00
docs docs: Update docs about number of uwsgi processes that are run. 2024-08-29 12:12:34 -07:00
help hotkey: Add keyboard shortcut to navigate to starred messages view. 2024-08-23 15:49:31 -07:00
help-beta dependencies: Upgrade JavaScript dependencies. 2024-08-26 07:44:14 -07:00
locale i18n: Update translation data from Transifex. 2024-07-25 12:34:41 -07:00
patches dependencies: Upgrade JavaScript dependencies. 2024-07-16 23:25:37 -07:00
pgroonga migrations: Import BaseDatabaseSchemaEditor from its canonical module. 2023-03-05 14:46:28 -08:00
puppet kandra: Ensure that we do not error out creating standby.signal. 2024-08-20 14:03:51 -07:00
requirements requirements: Upgrade Python requirements. 2024-08-24 19:44:39 -07:00
scripts setup_path: Ensure that the right venv is activated. 2024-08-29 12:42:13 -07:00
static portico: Update organized conversations image on /for/business. 2024-08-23 10:20:24 -07:00
stubs/taint avatars: Encode version into the filename. 2024-07-07 14:40:07 -07:00
templates activity: Add header area to user activity view. 2024-08-28 14:12:36 -07:00
tools thumbnail: Backfill ImageAttachment rows. 2024-08-29 12:11:51 -07:00
var/puppeteer
web stream_settings: Add text in the left panel. 2024-08-28 14:23:46 -07:00
zerver thumbnail: Enqueue thumbnails when we render a spinner. 2024-08-29 12:11:51 -07:00
zilencer migrations: Squash zilencer migrations. 2024-08-23 17:15:35 -07:00
zproject restart-server: Wait until chain reload has completed. 2024-08-29 12:12:34 -07:00
.codecov.yml
.codespellignore codespell: Fix spelling mistakes caught by codespell. 2024-05-31 14:32:33 -07:00
.editorconfig editorconfig: Use [[shell]] section for shfmt options. 2024-02-22 16:36:16 -05:00
.eslintignore web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
.eslintrc.js help-beta: Create initial starlight project. 2024-08-02 18:18:01 -07:00
.gitattributes .gitattributes: Mark *.bmp, *.bson, *.mp3, *.pdf as binary. 2022-02-07 18:51:06 -08:00
.gitignore tsconfig: Enable composite. 2024-06-09 12:08:03 -07:00
.gitlint lint: Update line-length for commit message to 72 in gitlint. 2023-05-01 10:35:52 -07:00
.mailmap mailmap: Canonicalize name for Kunal Sharma. 2024-07-25 11:23:44 -07:00
.npmignore
.npmrc dependencies: Switch to pnpm. 2023-03-20 15:48:29 -07:00
.prettierignore marked: Fix type stub to declare marked as a CommonJS module. 2024-06-08 00:26:38 -07:00
.pyre_configuration
.readthedocs.yaml readthedocs: Add a configuration file. 2023-02-03 16:36:54 -08:00
.sonarcloud.properties
CODE_OF_CONDUCT.md linter: Add check for comma after "e.g." in md files. 2024-07-05 15:36:24 -07:00
CONTRIBUTING.md docs: Update CZO links from stream to channel in docs and comments. 2024-06-11 10:44:31 -07:00
Dockerfile-postgresql docs: Fix grammar errors found by mwic. 2023-10-09 13:24:09 -07:00
LICENSE
NOTICE
README.md docs: Update Black and isort references to Ruff. 2024-07-17 18:33:21 -07:00
SECURITY.md docs: Update .html links pointing to "Upgrade Zulip" or "Modify Zulip". 2023-08-11 16:49:32 -07:00
Vagrantfile Upgrade development environment to Ubuntu 22.04. 2024-04-01 13:27:39 -07:00
manage.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
package.json dependencies: Upgrade JavaScript dependencies. 2024-08-26 07:44:14 -07:00
pnpm-lock.yaml dependencies: Upgrade JavaScript dependencies. 2024-08-26 07:44:14 -07:00
pnpm-workspace.yaml help-beta: Create initial starlight project. 2024-08-02 18:18:01 -07:00
prettier.config.js
pyproject.toml restart-server: Wait until chain reload has completed. 2024-08-29 12:12:34 -07:00
stylelint.config.js dependencies: Upgrade JavaScript dependencies. 2023-07-21 15:58:42 -07:00
tsconfig.json help-beta: Create initial starlight project. 2024-08-02 18:18:01 -07:00
version.py install-transifex-cli: Upgrade Transifex CLI from 1.6.14 to 1.6.16. 2024-08-26 14:17:05 -07:00

README.md

Zulip overview

Zulip is an open-source team collaboration tool with unique topic-based threading that combines the best of email and chat to make remote work productive and delightful. Fortune 500 companies, leading open source projects, and thousands of other organizations use Zulip every day. Zulip is the only modern team chat app that is designed for both live and asynchronous conversations.

Zulip is built by a distributed community of developers from all around the world, with 74+ people who have each contributed 100+ commits. With over 1000 contributors merging over 500 commits a month, Zulip is the largest and fastest growing open source team chat project.

Come find us on the development community chat!

GitHub Actions build status coverage status Mypy coverage Ruff code style: prettier GitHub release docs Zulip chat Twitter GitHub Sponsors

Getting started

You may also be interested in reading our blog, and following us on Twitter and LinkedIn.

Zulip is distributed under the Apache 2.0 license.