Skip to content

Conversation

@elmattic
Copy link
Contributor

@elmattic elmattic commented Feb 27, 2025

Summary of changes

Changes introduced in this pull request:

  • Implement Filecoin.ChainGetEvents RPC method.
  • Add forest-tool index backfill subcommand.
  • Add a new column to support indices in the paritydb schema.
forest-tool api compare --lotus /ip4/127.0.0.1/tcp/1234/http --forest /ip4/127.0.0.1/tcp/2345/http forest_snapshot_calibnet_2025-04-01_height_2540376.forest.car.zst --filter ChainGetEvents -n 200
| RPC Method                    | Forest | Lotus |
|-------------------------------|--------|-------|
| Filecoin.ChainGetEvents (141) | Valid  | Valid |

Reference issue to close (if applicable)

Closes #4750

Other information and links

Change checklist

  • I have performed a self-review of my own code,
  • I have made corresponding changes to the documentation. All new code adheres to the team's documentation standards,
  • I have added tests that prove my fix is effective or that my feature works (if possible),
  • I have made sure the CHANGELOG is up-to-date. All user-facing changes should be reflected in this document.

@elmattic elmattic changed the base branch from main to elmattic/optional-eth-mappings February 27, 2025 16:36
Base automatically changed from elmattic/optional-eth-mappings to main March 17, 2025 15:57
@CLAassistant
Copy link

CLAassistant commented Mar 24, 2025

CLA assistant check
All committers have signed the CLA.

@elmattic elmattic force-pushed the elmattic/chain-get-events branch from 1a9ae89 to ec909f8 Compare March 24, 2025 13:48
@hanabi1224
Copy link
Contributor

hanabi1224 commented Apr 11, 2025

api_compare-forest-rpc-ready is getting even slower, @elmattic could you please investigate?

2025-04-11T12:06:43.3323307Z  Container api_compare-forest-rpc-ready-1  Starting
2025-04-11T12:06:43.7631060Z  Container api_compare-forest-rpc-ready-1  Started
...
2025-04-11T12:16:33.3088763Z  Container api_compare-forest-rpc-ready-1  Exited

@elmattic
Copy link
Contributor Author

api_compare-forest-rpc-ready is getting even slower, @elmattic could you please investigate?

2025-04-11T12:06:43.3323307Z  Container api_compare-forest-rpc-ready-1  Starting
2025-04-11T12:06:43.7631060Z  Container api_compare-forest-rpc-ready-1  Started
...
2025-04-11T12:16:33.3088763Z  Container api_compare-forest-rpc-ready-1  Exited

The eth_mapping background task will be removed entirely. See: #5567.

I suggest merging this PR first. What do you think @LesnyRumcajs ?

@hanabi1224
Copy link
Contributor

hanabi1224 commented Apr 11, 2025

@elmattic could you disable indexer in RPC checks to make it fast and make sure it passes without the background indexer

@elmattic
Copy link
Contributor Author

@elmattic could you disable indexer in RPC checks to make it fast and make sure it passes without the background indexer

The RPC tests will fail if the indexer is disabled.

- |
set -euxo pipefail
# Perform basic initliazation, including generating the JWT token
# Perform basic initialization, including generating the JWT token
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's set FOREST_CHAIN_INDEXER_ENABLED=0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@LesnyRumcajs
Copy link
Member

api_compare-forest-rpc-ready is getting even slower, @elmattic could you please investigate?

2025-04-11T12:06:43.3323307Z  Container api_compare-forest-rpc-ready-1  Starting
2025-04-11T12:06:43.7631060Z  Container api_compare-forest-rpc-ready-1  Started
...
2025-04-11T12:16:33.3088763Z  Container api_compare-forest-rpc-ready-1  Exited

The eth_mapping background task will be removed entirely. See: #5567.

I suggest merging this PR first. What do you think @LesnyRumcajs ?

If it degrades the CI performance significantly and there's no ready PR to fix this, I wouldn't merge it.

@elmattic
Copy link
Contributor Author

api_compare-forest-rpc-ready is getting even slower, @elmattic could you please investigate?

2025-04-11T12:06:43.3323307Z  Container api_compare-forest-rpc-ready-1  Starting
2025-04-11T12:06:43.7631060Z  Container api_compare-forest-rpc-ready-1  Started
...
2025-04-11T12:16:33.3088763Z  Container api_compare-forest-rpc-ready-1  Exited

The eth_mapping background task will be removed entirely. See: #5567.
I suggest merging this PR first. What do you think @LesnyRumcajs ?

If it degrades the CI performance significantly and there's no ready PR to fix this, I wouldn't merge it.

I don't think this PR specifically degrades performance, it was already poor before, no? In any case, I've reduced the eth_mappings task to backfill only 300 epochs.

@LesnyRumcajs
Copy link
Member

I don't think this PR specifically degrades performance, it was already poor before, no? In any case, I've reduced the eth_mappings task to backfill only 300 epochs.

Okay, from comment from @hanabi1224 I was under the impression that this PR made it slower. If it's not the case, then it's something for a completely different PR.

@hanabi1224
Copy link
Contributor

hanabi1224 commented Apr 11, 2025

@LesnyRumcajs As discussed with @elmattic The performance issue has been temporarily mitigated by this commit, which will be removed with #5567

@elmattic elmattic added this pull request to the merge queue Apr 11, 2025
Merged via the queue into main with commit 98d31ba Apr 11, 2025
45 checks passed
@elmattic elmattic deleted the elmattic/chain-get-events branch April 11, 2025 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RPC requires calibnet RPC checks to run on CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Filecoin.ChainGetEvents

6 participants