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

Mobile End to End test #818

Open
wants to merge 54 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
4ed88b6
Basic docker compose for mobile stack testing
macpie May 21, 2024
5a34a16
Basic test mobile stack
macpie May 21, 2024
4d5c74a
Add mobile config
macpie May 22, 2024
8c33ce4
Add compose up and down
macpie May 22, 2024
dc37931
Add packet verifier
macpie May 23, 2024
3f4938d
Add db seeder to add keys to mobile config DB
macpie May 23, 2024
3278ba1
Only start config when seeder is done
macpie May 23, 2024
ff8d81a
Fixup seeder and packet verifier startup
macpie May 23, 2024
2283ba5
Simpler dockerfile
macpie May 23, 2024
f38eb69
Add verifier and improve seeder
macpie May 23, 2024
643872f
Do not update created_at
macpie May 24, 2024
dc60ed5
Upgrade to latest main and init verifier bucket with local dataset
macpie May 24, 2024
b975078
Auto load data sets for verifier
macpie May 24, 2024
9d0049b
Add todo geofence files
macpie May 24, 2024
4caefc1
Publish actual geofence
macpie May 28, 2024
3dbbfbf
Generate assignment files
macpie May 28, 2024
2ba08b6
Fix assignment encoding
macpie May 28, 2024
65bb555
Generate price report for mobile verifier
macpie May 29, 2024
0a87b08
Add reward_index
macpie May 29, 2024
d6029e0
Improve init s3 to update timestamp and add descriptions
macpie May 29, 2024
eb067d5
Add add server up in test
macpie May 29, 2024
1be6341
Test skeleton
macpie May 30, 2024
47b475f
Simplify script
macpie May 30, 2024
4aaf9e6
Test cleanup
macpie May 30, 2024
e98e7b5
Update readme
macpie May 30, 2024
a5b59d6
Add docs
macpie May 30, 2024
2388346
Fix link
macpie May 30, 2024
ee70bf6
Fix again
macpie May 30, 2024
5682a7d
Fix readme
macpie May 30, 2024
e778184
Slightly better docker files
macpie May 30, 2024
589ed41
make env into file
macpie May 31, 2024
1e93f90
Improve submit_speedtest
macpie May 31, 2024
0886549
Add set_metadata to wrap req with api token
macpie May 31, 2024
ce6dd98
Add basic coverage_object
macpie May 31, 2024
a978d99
Add feature ingest/time (HONOR_TIMESTAMP)
macpie Jun 3, 2024
50ec7e4
Fix directories
macpie Jun 3, 2024
d569c3c
manipulate req times
macpie Jun 3, 2024
c796ae6
Send 12 wifi heartbeat
macpie Jun 3, 2024
b13d90e
Update Roll Time
macpie Jun 3, 2024
504a16d
remove data from data_sets_directory
macpie Jun 4, 2024
220bfeb
Attempt to inset data into metadata
macpie Jun 4, 2024
7cf11b7
Fix for verifier
macpie Jun 5, 2024
192a535
Fix Price report
macpie Jun 6, 2024
5b95628
Enable full rewards
macpie Jun 6, 2024
4939f76
Make CoverageObjectReqV1 valid
macpie Jun 6, 2024
681f1b4
Make wifi heartbeat file process epoch larger
macpie Jun 6, 2024
ad41bc2
- Fix boosted by adding tables
macpie Jun 7, 2024
ff1d756
Some timestamps are in seconds ...
macpie Jun 7, 2024
22f2408
Full test!
macpie Jun 7, 2024
bea5cf7
Cleanup when test is successful
macpie Jun 7, 2024
ef88c24
Improve TestGuard
macpie Jun 7, 2024
c5d4587
Avoid rate limit
macpie Jun 10, 2024
86bd7f0
More comments
macpie Jun 10, 2024
0265724
rename test feature
macpie Jun 10, 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
Prev Previous commit
Next Next commit
Add reward_index
macpie committed Jun 3, 2024

Verified

This commit was signed with the committer’s verified signature.
commit 0a87b081e2c6a6f691f22dabc8b7e6e662d36aa1
24 changes: 24 additions & 0 deletions docker/mobile/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -59,6 +59,7 @@ services:
- AWS_ACCESS_KEY_ID=AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN=AWS_SESSION_TOKEN
- RUST_BACKTRACE=1
ports:
- 9080:9080
volumes:
@@ -76,6 +77,7 @@ services:
stop_grace_period: 1s
environment:
- PACKAGE=mobile-config
- RUST_BACKTRACE=1
ports:
- 9081:9081
volumes:
@@ -99,6 +101,7 @@ services:
- AWS_ACCESS_KEY_ID=AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN=AWS_SESSION_TOKEN
- RUST_BACKTRACE=1
volumes:
- ./packet_verifier/settings.toml:/opt/mobile-packet-verifier/etc/settings.toml
- ./packet_verifier/keypair.bin:/opt/mobile-packet-verifier/etc/keypair.bin
@@ -128,6 +131,27 @@ services:
- ./verifier/usa_and_mexico_geofence_regions/us-territories.txt:/opt/mobile-verifier/usa_and_mexico_geofence_regions/us-territories.txt
- ./verifier/usa_geofence_regions/us-territories.txt:/opt/mobile-verifier/usa_geofence_regions/us-territories.txt

reward_index:
build:
context: ../..
dockerfile: ./docker/mobile/Dockerfile
args:
- PACKAGE=reward-index
depends_on:
localstack:
condition: service_healthy
config:
condition: service_started
stop_grace_period: 1s
environment:
- PACKAGE=reward-index
- AWS_ACCESS_KEY_ID=AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN=AWS_SESSION_TOKEN
- RUST_BACKTRACE=1
volumes:
- ./reward_index/settings.toml:/opt/reward-index/etc/settings.toml

volumes:
postgres-data:
localstack-data:
Binary file not shown.
Binary file not shown.
17 changes: 17 additions & 0 deletions docker/mobile/reward_index/settings.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
modelog = "reward_index=debug,file_store=info,custom_tracing=info"
interval = "10 minutes"
mode = "mobile"

unallocated_reward_entity_key = "131kC5gTPFfTyzziHbh2PWz2VSdF4gDvhoC5vqCz25N7LFtDocF"

[database]
url = "postgres://postgres:postgres@postgres:5432/mobile_index"
max_connections = 10

[verifier]
bucket = "mobile-verifier"
region = "us-east-1"
endpoint = "http://localstack:4566"

[metrics]
endpoint = "0.0.0.0:19000"