#8427 Fix tests to work with latest git

v1.14.0
closed
None
General
nobody
2022-09-23
2022-04-13
No

https://ci-builds.apache.org/job/Allura/job/Allura-py3.7/34/testReport/ has a lot of git failures and this message on some of them I think is the root issue

Cmd('git') failed due to: exit code(128)
  cmdline: git archive --format=zip --prefix=test-src-git-HEAD/ HEAD
  stderr: 'fatal: unsafe repository ('/allura/ForgeGit/forgegit/tests/data/testgit.git' is owned by someone else)
To add an exception for this directory, call:

    git config --global --add safe.directory /allura/ForgeGit/forgegit/tests/data/testgit.git'

I suspect this is running on the very latest git version which fixes a security vulnerability related to directory ownership.

Discussion

  • Dave Brondsema

    Dave Brondsema - 2022-04-15

    Locally (mac), I upgraded git to latest and ForgeGit tests still pass. Maybe filesystem permissions are a little different on the Apache jenkins servers.

     
  • Dillon Walls - 2022-04-25

    I'm still not sure exactly what broke it -- but the solution seemed to be to chown the entire /allura directory as part of the jenkins run.

    my changes are on: dw/8427

     
  • Dave Brondsema

    Dave Brondsema - 2022-04-27
    • status: open --> closed
    • assigned_to: Dillon Walls
     
  • Dave Brondsema

    Dave Brondsema - 2022-09-23
    • Milestone: unreleased --> v1.14.0
     

Log in to post a comment.