Problem/Motivation
PHP 8.4 require to upgrade open-telemetry packages
Steps to reproduce
See https://github.com/open-telemetry/opentelemetry-php/issues/1296
Proposed resolution
- Upgrade all:
composer update -W open-telemetry/* (details below).
- Disable the composer plugin for
tbachert/spi.
- Add configuration for
drupal/core-vendor-hardening.
- Deal with docs in #3478895: Document new Composer plugin tbachert/spi required by core-dev.
core$ ~/.config/composer/vendor/bin/composer-lock-diff --no-links
+----------------------------------+---------+---------+
| Dev Changes | From | To |
+----------------------------------+---------+---------+
| google/protobuf | v3.25.4 | v4.28.3 |
| open-telemetry/api | 1.0.3 | 1.1.1 |
| open-telemetry/context | 1.0.2 | 1.1.0 |
| open-telemetry/exporter-otlp | 1.0.4 | 1.1.0 |
| open-telemetry/gen-otlp-protobuf | 1.1.0 | 1.2.1 |
| open-telemetry/sdk | 1.0.8 | 1.1.2 |
| open-telemetry/sem-conv | 1.27.0 | 1.27.1 |
| php-http/discovery | 1.19.4 | 1.20.0 |
| brick/math | NEW | 0.12.1 |
| nyholm/psr7-server | NEW | 1.1.0 |
| ramsey/collection | NEW | 2.0.0 |
| ramsey/uuid | NEW | 4.7.6 |
| tbachert/spi | NEW | v1.0.2 |
+----------------------------------+---------+---------+
We do not need to enable the composer plugin according to this comment: #3478895-19: Document new Composer plugin tbachert/spi required by core-dev.
This MR adds several packages, but only tbachert/spi includes a test/ directory when installed with composer, so that is the only one added to drupal/core-vendor-hardening config. That will be redundant if https://github.com/Nevay/spi/pull/5 is merged.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Comments
Comment #4
andypostComment #5
smustgrave commentedCongrats @andypost on being the 10,000 MR.
Appears the 11.x needs a rebase.
Comment #6
andypostThanks, rebased as mink and SF7.2 are in first
Comment #7
smustgrave commentedRebase seems good.
Comment #8
benjifisherI notice that the MR for 10.4.x sorts the entries under
allow-plugins. +1 for that.In that section, both MRs add
"tbachert/spi": false. That seems like the right thing to do based on the comment #3478895-19: Document new Composer plugin tbachert/spi required by core-dev:I ran
composer update open-telemetry/*myself (using the latest 11.x) and got the same changes to the twocomposer.jsonfiles. +1I also tried
composer update -W open-telemetry/*. That also updatedgoogle/protobuf. I guess our practice is to update all PHP dependencies at once when preparing a new minor release, so there is no need to update that now.+1 for RTBC
Comment #9
andypost@benjifisher thanks! good idea! so I updated both MRs using
-Wand issue summaryand for 11.x
for 10.4.x
Comment #10
andypostFiled https://github.com/Nevay/spi/pull/5 and updated core's vendor hardening to clean-up tests
Comment #11
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #12
andypostbot checking against wrong branch
Comment #13
smustgrave commentedRebase seems good.
Comment #14
benjifisherI checked that
tbachert/spiis the only new package that includestests/when installed with composer, so that is the only one that needs an addition todrupal/core-vendor-hardening.I checked that there are no other packages that depend on
google/protobuf, so the major-version upgrade should not have any surprises:That is with the feature branch (or running
composer update -W open-telemetry/*myself). With 11.x, I get this, which explains the major-version upgrade:I added some more detail to the Proposed resolution in the issue summary.
+1 for RTBC
Comment #16
catchLooks like the 10.5 MR needs a rebase.
Comment #19
andypostCreated MR for 10.5.x using
composer update -W open-telemetry/*and backporting cspell and tests clean-upComment #22
catchThanks - committed/pushed the respective MRs to 10.5.x and 10.4.x too now.