-
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
WIP DO NOT MERGE Commit message TBD - add abstract Worker class (bug 1744327) - add main worker flag and capacity/throttle flags - add many to many fields + association to revisions/landing jobs - 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 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 patch caching on disk - add proper loop/process functionality to workers - add repo.use_revision_worker feature flag (bug 1788732) - add mots hashes check - improved edge search functionality - implement stack hashes to detect changes in revisions (via get_stack_hashes) - include new Lando revision info via API endpoint - refactor dependency and stack fetching and parsing using networkx - refactored revision worker and landing worker to use Worker class - remove s3/boto/etc. dependencies (bug 1753728) - rename old command lando-cli landing-worker to lando-cli start-landing-worker - run pre/post mots query - store mots output in revision model
- Loading branch information
Showing
38 changed files
with
2,266 additions
and
378 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 |
---|---|---|
|
@@ -131,25 +131,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 | ||
|
@@ -177,3 +176,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
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.