Skip to content

Commit

Permalink
Merge pull request #715 from oasisprotocol/mitjat/force-sourcify-cache
Browse files Browse the repository at this point in the history
e2e: Reindex pogreb caches
  • Loading branch information
mitjat authored Jun 24, 2024
2 parents 6652908 + d297f45 commit 81911f2
Show file tree
Hide file tree
Showing 34 changed files with 40 additions and 33 deletions.
Empty file added .changelog/715.trivial.1.md
Empty file.
6 changes: 6 additions & 0 deletions .github/workflows/ci-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ jobs:
- name: Start db
run: |
make postgres
- name: Block access to Sourcify
# Sourcify should not need to be available in CI; we run everything from caches.
# Enforce unavailability to keep tests confidently reproducible, and to catch
# any bugs that might cause CI to accidentally use Sourcify.
run: |
sudo bash -c 'echo 0.0.0.0 sourcify.dev | tee -a /etc/hosts'
- name: Run e2e regression tests
run : |
make E2E_REGRESSION_SUITES=${{ matrix.suite }} test-e2e-regression
Expand Down
3 changes: 2 additions & 1 deletion cmd/analyzer/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,8 @@ func (a *Service) Start() {
}(an)
}

// Prepare slow-sync analyzers (to be started after fast-sync analyzers are done).
// Prepare non-fast-sync analyzers (= item analyzers, slow-sync block analyzers);
// they will be started after fast-sync analyzers are done.
var slowSyncWg sync.WaitGroup
for _, an := range a.analyzers {
slowSyncWg.Add(1)
Expand Down
Binary file modified tests/e2e_regression/damask/rpc-cache/consensus/db.pmt
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/e2e_regression/damask/rpc-cache/consensus/main.pix
Git LFS file not shown
4 changes: 2 additions & 2 deletions tests/e2e_regression/damask/rpc-cache/consensus/overflow.pix
Git LFS file not shown
Binary file modified tests/e2e_regression/damask/rpc-cache/emerald/db.pmt
Binary file not shown.
Git LFS file not shown
Binary file modified tests/e2e_regression/eden/rpc-cache/consensus/db.pmt
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/e2e_regression/eden/rpc-cache/consensus/main.pix
Git LFS file not shown
4 changes: 2 additions & 2 deletions tests/e2e_regression/eden/rpc-cache/consensus/overflow.pix
Git LFS file not shown
4 changes: 2 additions & 2 deletions tests/e2e_regression/eden/rpc-cache/emerald/00000-1.psg
Git LFS file not shown
Binary file modified tests/e2e_regression/eden/rpc-cache/emerald/00000-1.psg.pmt
Binary file not shown.
Binary file modified tests/e2e_regression/eden/rpc-cache/emerald/db.pmt
Binary file not shown.
Binary file modified tests/e2e_regression/eden/rpc-cache/emerald/index.pmt
Binary file not shown.
4 changes: 2 additions & 2 deletions tests/e2e_regression/eden/rpc-cache/emerald/main.pix
Git LFS file not shown
4 changes: 2 additions & 2 deletions tests/e2e_regression/eden/rpc-cache/emerald/overflow.pix
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
4 changes: 2 additions & 2 deletions tests/e2e_regression/edenfast/e2e_config_1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ analysis:
# Also, sapphire does not use much code that is not covered by emerald.
storage:
backend: postgres
endpoint: postgresql://rwuser:password@172.17.0.2:5432/indexer?sslmode=disable
endpoint: postgresql://rwuser:password@localhost:5432/indexer?sslmode=disable
DANGER__WIPE_STORAGE_ON_STARTUP: true
migrations: file://storage/migrations

server:
chain_name: mainnet
endpoint: localhost:8008
storage:
endpoint: postgresql://rwuser:password@172.17.0.2:5432/indexer?sslmode=disable
endpoint: postgresql://rwuser:password@localhost:5432/indexer?sslmode=disable
backend: postgres

log:
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e_regression/edenfast/e2e_config_2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ analysis:
# aggregate_stats: {} # Awkward to make stop after a single run.
storage:
backend: postgres
endpoint: postgresql://rwuser:password@172.17.0.2:5432/indexer?sslmode=disable
endpoint: postgresql://rwuser:password@localhost:5432/indexer?sslmode=disable
# DANGER__WIPE_STORAGE_ON_STARTUP: true
migrations: file://storage/migrations

Expand Down
Binary file modified tests/e2e_regression/edenfast/rpc-cache/consensus/db.pmt
Binary file not shown.
Binary file modified tests/e2e_regression/edenfast/rpc-cache/consensus/index.pmt
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/e2e_regression/edenfast/rpc-cache/consensus/main.pix
Git LFS file not shown
Git LFS file not shown
4 changes: 2 additions & 2 deletions tests/e2e_regression/edenfast/rpc-cache/emerald/00000-1.psg
Git LFS file not shown
Binary file modified tests/e2e_regression/edenfast/rpc-cache/emerald/00000-1.psg.pmt
Binary file not shown.
Binary file modified tests/e2e_regression/edenfast/rpc-cache/emerald/db.pmt
Binary file not shown.
Binary file modified tests/e2e_regression/edenfast/rpc-cache/emerald/index.pmt
Binary file not shown.
4 changes: 2 additions & 2 deletions tests/e2e_regression/edenfast/rpc-cache/emerald/main.pix
Git LFS file not shown
4 changes: 2 additions & 2 deletions tests/e2e_regression/edenfast/rpc-cache/emerald/overflow.pix
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
2 changes: 1 addition & 1 deletion tests/e2e_regression/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@ diff --recursive "$TEST_DIR/expected" "$outDir" >/dev/null || {
}

echo
echo "E2E regression tests passed!"
echo "E2E regression test suite \"$suite\" passed!"

0 comments on commit 81911f2

Please sign in to comment.