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

feat(stats): user ops indexing status #1240

Open
wants to merge 75 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
4e75afc
add user ops to status requirements
bragov4ik Feb 7, 2025
622ccd4
improve tests
bragov4ik Feb 7, 2025
388f99e
fix
bragov4ik Feb 7, 2025
834d980
clippy
bragov4ik Feb 7, 2025
e5f3519
fmt
bragov4ik Feb 7, 2025
63bb00c
env in readme
bragov4ik Feb 7, 2025
5da4ea0
update client to 'main' branch version
bragov4ik Feb 10, 2025
4fa4f68
typo
bragov4ik Feb 10, 2025
cdcb767
add status requirements to user ops charts
bragov4ik Feb 11, 2025
14140ee
move infinite sleep closer to its reason + add user ops endpoint to t…
bragov4ik Feb 11, 2025
5922a70
clippy
bragov4ik Feb 11, 2025
8faa624
enable disabled (for some reason) test
bragov4ik Feb 12, 2025
6d1f4c4
add user ops not indexed test + deduplicate lines/counters test
bragov4ik Feb 12, 2025
4529fc6
increase wait due to more concurrent computations
bragov4ik Feb 12, 2025
e45b71a
more descriptive panic
bragov4ik Feb 12, 2025
682c541
more wait...
bragov4ik Feb 12, 2025
901efcd
start futures one by one to not clash ports..
bragov4ik Feb 12, 2025
7947e4c
get rid of test consolidation on stats-init level due to CI problems
bragov4ik Feb 12, 2025
1334534
clippy
bragov4ik Feb 12, 2025
1465326
i cant anymore..
bragov4ik Feb 12, 2025
db41abf
ci please tell me what's the problem
bragov4ik Feb 12, 2025
48bcd30
temp change order of tests
bragov4ik Feb 12, 2025
2d3e6e0
even better ci temp
bragov4ik Feb 12, 2025
e6efd58
disable lots of logs (not sure why they appeard..)
bragov4ik Feb 12, 2025
7948a2c
fmbkofejgofids
bragov4ik Feb 12, 2025
6432867
notify on finished init updates (doesn't work when not fully indexed)
bragov4ik Feb 12, 2025
01f5064
update status endpoint + fix flaky tests
bragov4ik Feb 13, 2025
2834c91
undo temp
bragov4ik Feb 13, 2025
61d804c
random fixes
bragov4ik Feb 14, 2025
033b1d7
Revert "undo temp"
bragov4ik Feb 14, 2025
8fa6352
debug
bragov4ik Feb 14, 2025
07111f2
clippy
bragov4ik Feb 14, 2025
de57397
debug
bragov4ik Feb 14, 2025
d74308a
debug
bragov4ik Feb 14, 2025
9f3e602
debug
bragov4ik Feb 14, 2025
52215fe
update launcher (from PR)
bragov4ik Feb 14, 2025
96e7fb1
more agressive (less) wait
bragov4ik Feb 14, 2025
ee6e61a
uhh...
bragov4ik Feb 14, 2025
6686e78
debug
bragov4ik Feb 17, 2025
552ec2b
i sleep
bragov4ik Feb 17, 2025
558b598
debug print data right after init update
bragov4ik Feb 17, 2025
3a0eddc
a bit better debug
bragov4ik Feb 17, 2025
9e39539
one thread to rule them all
bragov4ik Feb 17, 2025
025ea0e
fix stack overflow
bragov4ik Feb 17, 2025
1f7e263
move away from reused db conn
bragov4ik Feb 17, 2025
8afec38
cut off potential problem
bragov4ik Feb 17, 2025
9708729
reset tests to main version; fix compilation
bragov4ik Feb 18, 2025
c2dc170
clippy
bragov4ik Feb 18, 2025
5225ca3
bring back some of changes
bragov4ik Feb 18, 2025
1ac894f
clippy
bragov4ik Feb 18, 2025
2e4716a
enable disabled chart
bragov4ik Feb 18, 2025
8f1daf1
wait for update status
bragov4ik Feb 18, 2025
cd41aa7
healthcheck check
bragov4ik Feb 18, 2025
fa1291a
user ops not indexed test
bragov4ik Feb 18, 2025
1dfa583
remove breaking test???
bragov4ik Feb 18, 2025
37936a4
try changes w/o bringing back tests
bragov4ik Feb 18, 2025
c1b7fe5
only one problematic test
bragov4ik Feb 18, 2025
9398928
test hypothesis that it's the number of tests and not tests themselves
bragov4ik Feb 18, 2025
29e53ed
bring back the old tests
bragov4ik Feb 19, 2025
a5e2d9d
remove prints
bragov4ik Feb 19, 2025
d01073f
warns
bragov4ik Feb 19, 2025
54895e8
clippy
bragov4ik Feb 19, 2025
fb33e4b
init tracing in integration tests
bragov4ik Feb 19, 2025
ee7767b
more timeouts
bragov4ik Feb 19, 2025
790606f
move common
bragov4ik Feb 19, 2025
a7d5225
remove useless config file
bragov4ik Feb 19, 2025
d17c15e
add timeout + fix tests
bragov4ik Feb 19, 2025
01f4b1f
more relaxed test to tolerate occasional scheduled updates
bragov4ik Feb 19, 2025
ff5a041
fix pipeline (temp)
bragov4ik Feb 19, 2025
3a7a9f0
fix ci
bragov4ik Feb 19, 2025
d30915c
stylish fashionable youthful
bragov4ik Feb 19, 2025
a302df4
clippy
bragov4ik Feb 19, 2025
57655b3
better comments in proto
bragov4ik Feb 20, 2025
5b0a717
fix blockscout_checks_enabled logic
bragov4ik Feb 20, 2025
1cf614c
readability
bragov4ik Feb 20, 2025
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
43 changes: 34 additions & 9 deletions .github/workflows/stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
--name postgres
ports:
- 5432:5432
steps:
Expand All @@ -48,26 +49,50 @@ jobs:
with:
working-directory: stats

- name: Unit tests
run: RUST_BACKTRACE=1 RUST_LOG=info cargo test --locked --workspace --all-features --lib --bins -- --nocapture
if: success() || failure()
# temporary fix for failing tests
- name: Set postgres max_connections
run: |
psql -h localhost -p 5432 -c "ALTER SYSTEM SET max_connections = 500;" -d postgres
env:
PGPASSWORD: admin
PGUSER: postgres

- name: Doc tests
run: cargo test --locked --workspace --all-features --doc
if: success() || failure()
- name: Restart postgres
# Restart Postgres so that new system parameters to be applied
uses: docker://docker
with:
args: docker restart postgres

- name: Build
id: build
run: RUST_BACKTRACE=1 cargo test --no-run --locked --workspace --all-features

- name: ENVs in documentation
run: cargo run --bin env-docs-generation
env:
VALIDATE_ONLY: true

- name: DB tests temp
Copy link
Contributor Author

Choose a reason for hiding this comment

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

remove

run: RUST_BACKTRACE=1 RUST_LOG=warn cargo test --locked --package stats-server -- --nocapture --ignored --test-threads=1
if: steps.build.outcome == 'success'
env:
DATABASE_URL: postgres://postgres:admin@localhost:5432/

- name: Unit tests
run: RUST_BACKTRACE=1 RUST_LOG=info cargo test --locked --workspace --all-features --lib --bins -- --nocapture
if: steps.build.outcome == 'success'

- name: Doc tests
run: cargo test --locked --workspace --all-features --doc
if: steps.build.outcome == 'success'

- name: Integration tests
run: RUST_BACKTRACE=1 RUST_LOG=info cargo test --locked --workspace --test '*' -- --nocapture
if: success() || failure()
if: steps.build.outcome == 'success'

- name: DB tests
run: RUST_BACKTRACE=1 cargo test --locked --workspace -- --nocapture --ignored
if: success() || failure()
run: RUST_BACKTRACE=1 RUST_LOG=warn cargo test --locked --workspace -- --nocapture --ignored
if: steps.build.outcome == 'success'
env:
DATABASE_URL: postgres://postgres:admin@localhost:5432/

Expand Down
Loading
Loading