#20319: patchbot failure sagedev when running inside docker
---------------------------------+----------------------------
   Reporter:  nthiery            |            Owner:
       Type:  defect             |           Status:  new
   Priority:  major              |        Milestone:  sage-7.2
  Component:  doctest framework  |         Keywords:
  Merged in:                     |          Authors:
  Reviewers:                     |  Report Upstream:  N/A
Work issues:                     |           Branch:
     Commit:                     |     Dependencies:
   Stopgaps:                     |
---------------------------------+----------------------------
 When running the patchbot inside the sagemath/sagemath-develop docker
 container of
 https://github.com/sagemath/docker-images, we get the following error:

 {{{
 sage -t --long src/sage/dev/sagedev.py
 **********************************************************************
 File "src/sage/dev/sagedev.py", line 902, in
 sage.dev.sagedev.SageDev.checkout_branch
 Failed example:
     dev.git.echo.stash('apply')
 Exception raised:
     Traceback (most recent call last):
       File "/opt/sage/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 496, in _run
         self.compile_and_execute(example, compiler, test.globs)
       File "/opt/sage/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 858, in compile_and_execute
         exec(compiled, globs)
       File "<doctest sage.dev.sagedev.SageDev.checkout_branch[18]>", line
 1, in <module>
         dev.git.echo.stash('apply')
       File "/opt/sage/local/lib/python2.7/site-
 packages/sage/dev/git_interface.py", line 1179, in meth
         return self(git_cmd, *args, **kwds)
       File "/opt/sage/local/lib/python2.7/site-
 packages/sage/dev/git_interface.py", line 218, in _execute
         raise GitError(exit_code, cmd, stdout, stderr)
     GitError: git returned with non-zero exit code (1) for "git -c
 [email protected] -c user.name=doctest stash apply".
     output to stderr: refs/stash@{0} is not a valid reference
 **********************************************************************
 File "src/sage/dev/sagedev.py", line 920, in
 sage.dev.sagedev.SageDev.checkout_branch
 Failed example:
     dev.checkout(branch="branch1")
 Expected:
     The following files in your working directory contain uncommitted
 changes:
     <BLANKLINE>
          tracked
     <BLANKLINE>
     Discard changes? [discard/Cancel/stash] discard
     On local branch "branch1" without associated ticket.
     <BLANKLINE>
     #  Use "sage --dev merge" to include another ticket/branch.
     #  Use "sage --dev commit" to save changes into a new commit.
 Got:
     On local branch "branch1" without associated ticket.
     <BLANKLINE>
     # Use "sage --dev merge" to include another ticket/branch.
     # Use "sage --dev commit" to save changes into a new commit.

 }}}

 To reproduce (not double checked; we get that error when building the
 sagemath-patchot docker image; but that should be equivalent):

 - install docker
 - `docker run -ti sagemath-develop bash`
 - install and run the patchbot as usual

 No idea at this point on why this fails in this context, but not
 otherwise.

--
Ticket URL: <http://trac.sagemath.org/ticket/20319>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to