Tuleap Community Edition development and releases are no longer public. You have until September 30th to download packages and sources in Tuleap project. You can contact the team if you need further assistance.

    •  
      request #26732 Integration tests are broken due to the new Git safe.directory setting
    Infos
    #26732
    Thomas Gerbet (tgerbet)
    2022-04-28 14:32
    2022-04-28 13:10
    28266
    Details
    Integration tests are broken due to the new Git safe.directory setting

    Tests are broken due to the new setting introduced in Git 2.35.2 (request #26389) to fix security issues. This is caused by the way the tests handle a verification. This is not supposed to happen in production environment.

    tests_1         | Runtime:       PHP 8.0.18
    tests_1         | Configuration: /usr/share/tuleap/tests/integration/phpunit.xml
    tests_1         | Random Seed:   1651140658
    tests_1         | 
    tests_1         | ...............................................................  63 / 206 ( 30%)
    tests_1         | ............................................................... 126 / 206 ( 61%)
    tests_1         | ............................................................... 189 / 206 ( 91%)
    tests_1         | ............fatal: unsafe repository ('/tmp/tuleap_tests_66b5a4dd1f63c896c20e39bb163ddb74/gitolite/repositories/test_project/stable.git' is owned by someone else)
    tests_1         | To add an exception for this directory, call:
    tests_1         | 
    tests_1         | 	git config --global --add safe.directory /tmp/tuleap_tests_66b5a4dd1f63c896c20e39bb163ddb74/gitolite/repositories/test_project/stable.git
    tests_1         | F..fatal: unsafe repository ('/tmp/tuleap_tests_e72f76d3d5ff88637c7b739f8161d347/gitolite/repositories/test_project/stable.git' is owned by someone else)
    tests_1         | To add an exception for this directory, call:
    tests_1         | 
    tests_1         | 	git config --global --add safe.directory /tmp/tuleap_tests_e72f76d3d5ff88637c7b739f8161d347/gitolite/repositories/test_project/stable.git
    tests_1         | F.                                               206 / 206 (100%)
    tests_1         | 
    tests_1         | Time: 00:50.921, Memory: 32.00 MB
    tests_1         | 
    tests_1         | There were 2 failures:
    tests_1         | 
    tests_1         | 1) Tuleap\Git\GitXmlImporterTest::testItShouldImportTwoRepositoriesWithOneCommit
    tests_1         | Failed asserting that 0 matches expected 1.
    tests_1         | 
    tests_1         | /usr/share/tuleap/plugins/git/tests/integration/GitXmlImporterTest.php:346
    tests_1         | 
    tests_1         | 2) Tuleap\Git\GitXmlImporterTest::testItShouldImportOneRepositoryWithOneCommit
    tests_1         | Failed asserting that 0 matches expected 1.
    tests_1         | 
    tests_1         | /usr/share/tuleap/plugins/git/tests/integration/GitXmlImporterTest.php:330
    tests_1         | 
    tests_1         | FAILURES!
    tests_1         | Tests: 206, Assertions: 1138, Failures: 2.
    
    SCM/Git
    13.7
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2022-04-28
    Attachments
    Empty
    References

    Follow-ups