Skip to content

Use more signatures in OpenQA::Utils and simplify #6357

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

Merged
merged 4 commits into from
Apr 3, 2025

Conversation

okurz
Copy link
Member

@okurz okurz commented Apr 3, 2025

  • Use more signatures in OpenQA::Utils
  • Simplify Utils::get_url_short
  • Use signatures in Utils::get_url_short

Copy link

codecov bot commented Apr 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.05%. Comparing base (5cf58c3) to head (d6d412d).
Report is 30 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6357      +/-   ##
==========================================
- Coverage   99.05%   99.05%   -0.01%     
==========================================
  Files         399      399              
  Lines       40123    40117       -6     
==========================================
- Hits        39743    39737       -6     
  Misses        380      380              

☔ 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.

Comment on lines -559 to +556
my ($arg) = @_;
return ('', 0) unless ($arg =~ /_URL$/);
my $short;
my $do_extract = 0;
if ($arg =~ /_DECOMPRESS_URL$/) {
$short = substr($arg, 0, -15);
$do_extract = 1;
}
else {
$short = substr($arg, 0, -4);
}
return ($short, $do_extract);
return ('', 0) unless $arg =~ s/_URL$//;
return $arg =~ s/_DECOMPRESS$// ? ($arg, 1) : ($arg, 0);
Copy link
Member

Choose a reason for hiding this comment

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

🏆

@mergify mergify bot merged commit 2a304a7 into os-autoinst:master Apr 3, 2025
45 checks passed
@okurz okurz deleted the feature/simplify_utils branch April 3, 2025 16:14
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.

4 participants