[petsc-dev] CI failure?

Satish Balay balay at mcs.anl.gov
Fri Sep 25 08:58:01 CDT 2020


This change is tripping the gcov script.

$ git diff origin/master... src/mat/impls/aij/mpi/mmaij.c
diff --git a/src/mat/impls/aij/mpi/mmaij.c b/src/mat/impls/aij/mpi/mmaij.c
index 79d770b69d..eaf0335e11 100644
--- a/src/mat/impls/aij/mpi/mmaij.c
+++ b/src/mat/impls/aij/mpi/mmaij.c
@@ -73,7 +73,6 @@ PetscErrorCode MatSetUpMultiply_MPIAIJ(Mat mat)
         indices[aj[B->i[i] + j]] = 1;
       }
     }
-
     /* form array of columns we need */
     ierr = PetscMalloc1(ec+1,&garray);CHKERRQ(ierr);
     ec   = 0;



The fix:


diff --git a/lib/petsc/bin/maint/gcov.py b/lib/petsc/bin/maint/gcov.py
index 14d9711072..44ad5ec953 100755
--- a/lib/petsc/bin/maint/gcov.py
+++ b/lib/petsc/bin/maint/gcov.py
@@ -270,6 +270,7 @@ def make_htmlpage(gcov_dir,petsc_dir,petsc_arch,tarballs,isCI):
          try:
              diff = str(subprocess.check_output('git blame origin/master.. '+file+' | grep -v "\^"', shell=True).decode(encoding='UTF-8',errors='replace')).split('\n')
          except:
+             diff = ''
              pass
          lines_not_tested = {}
          for line in diff:


Satish

On Fri, 25 Sep 2020, Matthew Knepley wrote:

> It looks like a parse of the gcov output failed:
> 
> Building html files for C
> 1579 <https://gitlab.com/petsc/petsc/-/jobs/757483850#L1579>Traceback (most
> recent call last):
> 1580 <https://gitlab.com/petsc/petsc/-/jobs/757483850#L1580> File
> "/scratch/svcpetsc/glci-builds/LysKu_HD/0/petsc/petsc/lib/petsc/bin/maint/gcov.py",
> line 403, in <module>
> 1581 <https://gitlab.com/petsc/petsc/-/jobs/757483850#L1581> main()
> 1582 <https://gitlab.com/petsc/petsc/-/jobs/757483850#L1582> File
> "/scratch/svcpetsc/glci-builds/LysKu_HD/0/petsc/petsc/lib/petsc/bin/maint/gcov.py",
> line 397, in main
> 1583 <https://gitlab.com/petsc/petsc/-/jobs/757483850#L1583>
> make_htmlpage(gcov_dir,petsc_dir,petsc_arch,tarballs,isCI)
> 1584 <https://gitlab.com/petsc/petsc/-/jobs/757483850#L1584> File
> "/scratch/svcpetsc/glci-builds/LysKu_HD/0/petsc/petsc/lib/petsc/bin/maint/gcov.py",
> line 278, in make_htmlpage
> 1585 <https://gitlab.com/petsc/petsc/-/jobs/757483850#L1585> c =
> int(line[line.rfind(' '):])
> 1586 <https://gitlab.com/petsc/petsc/-/jobs/757483850#L1586>ValueError:
> invalid literal for int() with base 10: '.'
> 1587 <https://gitlab.com/petsc/petsc/-/jobs/757483850#L1587>make[1]: ***
> [mergegcov] Error 1
> 1588 <https://gitlab.com/petsc/petsc/-/jobs/757483850#L1588>makefile:510:
> recipe for target 'mergegcov' failed
> 1589 <https://gitlab.com/petsc/petsc/-/jobs/757483850#L1589>GNUmakefile:17:
> recipe for target 'mergegcov' failed
> 1590 <https://gitlab.com/petsc/petsc/-/jobs/757483850#L1590>make: ***
> [mergegcov] Error 2
> 1592 <https://gitlab.com/petsc/petsc/-/jobs/757483850#L1592>
> <https://gitlab.com/petsc/petsc/-/jobs/757483850#L1592>
> <https://gitlab.com/petsc/petsc/-/jobs/757483850#L1592>
> 
>   Matt
> 
> On Fri, Sep 25, 2020 at 7:45 AM Mark Adams <mfadams at lbl.gov> wrote:
> 
> > I don't see the problem here:
> > https://gitlab.com/petsc/petsc/-/jobs/757483850
> >
> 
> 
> 



More information about the petsc-dev mailing list