Skip to content

Conversation

@tynes
Copy link
Contributor

@tynes tynes commented Nov 8, 2022

Description

This commit adds additional logging to the database migration codepath. This is helpful for understanding what is happening in the code, to understand how much of the migration has already happened.

It may also help catch programmer/configuration errors, although we should have testing to catch that and not rely on the programmer watching the logs to catch issues.

@changeset-bot
Copy link

changeset-bot bot commented Nov 8, 2022

⚠️ No Changeset found

Latest commit: 3698b7e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@protolambda protolambda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM, but it would be nice to not use the global logger as much. In op-e2e testing it has been very useful to decorate more localized loggers with different names like verifier/sequencer etc. when we have different instances running. And we can direct the log output with a test-logger, instead of having the unorganized std-out throughout parallel tests.

@tynes
Copy link
Contributor Author

tynes commented Nov 8, 2022

Changes LGTM, but it would be nice to not use the global logger as much. In op-e2e testing it has been very useful to decorate more localized loggers with different names like verifier/sequencer etc. when we have different instances running. And we can direct the log output with a test-logger, instead of having the unorganized std-out throughout parallel tests.

This is a good point, I didn't want to change the interfaces in a bunch of places to pass through a logger. Would require a bit of a refactor to achieve what you are saying

@mergify
Copy link
Contributor

mergify bot commented Nov 9, 2022

Hey @tynes! This PR has merge conflicts. Please fix them before continuing review.

@mergify mergify bot added the conflict label Nov 9, 2022
@mergify
Copy link
Contributor

mergify bot commented Nov 9, 2022

This PR has been added to the merge queue, and will be merged soon.

@mergify
Copy link
Contributor

mergify bot commented Nov 9, 2022

Hey @tynes, this pull request failed to merge and has been dequeued from the merge train. If you believe your PR failed in the merge train because of a flaky test, requeue it by commenting with @mergifyio requeue.
More details can be found on the Queue: Embarked in merge train check-run.

@mergify mergify bot removed the on-merge-train label Nov 9, 2022
tynes added 2 commits November 9, 2022 14:35
This commit adds additional logging to the database
migration codepath. This is helpful for understanding
what is happening in the code, to understand how much
of the migration has already happened.

It may also help catch programmer/configuration errors,
although we should have testing to catch that and not
rely on the programmer watching the logs to catch issues.
@tynes tynes force-pushed the chain-ops/logging branch from f067c3a to 3698b7e Compare November 9, 2022 22:35
@mergify mergify bot removed the conflict label Nov 9, 2022
@mergify
Copy link
Contributor

mergify bot commented Nov 10, 2022

This PR has been added to the merge queue, and will be merged soon.

mergify bot added a commit that referenced this pull request Nov 10, 2022
@mergify
Copy link
Contributor

mergify bot commented Nov 10, 2022

This PR is next in line to be merged, and will be merged as soon as checks pass.

@mergify
Copy link
Contributor

mergify bot commented Nov 10, 2022

Hey @tynes, this pull request failed to merge and has been dequeued from the merge train. If you believe your PR failed in the merge train because of a flaky test, requeue it by commenting with @mergifyio requeue.
More details can be found on the Queue: Embarked in merge train check-run.

@mergify mergify bot removed the on-merge-train label Nov 10, 2022
@mslipper
Copy link
Collaborator

@Mergifyio requeue

@mergify
Copy link
Contributor

mergify bot commented Nov 11, 2022

requeue

✅ The queue state of this pull request has been cleaned. It can be re-embarked automatically

mergify bot added a commit that referenced this pull request Nov 11, 2022
@mergify
Copy link
Contributor

mergify bot commented Nov 11, 2022

This PR has been added to the merge queue, and will be merged soon.

@mergify
Copy link
Contributor

mergify bot commented Nov 11, 2022

This PR is next in line to be merged, and will be merged as soon as checks pass.

mergify bot added a commit that referenced this pull request Nov 11, 2022
@mergify mergify bot merged commit e5f7314 into develop Nov 11, 2022
@mergify mergify bot deleted the chain-ops/logging branch November 11, 2022 02:19
@mergify mergify bot removed the on-merge-train label Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants