-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workers: revision worker implementation
PREVIOUS versions (most recent first): - 8e73e5a - 403e760 - 262f7a5 WIP DO NOT MERGE Commit message TBD - add main worker flag and capacity/throttle flags - add method to parse diff and list affected files - add more test coverage for revision_worker.py - add mots integration (bug 1740107) - add new RevisionWorker that pre-processes revisions (bug 1788728) - add new start/stop commands to manage workers - add new flags to stop workers gracefully (*_WORKER_STOPPED) - add repo.use_revision_worker feature flag (bug 1788732) - add mots hashes check - include new Lando revision info via API endpoint - refactor dependency and stack fetching and parsing using networkx - rename old command lando-cli landing-worker to lando-cli start-landing-worker - run pre/post mots query - store mots output in revision model TODO: - detect stack change on page load - add tests for new warnings
- Loading branch information
Showing
32 changed files
with
1,740 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,25 +111,24 @@ services: | |
- smtp | ||
lando-api.landing-worker: | ||
image: lando-api | ||
command: ["landing-worker"] | ||
command: ["start-landing-worker"] | ||
environment: | ||
- ENV=localdev | ||
- DATABASE_URL=postgresql://postgres:[email protected]/lando_api_dev | ||
- SENTRY_DSN= | ||
# See http://docs.celeryproject.org/en/stable/getting-started/brokers/redis.html#configuration | ||
# for the full URL format. | ||
- CELERY_BROKER_URL=redis://redis.queue/0 | ||
- OIDC_IDENTIFIER=https://lando-api.test | ||
- OIDC_DOMAIN=https://auth0.test | ||
- LANDO_UI_URL=https://lando.test | ||
- REPO_CLONES_PATH=/repos | ||
- REPOS_TO_LAND=localdev | ||
CELERY_BROKER_URL: "redis://redis.queue/0" | ||
DATABASE_URL: "postgresql://postgres:[email protected]/lando_api_dev" | ||
ENV: "localdev" | ||
LANDO_UI_URL: "https://lando.test" | ||
OIDC_DOMAIN: "https://auth0.test" | ||
OIDC_IDENTIFIER: "https://lando-api.test" | ||
REPOS_TO_LAND: "localdev" | ||
REPO_CLONES_PATH: "/repos" | ||
SENTRY_DSN: "" | ||
user: root | ||
volumes: | ||
- ./:/app | ||
- ./migrations/:/migrations/ | ||
# Prevent writing python cache to the host. | ||
- caches_cache:/app/.cache/ | ||
- repos:/repos | ||
depends_on: | ||
- lando-api.db | ||
- redis.queue | ||
|
@@ -157,3 +156,4 @@ volumes: | |
caches_pycache: | ||
caches_cache: | ||
caches_pytest_cache: | ||
repos: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.