Skip to content

test: remove t/25-cache-service.t from unstable_tests.txt#7037

Merged
mergify[bot] merged 11 commits intoos-autoinst:masterfrom
okurz:fix/024_fix_unstables_part2_cache_service
Feb 27, 2026
Merged

test: remove t/25-cache-service.t from unstable_tests.txt#7037
mergify[bot] merged 11 commits intoos-autoinst:masterfrom
okurz:fix/024_fix_unstables_part2_cache_service

Conversation

@okurz
Copy link
Member

@okurz okurz commented Feb 23, 2026

Confirmed stable after comprehensive fixes and statistical verification.
The test was verified to pass consistently during an 8-hour loop run.

Related progress issue: https://progress.opensuse.org/issues/196295

@okurz okurz force-pushed the fix/024_fix_unstables_part2_cache_service branch from 7af3dc1 to 1cce074 Compare February 23, 2026 17:57
@okurz okurz force-pushed the fix/024_fix_unstables_part2_cache_service branch from 1cce074 to 15e0de7 Compare February 24, 2026 12:04
@codecov
Copy link

codecov bot commented Feb 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.68%. Comparing base (74a3965) to head (5184629).
⚠️ Report is 12 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7037   +/-   ##
=======================================
  Coverage   99.68%   99.68%           
=======================================
  Files         417      417           
  Lines       42913    42927   +14     
=======================================
+ Hits        42779    42793   +14     
  Misses        134      134           

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@okurz okurz force-pushed the fix/024_fix_unstables_part2_cache_service branch from 15e0de7 to 4282fe5 Compare February 24, 2026 18:45
@os-autoinst os-autoinst deleted a comment from mergify bot Feb 24, 2026
@okurz okurz force-pushed the fix/024_fix_unstables_part2_cache_service branch from 4282fe5 to ab3eda6 Compare February 24, 2026 19:22
@okurz
Copy link
Member Author

okurz commented Feb 25, 2026

@Martchus ready for your re-review

@okurz okurz force-pushed the fix/024_fix_unstables_part2_cache_service branch from ab3eda6 to 1d9f2d4 Compare February 25, 2026 16:00
okurz added 11 commits February 26, 2026 21:57
Avoid reaping unrelated subprocesses by only waiting for known relevant PIDs.
This prevents interfering with components using IPC::Run or backticks
which otherwise lose their exit status (0 = -1).
Switch to IPC::Run for rsync execution to capture both stdout and stderr.
Locally reset SIGCHLD to DEFAULT during execution to ensure IPC::Run
can correctly reap the subprocess and obtain its exit status.
Handle cases where status is lost by defaulting to 255.
- Refresh last_use on track_asset conflict.
- Use UPSERT in _update_asset to handle cases where assets were purged
  during download.
- Use random OPENQA_BASE_PORT to avoid clashes.
- Globally set OPENQA_TEST_WAIT_INTERVAL to 0.05s.
- Fix incorrect unlinks missing 'localhost' subdirectory.
- Wait for background workers to be ready in multiple-worker subtest.
- Use background worker for race subtest to reduce lock contention.
- Improve diagnostics and verification logic using status API.
- Increase initial service startup wait interval.
Confirmed stable after comprehensive fixes and statistical verification.
The test was verified to pass consistently during an 8-hour loop run.

Related progress issue: https://progress.opensuse.org/issues/196295
- Move `local $SIG{CHLD} = 'DEFAULT';` to
  `OpenQA::Utils::run_cmd_with_log_return_error`.  This ensures that
  IPC::Run can correctly reap child processes and obtain their exit
  status, even in environments with custom signal handlers (e.g.
  Minion).
Align SQL query definitions in OpenQA::CacheService::Model::Cache with
a consistent q{} style as suggested in PR feedback. This improves
readability and avoids accidental variable interpolation by using
literal string delimiters.

Affected methods:
- _perform_integrity_check
- track_asset
- metrics
- _update_metric
- _increase_metric
- _update_asset_last_use
@okurz okurz force-pushed the fix/024_fix_unstables_part2_cache_service branch from 1d9f2d4 to 5184629 Compare February 26, 2026 20:58
@mergify mergify bot merged commit 36d12aa into os-autoinst:master Feb 27, 2026
51 checks passed
@okurz okurz deleted the fix/024_fix_unstables_part2_cache_service branch February 27, 2026 08:26
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.

3 participants