-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add instrument_celery
method
#322
Conversation
Deploying logfire-docs with Cloudflare Pages
|
I don't understand how I broke the tests... 🤔 |
3f01a65
to
69e5321
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
.github/workflows/main.yml
Outdated
@@ -87,9 +87,52 @@ jobs: | |||
name: coverage-${{ matrix.python-version }} | |||
path: coverage | |||
|
|||
test-integration: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i really don't like that so much has been copied here. can we just have one workflow, with separate steps for unit and integration tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think having a different job is a way to "motivate" us to write more tests like those, since it's going to eventually slow us down.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your complaint seems more about the amount of duplicated code, rather than the idea of having a separate flow. Which can be solved by creating a common GH action.
@pytest.fixture(autouse=True) | ||
def celery_worker(celery_app: Celery) -> Iterator[WorkController]: | ||
logger = logging.getLogger() | ||
with start_worker(celery_app, perform_ping_check=False, loglevel=logger.level) as worker: # type: ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The loglevel
has a default value to ERROR
, and it modifies the root logger.
This code just sets the current level.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment should be in the code
No description provided.