Skip to content

Something wrong with NUT fightwarn #24

Open
@jimklimov

Description

@jimklimov

Not seen in other builds, but with the last "properly" behaving NUT fightwarn build being https://ci.networkupstools.org/job/nut/job/nut/job/fightwarn/73/ in July 2023, the subsequent https://ci.networkupstools.org/job/nut/job/nut/job/fightwarn/74/ (and https://ci.networkupstools.org/job/nut/job/nut/job/fightwarn/75/ soon after) in September fail due to what seems to be not-resolving the MAKE variable in many build scenarios - on the same build hosts as the master/PR builds use, and this happens not in all parallel branches, e.g.:

First running a quiet parallel build...
/home/abuild/jenkins-nutci-centos-7-amd64/workspace/nut_nut_fightwarn@tmp/durable-e6cf4883/script.sh: line 7: -s: command not found

real	0m0.000s
user	0m0.000s
sys	0m0.000s
First attempt failed (127), retrying to log what did:
time: invalid option -- 'k'
Usage: time [-apvV] [-f format] [-o file] [--append] [--verbose]
       [--portability] [--format=format] [--output=file] [--version]
       [--help] command [arg...]

or

First running a quiet parallel build...
time: cannot run VERBOSE=0: No such file or directory
Command exited with non-zero status 127
0.00user 0.00system 0:00.00elapsed 77%CPU (0avgtext+0avgdata 964maxresident)k
0inputs+0outputs (0major+35minor)pagefaults 0swaps
First attempt failed (127), retrying to log what did:
time: invalid option -- 'k'
Try 'time --help' for more information.
CC:  => 
CXX:  => 
jenkins-ubuntu2110-amd64
Applied parsed envvars (compiler/tools-related adjustments, e.g. CONFIG_ENVVARS, STD(XX)ARG and (LD)BITSARG) for build scenario described as:
    Building with CLANG-13 STD=gnu11 STD=gnu++11 on x86_64 64-bit linux-ubuntu-impish platform for MATRIX_TAG="gnu11-gnu++11-clang-13-ubuntu-impish-x86_64-64bit" && (ARCH_BITS=64&&ARCH64=x86_64&&COMPILER=CLANG&&CLANGVER=13&&OS_DISTRO=ubuntu-impish&&OS_FAMILY=linux) && (nut-builder) && BITS=64&&CSTDVARIANT=gnu&&CSTDVERSION_c=11&&CSTDVERSION_cxx=11  &&  LANG=C && LC_ALL=C && TZ=UTC && CFLAGS=-Wall && CXXFLAGS=-Wall :: as part of slowBuild filter: Default autotools driven build with max warnings and varied C/C++ revisions (allowed to fail)

ARCH64='x86_64'
ARCH_BITS='64'
BITS='64'
BRANCH_NAME='fightwarn'
BUILD_DISPLAY_NAME='#75'
BUILD_ID='75'
BUILD_NUMBER='75'
BUILD_TAG='jenkins-nut-nut-fightwarn-75'
BUILD_URL='https://ci.networkupstools.org/job/nut/job/nut/job/fightwarn/75/'
CFLAGS='-Wall'
CI='true'
CI_SLOW_BUILD_FILTERNAME='Default autotools driven build with max warnings and varied C/C++ revisions (allowed to fail)'
CI_WRAP_SH='ssh -o SendEnv='"'"'*'"'"' "jenkins-ubuntu2110-amd64" /bin/sh -xe '
CLANGVER='13'
COMPILER='CLANG'
CSTDVARIANT='gnu'
CSTDVERSION_c='11'
CSTDVERSION_cxx='11'
CXXFLAGS='-Wall'
DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/399/bus'
EXECUTOR_NUMBER='1'
GIT_AUTHOR_DATE='2023-09-19 23:11:05 +00:00'
GIT_COMMITTER_DATE='2023-09-19 23:11:05 +00:00'
HOME='/home/abuild'
HUDSON_HOME='/var/lib/jenkins/home'
HUDSON_URL='https://ci.networkupstools.org/'
IFS=' 	
JENKINS_HOME='/var/lib/jenkins/home'
JENKINS_URL='https://ci.networkupstools.org/'
JOB_BASE_NAME='fightwarn'
JOB_DISPLAY_URL='https://ci.networkupstools.org/job/nut/job/nut/job/fightwarn/display/redirect'
JOB_NAME='nut/nut/fightwarn'
JOB_URL='https://ci.networkupstools.org/job/nut/job/nut/job/fightwarn/'
LANG='C'
LC_ALL='C'
LOGNAME='abuild'
MATRIX_TAG='gnu11-gnu++11-clang-13-ubuntu-impish-x86_64-64bit'
MOTD_SHOWN='pam'
NODE_LABELS='ARCH64=x86_64 ARCH_BITS=64 CLANGVER=13 COMPILER=CLANG COMPILER=GCC DYNAMATRIX_REFREPO_WORKSPACE_LOCKNAME=gitcache-dynamatrix:ci-debian DYNAMATRIX_UNSTASH_PREFERENCE=scm-ws:nut-ci-src GCCVER=11 MAKE=make NUT_BUILD_CAPS=cppcheck NUT_BUILD_CAPS=cppunit NUT_BUILD_CAPS=drivers:DMF=yes NUT_BUILD_CAPS=drivers:all NUT_BUILD_CAPS=nutconf=yes OS_DISTRO=ubuntu-impish OS_FAMILY=linux PYTHON=python2.7 PYTHON=python3.9 SHELL_PROGS=bash SHELL_PROGS=busybox SHELL_PROGS=csh SHELL_PROGS=dash SHELL_PROGS=ksh93 SHELL_PROGS=sh SHELL_PROGS=tcsh SHELL_PROGS=zsh ci-debian-altroot--jenkins-ubuntu2110-amd64+ssh nut-builder nut-builder:DMF nut-builder:alldrv'
NODE_NAME='ci-debian-altroot--jenkins-ubuntu2110-amd64+ssh'
OLDPWD='/home/abuild'
OPTIND='1'
OS_DISTRO='ubuntu-impish'
OS_FAMILY='linux'
PARMAKE_LA_LIMIT='8'
PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'
PPID='822749'
PS1='$ '
PS2='> '
PS4='+ '
PWD='/srv/libvirt/abuild/jenkins-nut-altroots/jenkins-ubuntu2110-amd64+ssh/workspace/nut_nut_fightwarn'
RUN_ARTIFACTS_DISPLAY_URL='https://ci.networkupstools.org/job/nut/job/nut/job/fightwarn/75/display/redirect?page=artifacts'
RUN_CHANGES_DISPLAY_URL='https://ci.networkupstools.org/job/nut/job/nut/job/fightwarn/75/display/redirect?page=changes'
RUN_DISPLAY_URL='https://ci.networkupstools.org/job/nut/job/nut/job/fightwarn/75/display/redirect'
RUN_TESTS_DISPLAY_URL='https://ci.networkupstools.org/job/nut/job/nut/job/fightwarn/75/display/redirect?page=tests'
SHELL='/bin/bash'
SHLVL='0'
SSH_CLIENT='10.0.3.1 38436 22'
SSH_CONNECTION='10.0.3.1 38436 10.0.3.122 22'
STAGE_NAME='Prep'
TZ='UTC'
USER='abuild'
WORKSPACE='/home/abuild/jenkins-nut-altroots/jenkins-ubuntu2110-amd64+ssh/workspace/nut_nut_fightwarn'
WORKSPACE_TMP='/home/abuild/jenkins-nut-altroots/jenkins-ubuntu2110-amd64+ssh/workspace/nut_nut_fightwarn@tmp'
XDG_RUNTIME_DIR='/run/user/399'
XDG_SESSION_CLASS='user'
XDG_SESSION_ID='193406'
XDG_SESSION_TYPE='tty'
_='/bin/sh'
Actual original envvars for build scenario described as:
    Building with CLANG-13 STD=gnu11 STD=gnu++11 on x86_64 64-bit linux-ubuntu-impish platform for MATRIX_TAG="gnu11-gnu++11-clang-13-ubuntu-impish-x86_64-64bit" && (ARCH_BITS=64&&ARCH64=x86_64&&COMPILER=CLANG&&CLANGVER=13&&OS_DISTRO=ubuntu-impish&&OS_FAMILY=linux) && (nut-builder) && BITS=64&&CSTDVARIANT=gnu&&CSTDVERSION_c=11&&CSTDVERSION_cxx=11  &&  LANG=C && LC_ALL=C && TZ=UTC && CFLAGS=-Wall && CXXFLAGS=-Wall :: as part of slowBuild filter: Default autotools driven build with max warnings and varied C/C++ revisions (allowed to fail)

ARCH64='x86_64'
ARCH_BITS='64'
BITS='64'
BRANCH_NAME='fightwarn'
BUILD_DISPLAY_NAME='#75'
BUILD_ID='75'
BUILD_NUMBER='75'
BUILD_TAG='jenkins-nut-nut-fightwarn-75'
BUILD_URL='https://ci.networkupstools.org/job/nut/job/nut/job/fightwarn/75/'
CFLAGS='-Wall'
CI='true'
CI_SLOW_BUILD_FILTERNAME='Default autotools driven build with max warnings and varied C/C++ revisions (allowed to fail)'
CI_WRAP_SH='ssh -o SendEnv='"'"'*'"'"' "jenkins-ubuntu2110-amd64" /bin/sh -xe '
CLANGVER='13'
COMPILER='CLANG'
CSTDVARIANT='gnu'
CSTDVERSION_c='11'
CSTDVERSION_cxx='11'
CXXFLAGS='-Wall'
DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/399/bus'
EXECUTOR_NUMBER='1'
GIT_AUTHOR_DATE='2023-09-19 23:11:05 +00:00'
GIT_COMMITTER_DATE='2023-09-19 23:11:05 +00:00'
HOME='/home/abuild'
HUDSON_HOME='/var/lib/jenkins/home'
HUDSON_URL='https://ci.networkupstools.org/'
IFS=' 	
JENKINS_HOME='/var/lib/jenkins/home'
JENKINS_URL='https://ci.networkupstools.org/'
JOB_BASE_NAME='fightwarn'
JOB_DISPLAY_URL='https://ci.networkupstools.org/job/nut/job/nut/job/fightwarn/display/redirect'
JOB_NAME='nut/nut/fightwarn'
JOB_URL='https://ci.networkupstools.org/job/nut/job/nut/job/fightwarn/'
LANG='C'
LC_ALL='C'
LOGNAME='abuild'
MATRIX_TAG='gnu11-gnu++11-clang-13-ubuntu-impish-x86_64-64bit'
MOTD_SHOWN='pam'
NODE_LABELS='ARCH64=x86_64 ARCH_BITS=64 CLANGVER=13 COMPILER=CLANG COMPILER=GCC DYNAMATRIX_REFREPO_WORKSPACE_LOCKNAME=gitcache-dynamatrix:ci-debian DYNAMATRIX_UNSTASH_PREFERENCE=scm-ws:nut-ci-src GCCVER=11 MAKE=make NUT_BUILD_CAPS=cppcheck NUT_BUILD_CAPS=cppunit NUT_BUILD_CAPS=drivers:DMF=yes NUT_BUILD_CAPS=drivers:all NUT_BUILD_CAPS=nutconf=yes OS_DISTRO=ubuntu-impish OS_FAMILY=linux PYTHON=python2.7 PYTHON=python3.9 SHELL_PROGS=bash SHELL_PROGS=busybox SHELL_PROGS=csh SHELL_PROGS=dash SHELL_PROGS=ksh93 SHELL_PROGS=sh SHELL_PROGS=tcsh SHELL_PROGS=zsh ci-debian-altroot--jenkins-ubuntu2110-amd64+ssh nut-builder nut-builder:DMF nut-builder:alldrv'
NODE_NAME='ci-debian-altroot--jenkins-ubuntu2110-amd64+ssh'
OLDPWD='/home/abuild'
OPTIND='1'
OS_DISTRO='ubuntu-impish'
OS_FAMILY='linux'
PARMAKE_LA_LIMIT='8'
PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'
PPID='822718'
PS1='$ '
PS2='> '
PS4='+ '
PWD='/srv/libvirt/abuild/jenkins-nut-altroots/jenkins-ubuntu2110-amd64+ssh/workspace/nut_nut_fightwarn'
RUN_ARTIFACTS_DISPLAY_URL='https://ci.networkupstools.org/job/nut/job/nut/job/fightwarn/75/display/redirect?page=artifacts'
RUN_CHANGES_DISPLAY_URL='https://ci.networkupstools.org/job/nut/job/nut/job/fightwarn/75/display/redirect?page=changes'
RUN_DISPLAY_URL='https://ci.networkupstools.org/job/nut/job/nut/job/fightwarn/75/display/redirect'
RUN_TESTS_DISPLAY_URL='https://ci.networkupstools.org/job/nut/job/nut/job/fightwarn/75/display/redirect?page=tests'
SHELL='/bin/bash'
SHLVL='0'
SSH_CLIENT='10.0.3.1 38434 22'
SSH_CONNECTION='10.0.3.1 38434 10.0.3.122 22'
STAGE_NAME='Prep'
TZ='UTC'
USER='abuild'
WORKSPACE='/home/abuild/jenkins-nut-altroots/jenkins-ubuntu2110-amd64+ssh/workspace/nut_nut_fightwarn'
WORKSPACE_TMP='/home/abuild/jenkins-nut-altroots/jenkins-ubuntu2110-amd64+ssh/workspace/nut_nut_fightwarn@tmp'
XDG_RUNTIME_DIR='/run/user/399'
XDG_SESSION_CLASS='user'
XDG_SESSION_ID='193404'
XDG_SESSION_TYPE='tty'
_='/bin/sh'

Notably no MAKE=... is provided here, so a fallback to make should have happened. Maybe this is linked with the recent effort to untangle parallel closure creations (using def and clones everywhere, to avoid changing of same values from different logic branches as was seen earlier with mix-ups of stage name groovy strings vs. contents of envvars passed to them; possibly some move from GStrings to be resolved immediately as Strings was not completed?..)

So far nothing apparently toxic was found in NUT Jenkinsfile-dynamatrix (nor ci_build.sh) changes between these builds.

  • 73:
Revision: 37befb64cf2c1050ee52e953b31f66131b3cdf50
Repository: https://github.com/networkupstools/jenkins-dynamatrix.git

Revision: 91396d05b72e0b97bf8a1f6a71212d3161c6340d
Repository: https://github.com/networkupstools/nut.git
  • 75:
Revision: 0d3add30edf6403f92188a750bb8827a3aaa237d
Repository: https://github.com/networkupstools/jenkins-dynamatrix.git

Revision: cb5e92cccdb30c10d11546a9a4bb92ca28831b9f
Repository: https://github.com/networkupstools/nut.git

Numbers were roughly equal:

  • 74: Not all went well: countStagesStarted:350 countStagesCompleted:350 countStagesFinishedOK:250 countStagesFinishedFailure:100
  • 75: Not all went well: countStagesStarted:350 countStagesCompleted:350 countStagesFinishedOK:251 countStagesFinishedFailure:99

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions