[Gitlab] PHPUnit tests fail after --verbose removed, and no scheduled pipelines exist

Created on 20 December 2024, about 2 months ago

Problem/Motivation

Currently there are not scheduled pipelines for the project which makes it tricky when contributing to know if your change has brought about failures, or if they are pre existing.

I believe the tests are currently failing due to the --verbose option being removed without replacement (https://github.com/sebastianbergmann/phpunit/issues/5647)

If one of the maintainers can please create a scheduled pipeline for the 2.1.x branch? See https://project.pages.drupalcode.org/gitlab_templates/info/common/ for steps

📌 Task
Status

Active

Version

2.1

Component

Code

Created by

🇳🇿New Zealand ericgsmith

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @ericgsmith
  • Pipeline finished with Failed
    about 2 months ago
    Total: 443s
    #374432
  • Pipeline finished with Failed
    about 2 months ago
    Total: 434s
    #374450
  • 🇳🇿New Zealand ericgsmith

    Made a start on getting everything green again

    CSpell - Most words looked project specific, the only ones that I wasn't sure on are there are a few UI labels using British spelling (e.g. Neighbourhood instead of Neighborhood) - it looks from a quick scan that this was withing the context of screens where the US spelling is presented (e.g Organization instead of Organisation) so I assume these are genuine misspellings. Not fixed given they impact UI - wanted clarification first.

    CSpell - organisation looks like it was used in the migration plugin - so its in the dictionary but perhaps should be just ignored in the plugin?

    PHPCS - minor fixes

    PHPStan - updated the baseline to ignore some deprecations related to things introduced in 10.3. Since 10.2 went out of security support this week, maybe we should just fix these now and have min 10.3 support? Will take maitainers direction here.

    PHUnit - version 10 needs dataprovider related methods to be static - made these changes.

    There are still 19 failures - 18 will be resolved by 📌 Drupal 11 compatibility fix for removed views default_argument_skip_url setting Active

    The final one is:

    18) Drupal\Tests\address\Unit\Plugin\Validation\Constraint\CountryConstraintValidatorTest::testValidate with data set #3 ('InvalidValue', 'The country %value is not valid.')
    Prophecy\Exception\Prophecy\MethodProphecyException: The method "addViolation" has a void return type, and so cannot return anything
    /builds/issue/address-3495167/vendor/phpspec/prophecy/src/Prophecy/Prophecy/MethodProphecy.php:256
    /builds/issue/address-3495167/tests/src/Unit/Plugin/Validation/Constraint/CountryConstraintValidatorTest.php:60
    /builds/issue/address-3495167/vendor/bin/phpunit:122

    I have to divert my attention to something else now but its a start.

    Setting to needs work for the above - but I think adding a scheduled pipeline is not blocked as if that is done now it will make it more visible that this is the current state. Cheers

  • 🇷🇸Serbia bojanz

    Thank you for your efforts!

    Since 10.2 went out of security support this week, maybe we should just fix these now and have min 10.3 support

    That sounds fine, let's do that.

    CSpell - Most words looked project specific, the only ones that I wasn't sure on are there are a few UI labels using British spelling (e.g. Neighbourhood instead of Neighborhood) - it looks from a quick scan that this was withing the context of screens where the US spelling is presented (e.g Organization instead of Organisation) so I assume these are genuine misspellings.

    Yes, those are genuine misspellings we should fix.

    I'll go ahead and commit 📌 Drupal 11 compatibility fix for removed views default_argument_skip_url setting Active now.

    • bojanz committed 2cbe0df5 on 2.x
      Issue #3495167 by ericgsmith: Remove --verbose flag as this is has been...
    • bojanz committed e7ca13ef on 2.1.x
      Issue #3495167 by ericgsmith: Remove --verbose flag as this is has been...
    • bojanz committed 0d9fb56b on 2.0.x
      Issue #3495167 by ericgsmith: Remove --verbose flag as this is has been...
  • 🇷🇸Serbia bojanz

    We now have a scheduled pipeline that runs daily.

    I moved the cspell/phpstan changes to 📌 Fix cspell and phpstan builds Active and committed them there.

    I'll fix the phpunit failure in a followup issue.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024