Skip to content

Conversation

lengyel-arpad85
Copy link
Contributor

No description provided.

oana-lolea and others added 18 commits July 7, 2025 17:27
* Created the backbone for the card service

* Format fix

* feat: add card service to docker compose

---------

Co-authored-by: Nathan Lie <[email protected]>
* feat(wip): pos service

* Completed POS service init

* Added docker files and missing scripts

* Removed editor code after handling conflicts

* Updated docker-compose for cloud 9 localenv and removed unnecessary telemetry command from dockerfile

* Updated docker compose files for c9 and hlb

* Updated ports and env var names from config

* fix: install ts-node-dev, add main script to index.ts

---------

Co-authored-by: Nathan Lie <[email protected]>
* migration & model for card payments
* merchants table migrations and model
* fix(cards-service): add dependencies to package.json

* chore(cards-service): lockfile
* merchants table migrations and model
…3533)

* feat(card-service): add testcontainers setup

* chore(cards-service): lockfile

* feat(cards-service): fix test containers setup

* fix(cards-service): fix type issue
* merchant service

* jest setup

* tests
…ceHost) mapping (#3524)

* Integrate Redis client in Card Service for (requestId, posServiceHost) mapping

* remove unused dep

* prettier fix

* Separate logging params from the message itself

* ttl

* prettier fix

* Rewrite redis service tests to use testcontainers instead of mocks

---------

Co-authored-by: Antoniu Neacsu <[email protected]>
* post merchants route

---------

Co-authored-by: Nathan Lie <[email protected]>
* feat(card-service): introduce AuditLogService

* feat(card-service): add testcontainers setup

* chore(cards-service): lockfile

* fix service update method and add tests.
card_payemnts migration index added

* chore(cards-service): remove unnecessary app container start in tests

* chore(cards-service): add uuid as a placeholder for open payments tennantId for clarity

* chore(cards-service): format imports
@lengyel-arpad85 lengyel-arpad85 marked this pull request as draft July 10, 2025 09:43
Copy link

github-actions bot commented Jul 10, 2025

🚀 Performance Test Results

Test Configuration:

  • VUs: 4
  • Duration: 1m0s

Test Metrics:

  • Requests/s: 39.52
  • Iterations/s: 13.19
  • Failed Requests: 0.00% (0 of 2376)
📜 Logs

> [email protected] run-tests:testenv /home/runner/work/rafiki/rafiki/test/performance
> ./scripts/run-tests.sh -e test "-k" "-q" "--vus" "4" "--duration" "1m"

Cloud Nine GraphQL API is up: http://localhost:3101/graphql
Cloud Nine Wallet Address is up: http://localhost:3100/
Happy Life Bank Address is up: http://localhost:4100/
cloud-nine-wallet-test-backend already set
cloud-nine-wallet-test-auth already set
happy-life-bank-test-backend already set
happy-life-bank-test-auth already set
     data_received..................: 858 kB 14 kB/s
     data_sent......................: 1.8 MB 30 kB/s
     http_req_blocked...............: avg=6.91µs   min=2.31µs   med=5.39µs  max=770.66µs p(90)=6.49µs   p(95)=6.99µs  
     http_req_connecting............: avg=321ns    min=0s       med=0s      max=190.19µs p(90)=0s       p(95)=0s      
     http_req_duration..............: avg=100.58ms min=7.52ms   med=83.7ms  max=811.11ms p(90)=169.29ms p(95)=187.85ms
       { expected_response:true }...: avg=100.58ms min=7.52ms   med=83.7ms  max=811.11ms p(90)=169.29ms p(95)=187.85ms
     http_req_failed................: 0.00%  ✓ 0         ✗ 2376
     http_req_receiving.............: avg=95.05µs  min=27.39µs  med=78.8µs  max=3.59ms   p(90)=117.29µs p(95)=147.7µs 
     http_req_sending...............: avg=37.72µs  min=11.93µs  med=28.68µs max=1.76ms   p(90)=42.3µs   p(95)=59µs    
     http_req_tls_handshaking.......: avg=0s       min=0s       med=0s      max=0s       p(90)=0s       p(95)=0s      
     http_req_waiting...............: avg=100.45ms min=7.37ms   med=83.54ms max=811.01ms p(90)=169.18ms p(95)=187.63ms
     http_reqs......................: 2376   39.524026/s
     iteration_duration.............: avg=303.01ms min=194.44ms med=289ms   max=1.17s    p(90)=360.27ms p(95)=395.83ms
     iterations.....................: 793    13.19131/s
     vus............................: 4      min=4       max=4 
     vus_max........................: 4      min=4       max=4 

@njlie njlie force-pushed the pos-card-services branch from 7249c11 to 058a0ed Compare August 18, 2025 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants