Skip to content

Commit

Permalink
indexer: Remove (ethereum-optimism#10784)
Browse files Browse the repository at this point in the history
  • Loading branch information
mslipper authored Jun 10, 2024
1 parent 06d4d20 commit e61a5cd
Show file tree
Hide file tree
Showing 120 changed files with 4 additions and 62,127 deletions.
98 changes: 1 addition & 97 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1085,69 +1085,6 @@ jobs:
command: make <<parameters.binary_name>>
working_directory: <<parameters.working_directory>>

indexer-tests:
parameters:
variant:
type: string
default: ''
environment:
DEVNET_L2OO: 'false'
OP_E2E_USE_L2OO: 'false'
docker:
- image: <<pipeline.parameters.ci_builder_image>>
- image: cimg/postgres:14.1
resource_class: xlarge
steps:
- checkout
- when:
condition:
equal: ['l2oo', <<parameters.variant>>]
steps:
- run:
name: Set DEVNET_L2OO = true
command: echo 'export DEVNET_L2OO=true' >> $BASH_ENV
- run:
name: Set OP_E2E_USE_L2OO = true
command: echo 'export OP_E2E_USE_L2OO=true' >> $BASH_ENV
- check-changed:
patterns: indexer
- run:
name: Lint
command: golangci-lint run -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell,errorlint --timeout 4m -e "errors.As" -e "errors.Is" ./...
working_directory: indexer
- run:
name: git submodules
command: make submodules
- run:
name: generate cannon prestate
command: make cannon-prestate
- run:
name: generate L1 state
command: make devnet-allocs
- run:
name: Test
command: |
mkdir -p /test-results
DB_USER=postgres gotestsum --format=standard-verbose --junitfile=/test-results/indexer_tests.xml -- -parallel=4 ./...
working_directory: indexer
- store_test_results:
path: /test-results
- run:
name: Build
command: make indexer
working_directory: indexer
- run:
name: Install node_modules
command: pnpm install:ci
- run:
name: Install tygo
command: go install github.com/gzuidhof/tygo@latest
working_directory: indexer/api-ts
- run:
name: Check generated code
command: npm run generate && git diff --exit-code
working_directory: indexer/api-ts

cannon-prestate:
docker:
- image: <<pipeline.parameters.ci_builder_image>>
Expand Down Expand Up @@ -1702,11 +1639,6 @@ workflows:
name: proxyd-tests
binary_name: proxyd
working_directory: proxyd
- indexer-tests:
name: indexer-tests<< matrix.variant >>
matrix:
parameters:
variant: ["", "-l2oo"]
- semgrep-scan
- go-mod-download
- fuzz-golang:
Expand Down Expand Up @@ -1900,10 +1832,6 @@ workflows:
- op-challenger-docker-build
- da-server-docker-build
- cannon-prestate
- docker-build:
name: indexer-docker-build
docker_name: indexer
docker_tags: <<pipeline.git.revision>>,<<pipeline.git.branch>>
- check-generated-mocks-op-node
- check-generated-mocks-op-service
- cannon-go-lint-and-test:
Expand All @@ -1926,7 +1854,7 @@ workflows:
type: approval
filters:
tags:
only: /^(da-server|proxyd|chain-mon|indexer|ci-builder(-rust)?|ufm-[a-z0-9\-]*|op-[a-z0-9\-]*)\/v.*/
only: /^(da-server|proxyd|chain-mon|ci-builder(-rust)?|ufm-[a-z0-9\-]*|op-[a-z0-9\-]*)\/v.*/
branches:
ignore: /.*/
- docker-build:
Expand Down Expand Up @@ -2119,21 +2047,6 @@ workflows:
- oplabs-gcr-release
requires:
- hold
- docker-build:
name: indexer-docker-release
filters:
tags:
only: /^indexer\/v.*/
branches:
ignore: /.*/
docker_name: indexer
docker_tags: <<pipeline.git.revision>>
publish: true
release: true
context:
- oplabs-gcr-release
requires:
- hold
- docker-build:
name: chain-mon-docker-release
filters:
Expand Down Expand Up @@ -2340,15 +2253,6 @@ workflows:
context:
- oplabs-gcr
- slack
- docker-build:
name: indexer-docker-publish
docker_name: indexer
docker_tags: <<pipeline.git.revision>>,<<pipeline.git.branch>>
publish: true
context:
- oplabs-gcr
- slack
platforms: "linux/amd64,linux/arm64"
- docker-build:
name: chain-mon-docker-publish
docker_name: chain-mon
Expand Down
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

# Misc
/proxyd @ethereum-optimism/infra-reviewers
/indexer @ethereum-optimism/devxpod
/infra @ethereum-optimism/infra-reviewers
/specs @ethereum-optimism/contract-reviewers @ethereum-optimism/go-reviewers

Expand Down
11 changes: 0 additions & 11 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,6 @@ pull_request_rules:
label:
add:
- A-cannon
- name: Add A-indexer label and ecopod reviewers
conditions:
- 'files~=^indexer/'
- '#label<5'
actions:
label:
add:
- A-indexer
request_reviews:
users:
- roninjin10
- name: Add A-op-batcher label
conditions:
- 'files~=^op-batcher/'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tag-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ on:
options:
- ci-builder
- ci-builder-rust
- indexer
- op-heartbeat
- chain-mon
- op-node
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ The full set of components that have releases are:
- `chain-mon`
- `ci-builder`
- `ci-builder`
- `indexer`
- `op-batcher`
- `op-contracts`
- `op-challenger`
Expand Down
13 changes: 0 additions & 13 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -212,19 +212,6 @@ target "proxyd" {
tags = [for tag in split(",", IMAGE_TAGS) : "${REGISTRY}/${REPOSITORY}/proxyd:${tag}"]
}

target "indexer" {
dockerfile = "./indexer/Dockerfile"
context = "./"
args = {
// proxyd dockerfile has no _ in the args
GITCOMMIT = "${GIT_COMMIT}"
GITDATE = "${GIT_DATE}"
GITVERSION = "${GIT_VERSION}"
}
platforms = split(",", PLATFORMS)
tags = [for tag in split(",", IMAGE_TAGS) : "${REGISTRY}/${REPOSITORY}/indexer:${tag}"]
}

target "chain-mon" {
dockerfile = "./ops/docker/Dockerfile.packages"
context = "."
Expand Down
16 changes: 1 addition & 15 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module github.com/ethereum-optimism/optimism
go 1.21

require (
github.com/BurntSushi/toml v1.3.2
github.com/DataDog/zstd v1.5.2
github.com/andybalholm/brotli v1.1.0
github.com/btcsuite/btcd v0.24.0
Expand All @@ -16,21 +15,16 @@ require (
github.com/ethereum-optimism/superchain-registry/superchain v0.0.0-20240603085035-9c8f6081266e
github.com/ethereum/go-ethereum v1.13.15
github.com/fsnotify/fsnotify v1.7.0
github.com/go-chi/chi/v5 v5.0.12
github.com/go-chi/docgen v1.2.0
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb
github.com/google/go-cmp v0.6.0
github.com/google/gofuzz v1.2.1-0.20220503160820-4a35382e8fc8
github.com/google/uuid v1.6.0
github.com/hashicorp/go-multierror v1.1.1
github.com/hashicorp/golang-lru/v2 v2.0.7
github.com/hashicorp/raft v1.6.1
github.com/hashicorp/raft-boltdb v0.0.0-20231211162105-6c830fa4535e
github.com/holiman/uint256 v1.2.4
github.com/ipfs/go-datastore v0.6.0
github.com/ipfs/go-ds-leveldb v0.5.0
github.com/jackc/pgtype v1.14.3
github.com/jackc/pgx/v5 v5.6.0
github.com/libp2p/go-libp2p v0.35.0
github.com/libp2p/go-libp2p-mplex v0.9.0
github.com/libp2p/go-libp2p-pubsub v0.11.0
Expand All @@ -52,8 +46,6 @@ require (
golang.org/x/sync v0.7.0
golang.org/x/term v0.21.0
golang.org/x/time v0.5.0
gorm.io/driver/postgres v1.5.7
gorm.io/gorm v1.25.10
)

require (
Expand Down Expand Up @@ -110,6 +102,7 @@ require (
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/gopacket v1.1.19 // indirect
github.com/google/pprof v0.0.0-20240207164012-fb44976bdcd5 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/websocket v1.5.1 // indirect
github.com/graph-gophers/graphql-go v1.3.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
Expand All @@ -128,23 +121,16 @@ require (
github.com/influxdata/line-protocol v0.0.0-20210311194329-9aa0e372d097 // indirect
github.com/ipfs/go-cid v0.4.1 // indirect
github.com/ipfs/go-log/v2 v2.5.1 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/puddle/v2 v2.2.1 // indirect
github.com/jackpal/go-nat-pmp v1.0.2 // indirect
github.com/jbenet/go-temp-err-catcher v0.1.0 // indirect
github.com/jbenet/goprocess v0.1.4 // indirect
github.com/jedisct1/go-minisign v0.0.0-20230811132847-661be99b8267 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/karalabe/usb v0.0.3-0.20230711191512-61db3e06439c // indirect
github.com/klauspost/compress v1.17.8 // indirect
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
github.com/koron/go-ssdp v0.0.4 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/lib/pq v1.10.9 // indirect
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
github.com/libp2p/go-flow-metrics v0.1.0 // indirect
github.com/libp2p/go-libp2p-asn-util v0.4.1 // indirect
Expand Down
Loading

0 comments on commit e61a5cd

Please sign in to comment.