Skip to content
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

fix(test): prevent error by upgrading suites #512

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

joerivanveen
Copy link
Contributor

@joerivanveen joerivanveen commented Nov 28, 2024

BREAKING CHANGE: Bumps minimal required PHP version to 8.2

INT-743

@joerivanveen joerivanveen force-pushed the fix/test/prevent-error-by-upgrading-suites branch from 6ce52e9 to 4965d42 Compare December 3, 2024 12:10
@joerivanveen joerivanveen marked this pull request as ready for review December 3, 2024 12:10
@joerivanveen joerivanveen requested a review from a team as a code owner December 3, 2024 12:10
Copy link

codecov bot commented Dec 3, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 58.91%. Comparing base (20b74e6) to head (4965d42).
Report is 43 commits behind head on main.

Files with missing lines Patch % Lines
src/Model/Fulfilment/OrderLine.php 0.00% 2 Missing ⚠️
src/Support/Collection.php 66.66% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #512      +/-   ##
============================================
- Coverage     59.04%   58.91%   -0.14%     
+ Complexity     1804     1636     -168     
============================================
  Files           110      112       +2     
  Lines          4283     4756     +473     
============================================
+ Hits           2529     2802     +273     
- Misses         1754     1954     +200     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@GravendeelJochem GravendeelJochem left a comment

Choose a reason for hiding this comment

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

Lijkt me wel goed dat @FreekVR hier ook naar kijkt.

composer.json Outdated
},
"require": {
"php": ">=7.1.0"
"php": ">=7.4.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Dit is een breaking change. In de README staat dat we momenteel PHP 7.1 ondersteunen. Voor klanten die < 7.4 hebben zou dan ineens de package niet meer installable of updateable zijn.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ja weet even niet waarom deze is aangepast, zal ik terugzetten.

@@ -33,7 +33,7 @@ jobs:
if: github.actor != 'dependabot[bot]' && steps.cache-coverage.outputs.cache-hit != 'true'
id: docker
with:
image: ghcr.io/myparcelnl/php-xd:7.2
image: ghcr.io/myparcelnl/php-xd:8.2
Copy link
Contributor

Choose a reason for hiding this comment

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

Eigenlijk was de testsuite al niet geweldig want

A) We testen niet op alle PHP versies
B) We testen alleen op PHP 7.2 en niet op 7.1 welke volgens onze composer & README wel zou moeten werken

Hoe dan ook skippen we hier nu zoveel PHP versies dat het onmogelijk is om te weten of de boel in PHP < 8.2 nog werkt. Ik zou dit dan ook niet willen veranderen naar iets anders dan wat we in onze composer.json als versie meegeven (zie mijn comment daarbij)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Het klopt dat die niet geweldig is, wat ook niet geweldig is is dat die api verzoeken doet met random data, waardoor sommige tests soms falen maar niet altijd. Ik denk niet dat ik in een story van 0 punten dat allemaal kan fixen, daarom koos ik voor een upgrade zodat alles weer werkte en de andere SDK stories door kunnen.

@@ -2,7 +2,7 @@ version: '3.9'

# volumes are not in common, because phpstorm doesn't understand it
x-common: &common
image: ghcr.io/myparcelnl/php-xd:7.2
image: ghcr.io/myparcelnl/php-xd:8.2
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto als mijn opmerking in de test workflow, alleen dan toepasbaar op lokale ontwikkeling impact.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

zelfde antwoord

@FreekVR FreekVR marked this pull request as draft December 6, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants