Bot doesn't understand difference between project and repo checkout path

Bug #870803 reported by Paul Sokolovsky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Android Bot Review
Fix Released
Medium
Frans Gifford

Bug Description

https://android-build.linaro.org/jenkins/job/gerrit-bot_pandaboard/2/console :

+ eval cd platform/build '&&' git fetch http://review.android.git.linaro.org/p/platform/build refs/changes/57/657/1 '&&' git checkout FETCH_HEAD '&&' cd -
++ cd platform/build
/mnt/jenkins/workspace/gerrit-bot_pandaboard/build-tools/build-scripts/build-android: line 19: cd: platform/build: No such file or directory
Build step 'Execute shell' marked build as failure
Archiving artifacts
Finished: FAILURE

That's because checkout path differs from project path, and the mapping is specified in the manifest, for example "platform/build" is checked out to "build".

Related branches

Revision history for this message
Frans Gifford (fgiff) wrote :

The code that causes this is part of a workaround:

            # repo download doesn't work from android-build. Use a workaround.
            # It's probably something to do with the mirroring we do.
            #extra_config = "repo download %s %s/%s" % (
            # rev["project"],
            # rev["number"],
            # rev["currentPatchSet"]["number"])
            extra_config += "CONFIGURATION='%s && %s && %s && %s'" % (
                "cd %s" % (rev["project"]),
                "git fetch http://%s/p/%s %s" % (self.gc.review_host,
                                           rev["project"],
                                           rev["currentPatchSet"]["ref"]),
                "git checkout FETCH_HEAD",
                "cd -")

If we can determine what causes repo download to fail, we can fix this by taking out the workaround.

Changed in linaro-android-bot-review:
status: New → Confirmed
Frans Gifford (fgiff)
Changed in linaro-android-bot-review:
assignee: nobody → Frans Gifford (fgiff)
importance: Undecided → Medium
Frans Gifford (fgiff)
Changed in linaro-android-bot-review:
status: Confirmed → In Progress
Frans Gifford (fgiff)
Changed in linaro-android-bot-review:
status: In Progress → Fix Released
Frans Gifford (fgiff)
Changed in linaro-android-bot-review:
milestone: none → 11.11
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.