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

Add a test for global metrics with 2 HTTP trackers #1410

Conversation

josecelano
Copy link
Member

@josecelano josecelano commented Mar 24, 2025

A new integration test that checks that the global metrics are updated when you run 2 HTTP trackers. Only one metric is checked in this test.

It uses fixed ports that might conflict with other running instances in the future. We should use a random free port if we run more integration tests like this in the future.

The rest of the functionality is already tested at the package level with only one tracker.

I've added to make sure nothing is broken while working on the stats overhaul.

A new integration test that checks that the global metrics are udapted
when you run 2 HTTP trackers.

Ony one metric is checked in this test.

It uses fixed port that migth conflict with other running instances in
the future. We should use a random free port if we run more integration tests like this in the future.
@josecelano josecelano added Testing Checking Torrust Quality & Assurance Relates to QA, Testing, and CI - Developer - Torrust Improvement Experience labels Mar 24, 2025
@josecelano josecelano self-assigned this Mar 24, 2025
@josecelano josecelano requested a review from da2ce7 March 24, 2025 12:22
@josecelano josecelano linked an issue Mar 24, 2025 that may be closed by this pull request
now that we have a real one.
@josecelano josecelano force-pushed the 1407-overhaul-stats-add-e2e-tests-for-the-global-metrics branch from 40eb09f to 4e59dd7 Compare March 24, 2025 12:38
@josecelano josecelano marked this pull request as ready for review March 24, 2025 12:38
Copy link

codecov bot commented Mar 24, 2025

Codecov Report

Attention: Patch coverage is 77.77778% with 2 lines in your changes missing coverage. Please review.

Project coverage is 83.13%. Comparing base (1f1da7b) to head (b53da07).
Report is 7 commits behind head on develop.

Files with missing lines Patch % Lines
src/console/profiling.rs 0.00% 1 Missing ⚠️
src/main.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1410      +/-   ##
===========================================
+ Coverage    81.98%   83.13%   +1.15%     
===========================================
  Files          232      233       +1     
  Lines        17011    17011              
  Branches     17011    17011              
===========================================
+ Hits         13946    14142     +196     
+ Misses        2824     2607     -217     
- Partials       241      262      +21     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@josecelano
Copy link
Member Author

ACK b53da07

@josecelano josecelano merged commit c744e38 into torrust:develop Mar 24, 2025
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Developer - Torrust Improvement Experience Quality & Assurance Relates to QA, Testing, and CI Testing Checking Torrust
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Overhaul stats: add E2E tests for the global metrics
1 participant