Skip to content

Comments

Develop -> Master#2504

Merged
mslipper merged 39 commits intomasterfrom
develop
Apr 28, 2022
Merged

Develop -> Master#2504
mslipper merged 39 commits intomasterfrom
develop

Conversation

@mslipper
Copy link
Collaborator

mslipper and others added 30 commits April 12, 2022 18:17
Now that we've deployed a new nightly cluster, we don't need these Circle configs anymore.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* update fakecontract creation using smock

* fix lint errors

* fix linters issues

Co-authored-by: Maurelian <maurelian@protonmail.ch>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* Added exteranl mainnet 0.5.17 replica

* Update replicas to use new healthcheck script

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fixes a bug that would cause the healthcheck service not to properly
check blocks when the target is advancing faster than the reference
client. RHC will now check the block correpsonding to the lesser of the
two block heights. Also adds a new metric to track the height difference
in the two providers which could be used to alert if the target leads
the reference by too much or vice versa.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Modifies mergify.yml to no longer yell at me to add a changeset
when a PR only modifies .spec.ts files.
Another test cleanup PR, this time targeting the CTC gas tests. I'm
going to keep doing this as separate PRs because:
1. These are simple changes
2. They *look* complicated because there are a lot of them

Putting these into different PRs means they'll be easier to review and
I'll have to do less shepherding over relatively minor PRs.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Yet another test cleanup commit. Cleans up the ChainStorageContainer
tests with the same techniques as the previous commits along the same
lines.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Cleans up the deposit gas spec tests using the same techniques as found
in #2458 and #2459.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Cleans up the L1CrossDomainMessenger tests using the new deploy
function. Removes some unnecessary code.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Cleans up tests for the L1StandardBridge. Removes a lot of unnecessary
code and simplifies certain tests by bundling things into a single
assertion.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
The config was invalid, and we reached the maximum number of nested rules.
Replaces Overrides with CallOverrides for estimateGas functions so you
can specify the "from" address.

Co-authored-by: Matthew Slipper <me@matthewslipper.com>
Cleans up BondManager tests using same techniques as previous test
cleanup PRs.
Cleans up the TeleportrDeposit tests using the same techniques as
previous cleanup PRs.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* proxyd: Limit the number of concurrent RPCs to backends

We add a new config `max_concurrent_rpcs` under the server section to
prevent too many RPC requests, (and, more loosely, the number of connections),
from being sent upstream. Requests will block, in a FIFO fashion, until the
number of in-flight RPCs is under the limit.

* fix typo

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Cleans up the CTC tests using the same techniques as used in other
previous test cleanups.

Co-authored-by: Mark Tyneway <mark.tyneway@gmail.com>
Cleans up the L2CrossDomainMessenger tests in the same manner as
previous cleanup PRs.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
…2478)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* ci: Nightly release builds

* fix typo

* ci: use nightly image tag

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* ci: Update remote docker version

The nightly CI fails because default remote docker (17.09.0-ce) does
not support DOCKER_BUILDKIT. Updating the remote docker version to be at
least 18.09 fixes this.

* Kick build, fix whitespace

Co-authored-by: Matthew Slipper <me@matthewslipper.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* Added kustomize deployment for goerli-nightly replica

* Updated replica-healthcheck to v1

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* fix (indexer): bridge filter query - fix ctx reuse

* changeset: indexer patch - fix context reuse
Cleans up OVM_ETH tests using the same techniques as other cleanup PRs.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
smartcontracts and others added 9 commits April 24, 2022 12:38
Cleans up the L2StandardTokenFactory tests using the same technique as
previous cleanup PRs.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* Added SCC TotalElement collection for metrics

* Update addressTotalElementsCallStatus metric name

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Cleans up the L2StandardBridge tests using the same techniques as
previous cleanup PRs.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* l2geth: fix log.Crit usage

* add changeset

* changed changeset: minor -> patch

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Cleans up OVM_GasPriceOracle tests using the same techniques as other
test cleanup PRs.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Add new metrics for transaction execution.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Cleans up the StateCommitmentChain tests using the same techniques as
used in previous test cleanups.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Logging the entire RPC request can be too "expensive" when logging request
objects in a large JSON-RPC batch request. We log the raw HTTP request
body instead so we can truncate effectively when the entire body
exceeds the maxLogLength.
@changeset-bot
Copy link

changeset-bot bot commented Apr 28, 2022

🦋 Changeset detected

Latest commit: d9f058c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@eth-optimism/proxyd Patch
@eth-optimism/indexer Minor
@eth-optimism/teleportr Patch
@eth-optimism/l2geth-exporter Patch
@eth-optimism/l2geth Patch
@eth-optimism/replica-healthcheck Patch
@eth-optimism/integration-tests Patch
@eth-optimism/sdk Patch
@eth-optimism/message-relayer Patch

Not sure what this means? Click here to learn what changesets are.

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

@github-actions github-actions bot added 2-reviewers C-protocol-critical Category: Modifies protocol-critical code A-integration Area: integration tests A-cannon Area: cannon A-pkg-sdk Area: packages/sdk labels Apr 28, 2022
@mergify mergify bot requested a review from Inphi April 28, 2022 18:05
@mslipper mslipper merged commit 9690fdd into master Apr 28, 2022
theochap added a commit that referenced this pull request Dec 10, 2025
…vels (#2504)

This PR addresses the tracing logs cleanup requirements by
systematically improving logging across the codebase to ensure
consistency and proper error reporting.

## Changes Made

### ✅ Added proper targets to log statements
- **Examples**: Added targets to discovery, gossip, and
execution-fixture examples (10+ fixes)
- **Protocol**: Fixed all batch span validation logs with `batch_span`
target (22 fixes)
- **Node P2P**: Added `p2p_rpc` and `discv5_handler` targets to
networking logs (7 fixes)
- **Binaries**: Added targets to supervisor, host, and node command logs
(6 fixes)
- **Core Libraries**: Fixed hint processing and boot loading logs (2
fixes)

### ✅ Ensured error/warn logs include proper error cause information
- Verified existing error logs already follow best practices with `{e}`
formatting
- Maintained error variant reporting in existing logs
- Added error context where previously missing

### ✅ Adjusted log levels appropriately  
- Changed non-critical discovery metrics from `INFO` to `DEBUG`
- Changed peer count logging from `INFO` to `DEBUG`
- Changed gossip configuration details from `INFO` to `DEBUG`
- Kept crucial system state information at `INFO` level

### ✅ Added missing major codepath logging
- Added debug logging for successful boot information loading
- Enhanced error reporting in critical paths

## Examples

**Before:**
```rust
warn!("batch exceeded sequencer time drift, sequencer must adopt new L1 origin");
info!("Discovery metrics: {:?}", metrics);
error!("Failed to route hint: {e}");
```

**After:**
```rust
warn!(target: "batch_span", "batch exceeded sequencer time drift, sequencer must adopt new L1 origin");
debug!(target: "discovery", "Discovery metrics: {:?}", metrics);
error!(target: "hint_reader", "Failed to route hint: {e}");
```

## Impact

- **45+ log statements** improved across critical components
- Consistent target naming conventions established (`batch_span`,
`p2p_rpc`, `discovery`, etc.)
- Better log filtering and debugging capabilities
- Appropriate log levels reduce noise in production while maintaining
visibility into system state
- Error logs maintain full error context for debugging

The patterns established provide a clear template for addressing the
remaining log statements throughout the codebase in future iterations.

<!-- START COPILOT CODING AGENT TIPS -->
---

💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: theochap <80177219+theochap@users.noreply.github.com>
Co-authored-by: refcell <abigger87@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cannon Area: cannon A-integration Area: integration tests A-pkg-sdk Area: packages/sdk C-protocol-critical Category: Modifies protocol-critical code

Projects

None yet

Development

Successfully merging this pull request may close these issues.