Skip to content
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

Initial FastNear indexer integration #321

Merged
merged 41 commits into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
a333b92
FastNEAR indexer, by @firatsertgoz
Fly-Style Nov 22, 2024
b60eb74
Merge branch 'main' into fastnear-indexer
Fly-Style Nov 22, 2024
b5d38be
Finish fastnear setup for indexer
Fly-Style Nov 25, 2024
bd7a4ab
Update nearcore to v2.4.0-rc1
Fly-Style Nov 20, 2024
9a78477
Correct docker build
Fly-Style Nov 25, 2024
18ec0c2
Rename for better recognition
Fly-Style Nov 25, 2024
3a5c329
Setup compose file for fast Near indexer
Fly-Style Nov 25, 2024
3997ea4
Clean DCE'd code
Fly-Style Nov 25, 2024
f922c05
Update forgotten test dependency
Fly-Style Nov 25, 2024
6719a49
Fix typo and allow dead code temporarily
Fly-Style Nov 25, 2024
822ae74
Enhance docker compose liveness test
Fly-Style Nov 25, 2024
73a78a8
Mark 'unused' imports
Fly-Style Nov 25, 2024
ab574d4
Even more test enhancements
Fly-Style Nov 25, 2024
598dbb8
Revert upgrade to latest nearcore
Fly-Style Nov 25, 2024
077014b
Introduce CI action for FastNear
Fly-Style Nov 25, 2024
3ae6ec8
Separate default and fastnear indexers
Fly-Style Nov 25, 2024
499f325
Please work
Fly-Style Nov 25, 2024
342d8f1
Please work-2
Fly-Style Nov 25, 2024
0d09358
Update integration_test.go
Fly-Style Nov 25, 2024
a0d7873
Please work-3
Fly-Style Nov 26, 2024
8dfca70
Remove healthcheck from fast indexer docker image, upgrade version wh…
Fly-Style Nov 26, 2024
3720235
Please work-4
Fly-Style Nov 26, 2024
bed8ef2
Update compose-fastnear-test.yml
Fly-Style Nov 26, 2024
24c2f25
Try now?
Fly-Style Nov 26, 2024
1dcadcd
Modify healthcheck
Fly-Style Nov 26, 2024
73a6faa
Tweak the code
Fly-Style Nov 26, 2024
62e7a99
Revert code changes
Fly-Style Nov 26, 2024
fc0d6cd
Try to revert?
Fly-Style Nov 26, 2024
50ba61b
Merge
Fly-Style Nov 27, 2024
2a795e7
WIP
Fly-Style Nov 27, 2024
53c94df
Try to test on CI
Fly-Style Nov 27, 2024
2fa94e8
Fix fastnear docker compose
Fly-Style Nov 27, 2024
dd9b90c
Fix fastnear docker compose-2
Fly-Style Nov 27, 2024
59af8d1
Self-review, AI review comments and temporarily remove CI & IT test
Fly-Style Nov 28, 2024
f6ffc25
Unit tests
Fly-Style Nov 28, 2024
05bda85
Fix CI test
Fly-Style Nov 28, 2024
8d961f4
Review comments
Fly-Style Nov 29, 2024
36b90e9
Don's comments
Fly-Style Nov 29, 2024
39555dd
AI review
Fly-Style Nov 29, 2024
b5ecb80
Add fastnear address to config, fix CI
Fly-Style Nov 30, 2024
4e711fa
Update integration-tests.yml
Fly-Style Nov 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/compose-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Compose Test
name: Docker Compose Test

on:
push:
Expand Down Expand Up @@ -31,6 +31,9 @@ jobs:
tags: nffl-indexer
cache-from: type=gha,scope=indexer
cache-to: type=gha,mode=max,scope=indexer
build-args: |
- TARGET="debug"
- COMPILATION_MODE=""

Fly-Style marked this conversation as resolved.
Show resolved Hide resolved
- name: Build relayer container
uses: docker/build-push-action@v5
Expand Down Expand Up @@ -65,8 +68,8 @@ jobs:
- name: Build and start Docker Compose services
run: docker-compose -f ./docker-compose.yml up --build -d

- name: Wait for 5 minutes
run: sleep 300
- name: Wait for a 3 minutes
run: sleep 180

Fly-Style marked this conversation as resolved.
Show resolved Hide resolved
- name: List running containers
run: |
Expand All @@ -84,7 +87,7 @@ jobs:
"rollup0-relayer"
"nffl-indexer"
"nffl-aggregator"
"nffl_agreator-health_1"
"nffl_aggregator-health_1"
"mainnet-anvil"
"prometheus"
"rollup0-anvil"
Expand All @@ -107,7 +110,7 @@ jobs:
services=(
"nffl_operator1-health_1"
"nffl_operator0-health_1"
"nffl_agreator-health_1"
"nffl_aggregator-health_1"
"rollup1-anvil"
"rollup0-anvil"
"mainnet-anvil"
Expand All @@ -125,4 +128,4 @@ jobs:
done

- name: Tear down Docker Compose services
run: docker-compose -f ./docker-compose.yml down
run: docker-compose -f ./docker-compose.yml down
3 changes: 3 additions & 0 deletions .github/workflows/contracts-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main
pull_request:
paths:
- 'bindings/**'
- 'contracts/**'
Fly-Style marked this conversation as resolved.
Show resolved Hide resolved

jobs:
Test:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
pull_request:
branches:
- main
paths:
- 'docs/**'

jobs:
test-deploy:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ on:
branches:
- main
pull_request:
paths:
- 'aggregator/**'
- 'core/**'
- 'indexer/**'
- 'offchain/**'
- 'operator/**'
- 'plugin/**'
- 'relayer/**'
Fly-Style marked this conversation as resolved.
Show resolved Hide resolved

jobs:
go_test:
Expand Down Expand Up @@ -32,4 +40,4 @@ jobs:
- 'offchain/**'
- uses: actions-rust-lang/setup-rust-toolchain@v1
if: steps.filter.outputs.rust == 'true'
- run: cargo test --all-features
- run: RUSTFLAGS="$RUSTFLAGS -A dead_code" cargo test # Allow 'dead code' since most containers are not used in unit tests
Fly-Style marked this conversation as resolved.
Show resolved Hide resolved
Loading
Loading