Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-9753

Mercurial: Clone into a non-empty directory where pull -u would be expected

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Low Low
    • None
    • None
    • None
    • None

      COV-UNIT-JOB1 seems to:

      1. Pull to cache
      2. Clone to working dir . The directory exists, it's already checked out -> failure
      3. Remove working directory
      4. Clone to working dir again.

      Why doesn't it just pull to cache and then from cache? Maybe the EBS contains a faulty working dir?

      13-Sep-2011 05:53:17 	Build COV-UNIT-JOB1-13980 started building on agent Elastic Agent on i-62fc2702
      13-Sep-2011 05:53:18 	Build working directory is /media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1
      13-Sep-2011 05:53:18 	Cleaning directory /media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1
      13-Sep-2011 05:53:18 	Executing build COV-UNIT-JOB1-13980
      13-Sep-2011 05:53:18 	Running pre-build action: VCS Version Collector
      13-Sep-2011 05:53:18 	Running pre-build action: Pre Command Agent Runner
      13-Sep-2011 05:53:18 	running pre command on agent
      13-Sep-2011 05:53:18 	Running pre-build action: Sandbox Environment Setup
      13-Sep-2011 05:53:18 	Running pre-build action: Build Number Stamper
      13-Sep-2011 05:53:18 	Running pre-build action: Clover Grails PreBuild Action
      13-Sep-2011 05:53:18 	Running pre-build action: Repository Isolation Enabler Action
      13-Sep-2011 05:53:18 	Running pre-build action: Maven Settings Prebuild Action
      13-Sep-2011 05:53:19 	Starting task com.atlassian.bamboo.plugins.vcs:task.vcs.checkout Checkout Default Repository
      13-Sep-2011 05:53:19 	Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
      13-Sep-2011 05:53:19 	Updating source code to revision: 800f5662feb038424905126e2e741964a65653f8
      13-Sep-2011 05:53:19 	Obtaining remote repository to agent's cache directory '/media/ephemeral0/bamboo-working-dir/_hg-repositories-cache/9cee785ad1f048fab1b720cd5b450124e86f04e1'...
      13-Sep-2011 05:53:19 	Pulling from repository `https://mchai:***@code.atlassian.com/hg/bamboo' to directory '/media/ephemeral0/bamboo-working-dir/_hg-repositories-cache/9cee785ad1f048fab1b720cd5b450124e86f04e1'
      13-Sep-2011 05:53:20 	pulling from https://mchai:***@code.atlassian.com/hg/bamboo
      13-Sep-2011 05:53:20 	searching for changes
      13-Sep-2011 05:54:18 	adding changesets
      13-Sep-2011 05:54:18 	adding manifests
      13-Sep-2011 05:54:18 	adding file changes
      13-Sep-2011 05:54:18 	added 2702 changesets with 22773 changes to 2133 files
      13-Sep-2011 05:54:18 	(run 'hg update' to get a working copy)
      13-Sep-2011 05:54:19 	Copying repository from cache directory to source directory...
      13-Sep-2011 05:54:19 	Cloning repository `/media/ephemeral0/bamboo-working-dir/_hg-repositories-cache/9cee785ad1f048fab1b720cd5b450124e86f04e1' to directory '/media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1'
      13-Sep-2011 05:54:19 	Warning: failed to copy repository from cache directory (com.atlassian.bamboo.plugins.hg.HgCommandException: command [/usr/bin/hg, clone, --noupdate, --config, ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes, /media/ephemeral0/bamboo-working-dir/_hg-repositories-cache/9cee785ad1f048fab1b720cd5b450124e86f04e1, /media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1] failed. Working directory was `/media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1'. stderr: abort: destination '/media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1' is not empty stdout: ), trying to recover...
      13-Sep-2011 05:54:19 	Cleaned `/media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1' directory.
      13-Sep-2011 05:54:19 	Cloning repository `/media/ephemeral0/bamboo-working-dir/_hg-repositories-cache/9cee785ad1f048fab1b720cd5b450124e86f04e1' to directory '/media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1'
      13-Sep-2011 05:54:34 	Running update command again...
      13-Sep-2011 05:54:50 	5602 files updated, 0 files merged, 0 files removed, 0 files unresolved
      13-Sep-2011 05:54:50 	Recover finished.
      13-Sep-2011 05:54:50 	Updated source code to revision: 800f5662feb038424905126e2e741964a65653f8
      

            [BAM-9753] Mercurial: Clone into a non-empty directory where pull -u would be expected

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 1436516 ] New: JAC Bug Workflow v3 [ 3385265 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Symptom Severity Original: Minor [ 14432 ] New: Severity 3 - Minor [ 15832 ]
            Krystian Brazulewicz made changes -
            Resolution New: Obsolete [ 11 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            jonah (Inactive) made changes -
            Symptom Severity New: Minor [ 14432 ]
            Owen made changes -
            Workflow Original: Bamboo Workflow 2016 v1 [ 1418054 ] New: Bamboo Workflow 2016 v1 - Restricted [ 1436516 ]
            Marek Went (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2014 v2 [ 609115 ] New: Bamboo Workflow 2016 v1 [ 1418054 ]
            James Dumay made changes -
            Workflow Original: Bamboo Workflow 2014 [ 600217 ] New: Bamboo Workflow 2014 v2 [ 609115 ]
            James Dumay made changes -
            Workflow Original: Bamboo Workflow 2010 [ 344378 ] New: Bamboo Workflow 2014 [ 600217 ]
            Przemek Bruski made changes -
            Description Original: COV-UNIT-JOB1 seems to:
            # Pull to cache
            # Clone to working dir . The directory exists, it's already checked out -> failure
            # Remove working directory
            # Clone to working dir again.

            Why doesn't it just pull to cache and then from cache?

            {noformat}
            13-Sep-2011 05:53:17 Build COV-UNIT-JOB1-13980 started building on agent Elastic Agent on i-62fc2702
            13-Sep-2011 05:53:18 Build working directory is /media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1
            13-Sep-2011 05:53:18 Cleaning directory /media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1
            13-Sep-2011 05:53:18 Executing build COV-UNIT-JOB1-13980
            13-Sep-2011 05:53:18 Running pre-build action: VCS Version Collector
            13-Sep-2011 05:53:18 Running pre-build action: Pre Command Agent Runner
            13-Sep-2011 05:53:18 running pre command on agent
            13-Sep-2011 05:53:18 Running pre-build action: Sandbox Environment Setup
            13-Sep-2011 05:53:18 Running pre-build action: Build Number Stamper
            13-Sep-2011 05:53:18 Running pre-build action: Clover Grails PreBuild Action
            13-Sep-2011 05:53:18 Running pre-build action: Repository Isolation Enabler Action
            13-Sep-2011 05:53:18 Running pre-build action: Maven Settings Prebuild Action
            13-Sep-2011 05:53:19 Starting task com.atlassian.bamboo.plugins.vcs:task.vcs.checkout Checkout Default Repository
            13-Sep-2011 05:53:19 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
            13-Sep-2011 05:53:19 Updating source code to revision: 800f5662feb038424905126e2e741964a65653f8
            13-Sep-2011 05:53:19 Obtaining remote repository to agent's cache directory '/media/ephemeral0/bamboo-working-dir/_hg-repositories-cache/9cee785ad1f048fab1b720cd5b450124e86f04e1'...
            13-Sep-2011 05:53:19 Pulling from repository `https://mchai:***@code.atlassian.com/hg/bamboo' to directory '/media/ephemeral0/bamboo-working-dir/_hg-repositories-cache/9cee785ad1f048fab1b720cd5b450124e86f04e1'
            13-Sep-2011 05:53:20 pulling from https://mchai:***@code.atlassian.com/hg/bamboo
            13-Sep-2011 05:53:20 searching for changes
            13-Sep-2011 05:54:18 adding changesets
            13-Sep-2011 05:54:18 adding manifests
            13-Sep-2011 05:54:18 adding file changes
            13-Sep-2011 05:54:18 added 2702 changesets with 22773 changes to 2133 files
            13-Sep-2011 05:54:18 (run 'hg update' to get a working copy)
            13-Sep-2011 05:54:19 Copying repository from cache directory to source directory...
            13-Sep-2011 05:54:19 Cloning repository `/media/ephemeral0/bamboo-working-dir/_hg-repositories-cache/9cee785ad1f048fab1b720cd5b450124e86f04e1' to directory '/media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1'
            13-Sep-2011 05:54:19 Warning: failed to copy repository from cache directory (com.atlassian.bamboo.plugins.hg.HgCommandException: command [/usr/bin/hg, clone, --noupdate, --config, ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes, /media/ephemeral0/bamboo-working-dir/_hg-repositories-cache/9cee785ad1f048fab1b720cd5b450124e86f04e1, /media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1] failed. Working directory was `/media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1'. stderr: abort: destination '/media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1' is not empty stdout: ), trying to recover...
            13-Sep-2011 05:54:19 Cleaned `/media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1' directory.
            13-Sep-2011 05:54:19 Cloning repository `/media/ephemeral0/bamboo-working-dir/_hg-repositories-cache/9cee785ad1f048fab1b720cd5b450124e86f04e1' to directory '/media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1'
            13-Sep-2011 05:54:34 Running update command again...
            13-Sep-2011 05:54:50 5602 files updated, 0 files merged, 0 files removed, 0 files unresolved
            13-Sep-2011 05:54:50 Recover finished.
            13-Sep-2011 05:54:50 Updated source code to revision: 800f5662feb038424905126e2e741964a65653f8
            {noformat}
            New: COV-UNIT-JOB1 seems to:
            # Pull to cache
            # Clone to working dir . The directory exists, it's already checked out -> failure
            # Remove working directory
            # Clone to working dir again.

            Why doesn't it just pull to cache and then from cache? Maybe the EBS contains a faulty working dir?

            {noformat}
            13-Sep-2011 05:53:17 Build COV-UNIT-JOB1-13980 started building on agent Elastic Agent on i-62fc2702
            13-Sep-2011 05:53:18 Build working directory is /media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1
            13-Sep-2011 05:53:18 Cleaning directory /media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1
            13-Sep-2011 05:53:18 Executing build COV-UNIT-JOB1-13980
            13-Sep-2011 05:53:18 Running pre-build action: VCS Version Collector
            13-Sep-2011 05:53:18 Running pre-build action: Pre Command Agent Runner
            13-Sep-2011 05:53:18 running pre command on agent
            13-Sep-2011 05:53:18 Running pre-build action: Sandbox Environment Setup
            13-Sep-2011 05:53:18 Running pre-build action: Build Number Stamper
            13-Sep-2011 05:53:18 Running pre-build action: Clover Grails PreBuild Action
            13-Sep-2011 05:53:18 Running pre-build action: Repository Isolation Enabler Action
            13-Sep-2011 05:53:18 Running pre-build action: Maven Settings Prebuild Action
            13-Sep-2011 05:53:19 Starting task com.atlassian.bamboo.plugins.vcs:task.vcs.checkout Checkout Default Repository
            13-Sep-2011 05:53:19 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
            13-Sep-2011 05:53:19 Updating source code to revision: 800f5662feb038424905126e2e741964a65653f8
            13-Sep-2011 05:53:19 Obtaining remote repository to agent's cache directory '/media/ephemeral0/bamboo-working-dir/_hg-repositories-cache/9cee785ad1f048fab1b720cd5b450124e86f04e1'...
            13-Sep-2011 05:53:19 Pulling from repository `https://mchai:***@code.atlassian.com/hg/bamboo' to directory '/media/ephemeral0/bamboo-working-dir/_hg-repositories-cache/9cee785ad1f048fab1b720cd5b450124e86f04e1'
            13-Sep-2011 05:53:20 pulling from https://mchai:***@code.atlassian.com/hg/bamboo
            13-Sep-2011 05:53:20 searching for changes
            13-Sep-2011 05:54:18 adding changesets
            13-Sep-2011 05:54:18 adding manifests
            13-Sep-2011 05:54:18 adding file changes
            13-Sep-2011 05:54:18 added 2702 changesets with 22773 changes to 2133 files
            13-Sep-2011 05:54:18 (run 'hg update' to get a working copy)
            13-Sep-2011 05:54:19 Copying repository from cache directory to source directory...
            13-Sep-2011 05:54:19 Cloning repository `/media/ephemeral0/bamboo-working-dir/_hg-repositories-cache/9cee785ad1f048fab1b720cd5b450124e86f04e1' to directory '/media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1'
            13-Sep-2011 05:54:19 Warning: failed to copy repository from cache directory (com.atlassian.bamboo.plugins.hg.HgCommandException: command [/usr/bin/hg, clone, --noupdate, --config, ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes, /media/ephemeral0/bamboo-working-dir/_hg-repositories-cache/9cee785ad1f048fab1b720cd5b450124e86f04e1, /media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1] failed. Working directory was `/media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1'. stderr: abort: destination '/media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1' is not empty stdout: ), trying to recover...
            13-Sep-2011 05:54:19 Cleaned `/media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1' directory.
            13-Sep-2011 05:54:19 Cloning repository `/media/ephemeral0/bamboo-working-dir/_hg-repositories-cache/9cee785ad1f048fab1b720cd5b450124e86f04e1' to directory '/media/ephemeral0/bamboo-working-dir/COV-UNIT-JOB1'
            13-Sep-2011 05:54:34 Running update command again...
            13-Sep-2011 05:54:50 5602 files updated, 0 files merged, 0 files removed, 0 files unresolved
            13-Sep-2011 05:54:50 Recover finished.
            13-Sep-2011 05:54:50 Updated source code to revision: 800f5662feb038424905126e2e741964a65653f8
            {noformat}
            Przemek Bruski created issue -

              Unassigned Unassigned
              pbruski Przemek Bruski
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: