Skip to content

ci(profiling) add tests for exception profiling in ZTS builds#2562

Merged
realFlowControl merged 6 commits intomasterfrom
florian/exception-zts
Mar 14, 2024
Merged

ci(profiling) add tests for exception profiling in ZTS builds#2562
realFlowControl merged 6 commits intomasterfrom
florian/exception-zts

Conversation

@realFlowControl
Copy link
Copy Markdown
Member

@realFlowControl realFlowControl commented Mar 11, 2024

Description

This PR will add some tests for exception profiling in ZTS PHP builds:

  • prof correctness test
  • PHPT tests
  • rebuild Buster and CentOS images to have ext-parallel

PROF-8923 / #2070

Reviewer checklist

  • Test coverage seems ok.
  • Appropriate labels assigned.

@github-actions github-actions Bot added the profiling Relates to the Continuous Profiler label Mar 11, 2024
@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented Mar 11, 2024

Benchmarks

Benchmark execution time: 2024-03-12 09:59:03

Comparing candidate commit 79269a2 in PR branch florian/exception-zts with baseline commit 2e1ed12 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 18 metrics, 3 unstable metrics.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.08%. Comparing base (2e1ed12) to head (79269a2).
Report is 752 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2562      +/-   ##
============================================
+ Coverage     75.91%   77.08%   +1.16%     
  Complexity     2574     2574              
============================================
  Files           240      214      -26     
  Lines         27029    23057    -3972     
  Branches        976        0     -976     
============================================
- Hits          20519    17773    -2746     
+ Misses         5990     5284     -706     
+ Partials        520        0     -520     
Flag Coverage Δ
appsec-extension ?
tracer-extension 78.70% <ø> (ø)
tracer-php 75.08% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 26 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2e1ed12...79269a2. Read the comment docs.

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

@realFlowControl realFlowControl force-pushed the florian/exception-zts branch 13 times, most recently from 69c50a0 to 700b423 Compare March 11, 2024 13:21
@realFlowControl realFlowControl force-pushed the florian/exception-zts branch 3 times, most recently from c37d094 to cc5f0cf Compare March 11, 2024 16:48
@realFlowControl realFlowControl marked this pull request as ready for review March 12, 2024 08:11
@realFlowControl realFlowControl requested review from a team as code owners March 12, 2024 08:11
Comment on lines +111 to +120
let exception_profiling = REQUEST_LOCALS.with(|cell| {
cell.try_borrow()
.map(|locals| locals.system_settings().profiling_exception_enabled)
.unwrap_or(false)
});

if !exception_profiling {
return;
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

As of recently the INI is a true INI_SYSTEM, which means it can not be changed anymore (not per user dir or any other fancy things), which is also intended behaviour. With this change, we also do not show the "Exception profiling initialized .." message anymore in case it is disabled

@realFlowControl realFlowControl merged commit 70edd96 into master Mar 14, 2024
@realFlowControl realFlowControl deleted the florian/exception-zts branch March 14, 2024 09:22
@github-actions github-actions Bot added this to the 0.99.0 milestone Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci profiling Relates to the Continuous Profiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants