Skip to content

Conversation

@brettmc
Copy link
Contributor

@brettmc brettmc commented Jul 17, 2025

To fix up the big list of psalm+phan+deptrac complaints in our github actions, upgrade some of the tools to latest and address some issues. This fixes the issues complaining about repeated attributes and missing Override attribute, but also has some new things to complain about.
Notably:

  • add Override attributes as required (using rector and psalm to do the work - psalm picked up a bunch that rector missed)
  • add symfony/polyfill-php83 to provide Override for earlier PHP versions
  • add symfony/polyfill-php84 for good measure
  • be explicit about operations on int|float (if either operand is a float, cast both to float)
  • introduce some deptrac stubs to silence erroneous warnings

brettmc added 3 commits July 16, 2025 15:17
use rector (and psalm) to add Override attributes, and add symfony polyfill to
provide Override in earlier php versions
@codecov
Copy link

codecov bot commented Jul 17, 2025

Codecov Report

Attention: Patch coverage is 64.01734% with 249 lines in your changes missing coverage. Please review.

Project coverage is 68.77%. Comparing base (2421c64) to head (580d7dd).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/API/Metrics/Noop/NoopMeter.php 0.00% 8 Missing ⚠️
src/SDK/Common/Configuration/EnvResolver.php 0.00% 7 Missing ⚠️
src/API/Metrics/LateBindingMeter.php 25.00% 6 Missing ⚠️
...nfiguration/Internal/ComponentProviderRegistry.php 0.00% 5 Missing ⚠️
src/SDK/Common/Export/Stream/StreamTransport.php 0.00% 5 Missing ⚠️
src/Context/FiberBoundContextStorage.php 0.00% 4 Missing ⚠️
src/Contrib/Otlp/ProtobufSerializer.php 0.00% 4 Missing ⚠️
...K/Metrics/MetricExporter/ConsoleMetricExporter.php 0.00% 4 Missing ⚠️
src/SDK/Metrics/NoopMeterProvider.php 0.00% 4 Missing ⚠️
src/API/Baggage/BaggageBuilder.php 0.00% 3 Missing ⚠️
... and 121 more
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1666      +/-   ##
============================================
+ Coverage     68.70%   68.77%   +0.06%     
- Complexity     2854     2857       +3     
============================================
  Files           425      425              
  Lines          8699     8704       +5     
============================================
+ Hits           5977     5986       +9     
+ Misses         2722     2718       -4     
Flag Coverage Δ
8.1 68.38% <63.00%> (-0.03%) ⬇️
8.2 68.57% <63.87%> (-0.04%) ⬇️
8.3 68.57% <63.87%> (-0.02%) ⬇️
8.4 68.75% <64.01%> (+0.09%) ⬆️
8.5 68.57% <63.87%> (-0.02%) ⬇️

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

Files with missing lines Coverage Δ
src/API/Baggage/Propagation/BaggagePropagator.php 96.87% <100.00%> (ø)
src/API/Common/Time/SystemClock.php 100.00% <100.00%> (+40.00%) ⬆️
...rc/API/Configuration/Noop/NoopConfigProperties.php 100.00% <100.00%> (ø)
src/API/Configuration/Noop/NoopConfigProvider.php 100.00% <100.00%> (ø)
...tion/AutoInstrumentation/ConfigurationRegistry.php 100.00% <100.00%> (ø)
...ation/AutoInstrumentation/ExtensionHookManager.php 94.44% <100.00%> (ø)
src/API/Instrumentation/CachedInstrumentation.php 100.00% <ø> (ø)
src/API/Instrumentation/ConfigurationResolver.php 91.42% <100.00%> (ø)
src/API/Instrumentation/Configurator.php 100.00% <100.00%> (ø)
src/API/Logs/LateBindingLoggerProvider.php 100.00% <100.00%> (ø)
... and 268 more

... and 8 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 2421c64...580d7dd. Read the comment docs.

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

@brettmc brettmc changed the title upgrade psalm and fix complaints fixing CI complaints Jul 17, 2025
@brettmc brettmc marked this pull request as ready for review July 17, 2025 06:01
@brettmc brettmc requested a review from a team as a code owner July 17, 2025 06:01
@brettmc brettmc force-pushed the psalm-override-green branch from 38f3b92 to 580d7dd Compare July 22, 2025 00:45
@brettmc brettmc merged commit 2d90974 into open-telemetry:main Jul 22, 2025
15 checks passed
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