Hello,
I am writing integration tests for my project, which are attached as an extra rule to my existing pipeline.
The pipeline installs the python project, runs unit-tests and makes the sphinx docs without a problem.
The new rule for the integration tests however, always fails without a reason when I try to make a C++ library that my project depends on.
The make command is pretty ordinary and there are no errors or warnings during the build, and the return value is 0.
The rule is marked as failed after the make command and no logs are left.
I cannot run anything after the make command to check what’s wrong.
Is it a known issue?
How to make sure that the rule will proceed even if there is a problematic command?
Thanks.
Can you please post your gitlab-ci.yml
file?
The yaml file:
Summary
---
stages:
- run-tests
- produce-docs
- run-validation
variables:
# GitLab specific variables
B2SYSFWPATH: "$(pwd)"
GITLAB_BELLE2_TOOLS_B2SETUP: "/cvmfs/belle.cern.ch/tools/b2setup"
BASF2_RELEASE: "prerelease-07-00-00d"
default:
image: ubuntu:20.04
tags:
- extagent8
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH == 'main' && $CI_COMMIT_TITLE =~ /Merge branch.*/
run-tests:
stage: run-tests
needs: []
script:
- python3 -m coverage run -m pytest --junitxml=test-reports/results.xml tests/ -s
- python3 -m coverage report syscorrfw/*/*.py syscorrfw/*.py
- python3 -m coverage xml syscorrfw/*/*.py syscorrfw/*.py
before_script:
# Install first the necessary packages (we need at least Python and Git for b2setup)
- apt-get update && $(dirname ${GITLAB_BELLE2_TOOLS_B2SETUP})/b2install-prepare --non-interactive --optionals
# This is quite annoying, but it's necessary for avoiding a failure of the pipeline
- git config --global --add safe.directory $(dirname ${GITLAB_BELLE2_TOOLS_B2SETUP})
# Now the important stuffs
- source ${GITLAB_BELLE2_TOOLS_B2SETUP}
- b2setup ${BASF2_RELEASE}
- export FLIT_ROOT_INSTALL=1
- pip3 install git+https://github.com/nils-braun/b2luigi
- pip3 install coverage
- pwd
- . setup_pypath.sh 1
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
when: always
paths:
- test-reports/results.xml
reports:
junit: test-reports/results.xml
coverage_report:
path: coverage.xml
coverage_format: cobertura
produce-docs:
stage: produce-docs
needs: [run-tests]
script:
- cd doc; make html; ls _build/html
before_script:
- apt-get update && $(dirname ${GITLAB_BELLE2_TOOLS_B2SETUP})/b2install-prepare --non-interactive --optionals
# This is quite annoying, but it's necessary for avoiding a failure of the pipeline
- git config --global --add safe.directory $(dirname ${GITLAB_BELLE2_TOOLS_B2SETUP})
# Now the important stuffs
- source ${GITLAB_BELLE2_TOOLS_B2SETUP}
- b2setup ${BASF2_RELEASE}
- pip3 install sphinx-book-theme
- pip3 install myst-nb
- . setup_pypath.sh 1
artifacts:
when: always
paths:
- doc/_build/html
run-validation:
stage: run-validation
needs: [run-tests]
script:
- python3 -m pytest --junitxml=test-reports/results.xml validation/test_* -s
before_script:
- apt-get update && $(dirname ${GITLAB_BELLE2_TOOLS_B2SETUP})/b2install-prepare --non-interactive --optionals
# This is quite annoying, but it's necessary for avoiding a failure of the pipeline
- git config --global --add safe.directory $(dirname ${GITLAB_BELLE2_TOOLS_B2SETUP})
# Now source the latest release
- source validation/latest_basf2_b2setup.sh
- . setup_pypath.sh 1
- yes | . setup_meerkat.sh;
- ls
# only:
# - schedules
artifacts:
when: always
paths:
- plots
And the job output:
Summary
e[0KRunning with gitlab-runner 16.5.0 (853330f9)e[0;m
e[0K on DESY bamboo-extagent8 for belle2/performance/systematic_corrections_framework 7xdnDPxA, system ID: s_3a87b8e10f54e[0;m
section_start:1698225435:prepare_executor
e[0Ke[0Ke[36;1mPreparing the "docker" executore[0;me[0;m
e[0KUsing Docker executor with image ubuntu:20.04 ...e[0;m
e[0KPulling docker image ubuntu:20.04 ...e[0;m
e[0KUsing docker image sha256:bf40b7bc7a11b43785755d3c5f23dee03b08e988b327a2f10b22d01d5dc5259d for ubuntu:20.04 with digest ubuntu@sha256:59f5f8b43ebcd48f0cad95b16570b17e67bcedf8455394011d0922fd4db668ad ...e[0;m
section_end:1698225437:prepare_executor
e[0Ksection_start:1698225437:prepare_script
e[0Ke[0Ke[36;1mPreparing environmente[0;me[0;m
Running on runner-7xdndpxa-project-6458-concurrent-0 via bamboo-extagent8.desy.de...
section_end:1698225437:prepare_script
e[0Ksection_start:1698225437:get_sources
e[0Ke[0Ke[36;1mGetting source from Git repositorye[0;me[0;m
e[32;1mFetching changes with git depth set to 20...e[0;m
Reinitialized existing Git repository in /builds/7xdnDPxA/0/belle2/performance/systematic_corrections_framework/.git/
e[32;1mChecking out 20c4c29a as detached HEAD (ref is refs/merge-requests/178/head)...e[0;m
Removing doc/_build/
Removing syscorrfw/__pycache__/
Removing syscorrfw/common/__pycache__/
Removing syscorrfw/luigi/__pycache__/
Removing syscorrfw/particleid/__pycache__/
Removing syscorrfw/pid_fit/__pycache__/
Removing syscorrfw_pkg_BELLEII.egg-info/
Removing test-reports/
e[32;1mSkipping Git submodules setupe[0;m
section_end:1698225438:get_sources
e[0Ksection_start:1698225438:download_artifacts
e[0Ke[0Ke[36;1mDownloading artifactse[0;me[0;m
e[32;1mDownloading artifacts for run-tests (300272)...e[0;m
Downloading artifacts from coordinator... ok e[0;m hoste[0;m=s3.desy.de ide[0;m=300272 responseStatuse[0;m=200 OK tokene[0;m=64_x6GCZ
section_end:1698225438:download_artifacts
e[0Ksection_start:1698225438:step_script
e[0Ke[0Ke[36;1mExecuting "step_script" stage of the job scripte[0;me[0;m
e[0KUsing docker image sha256:bf40b7bc7a11b43785755d3c5f23dee03b08e988b327a2f10b22d01d5dc5259d for ubuntu:20.04 with digest ubuntu@sha256:59f5f8b43ebcd48f0cad95b16570b17e67bcedf8455394011d0922fd4db668ad ...e[0;m
e[32;1m$ apt-get update && $(dirname ${GITLAB_BELLE2_TOOLS_B2SETUP})/b2install-prepare --non-interactive --optionalse[0;m
update-alternatives: using /usr/bin/xterm to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/x-terminal-emulator.1.gz because associated file /usr/share/man/man1/xterm.1.gz (of link group x-terminal-emulator) doesn't exist
update-alternatives: using /usr/bin/lxterm to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/x-terminal-emulator.1.gz because associated file /usr/share/man/man1/lxterm.1.gz (of link group x-terminal-emulator) doesn't exist
Setting up libgl-dev:amd64 (1.3.2-1~ubuntu0.20.04.2) ...
Setting up libegl-dev:amd64 (1.3.2-1~ubuntu0.20.04.2) ...
Setting up tk-dev:amd64 (8.6.9+1) ...
Setting up libglu1-mesa-dev:amd64 (9.0.1-1build1) ...
Setting up libgles-dev:amd64 (1.3.2-1~ubuntu0.20.04.2) ...
Setting up libglvnd-dev:amd64 (1.3.2-1~ubuntu0.20.04.2) ...
Setting up libglew-dev:amd64 (2.1.0-4) ...
Setting up libgl1-mesa-dev:amd64 (21.2.6-0ubuntu0.1~20.04.2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.12) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
All software that is required to build the software is now
installed on your system.
e[32;1m$ git config --global --add safe.directory $(dirname ${GITLAB_BELLE2_TOOLS_B2SETUP})e[0;m
e[32;1m$ source validation/latest_basf2_b2setup.she[0;m
Belle II software tools set up at: /cvmfs/belle.cern.ch/tools
WARNING: Your preferred character encoding is not UTF-8.
-------> It is recommended to enable UFT-8 encoding, see 'man locale' for instructions.
Environment setup for release: release-08-00-00
Central release directory : /cvmfs/belle.cern.ch/ubuntu2004/releases/release-08-00-00
e[32;1m$ . setup_pypath.sh 1e[0;m
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///builds/7xdnDPxA/0/belle2/performance/systematic_corrections_framework
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: uproot>=4.1.0 in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from syscorrfw-pkg-BELLEII==0.7.7) (4.1.9)
Collecting b2luigi>=0.7.6
Downloading b2luigi-0.10.1-py2.py3-none-any.whl (68 kB)
Requirement already satisfied: pyyaml in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from syscorrfw-pkg-BELLEII==0.7.7) (6.0)
Requirement already satisfied: matplotlib in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from syscorrfw-pkg-BELLEII==0.7.7) (3.5.1)
Requirement already satisfied: scipy in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from syscorrfw-pkg-BELLEII==0.7.7) (1.7.3)
Requirement already satisfied: tqdm in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from syscorrfw-pkg-BELLEII==0.7.7) (4.62.3)
Requirement already satisfied: seaborn in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from syscorrfw-pkg-BELLEII==0.7.7) (0.11.2)
Collecting pynverse
Downloading pynverse-0.1.4.6-py3-none-any.whl (6.3 kB)
Collecting parse>=1.8.4
Downloading parse-1.19.1-py2.py3-none-any.whl (18 kB)
Collecting retry2>=0.9.3
Downloading retry2-0.9.5-py2.py3-none-any.whl (6.0 kB)
Requirement already satisfied: jinja2 in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from b2luigi>=0.7.6->syscorrfw-pkg-BELLEII==0.7.7) (3.0.3)
Requirement already satisfied: cachetools>=2.1.0 in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from b2luigi>=0.7.6->syscorrfw-pkg-BELLEII==0.7.7) (4.2.4)
Collecting luigi>=3.0.2
Downloading luigi-3.4.0.tar.gz (1.2 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting colorama>=0.3.9
Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Requirement already satisfied: GitPython>=2.1.11 in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from b2luigi>=0.7.6->syscorrfw-pkg-BELLEII==0.7.7) (3.1.26)
Requirement already satisfied: setuptools in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from uproot>=4.1.0->syscorrfw-pkg-BELLEII==0.7.7) (60.5.0)
Requirement already satisfied: numpy in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from uproot>=4.1.0->syscorrfw-pkg-BELLEII==0.7.7) (1.20.1)
Requirement already satisfied: pillow>=6.2.0 in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from matplotlib->syscorrfw-pkg-BELLEII==0.7.7) (9.0.0)
Requirement already satisfied: fonttools>=4.22.0 in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from matplotlib->syscorrfw-pkg-BELLEII==0.7.7) (4.28.5)
Requirement already satisfied: pyparsing>=2.2.1 in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from matplotlib->syscorrfw-pkg-BELLEII==0.7.7) (3.0.6)
Requirement already satisfied: packaging>=20.0 in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from matplotlib->syscorrfw-pkg-BELLEII==0.7.7) (21.3)
Requirement already satisfied: kiwisolver>=1.0.1 in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from matplotlib->syscorrfw-pkg-BELLEII==0.7.7) (1.3.2)
Requirement already satisfied: cycler>=0.10 in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from matplotlib->syscorrfw-pkg-BELLEII==0.7.7) (0.11.0)
Requirement already satisfied: python-dateutil>=2.7 in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from matplotlib->syscorrfw-pkg-BELLEII==0.7.7) (2.8.2)
Requirement already satisfied: pandas>=0.23 in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from seaborn->syscorrfw-pkg-BELLEII==0.7.7) (1.3.5)
Requirement already satisfied: gitdb<5,>=4.0.1 in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from GitPython>=2.1.11->b2luigi>=0.7.6->syscorrfw-pkg-BELLEII==0.7.7) (4.0.9)
Collecting tenacity<9,>=8
Downloading tenacity-8.2.3-py3-none-any.whl (24 kB)
Collecting python-daemon
Downloading python_daemon-3.0.1-py3-none-any.whl (31 kB)
Requirement already satisfied: tornado<7,>=5.0 in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from luigi>=3.0.2->b2luigi>=0.7.6->syscorrfw-pkg-BELLEII==0.7.7) (6.1)
Requirement already satisfied: pytz>=2017.3 in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from pandas>=0.23->seaborn->syscorrfw-pkg-BELLEII==0.7.7) (2021.3)
Requirement already satisfied: six>=1.5 in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from python-dateutil>=2.7->matplotlib->syscorrfw-pkg-BELLEII==0.7.7) (1.15.0)
Requirement already satisfied: decorator>=3.4.2 in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from retry2>=0.9.3->b2luigi>=0.7.6->syscorrfw-pkg-BELLEII==0.7.7) (5.1.1)
Requirement already satisfied: MarkupSafe>=2.0 in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from jinja2->b2luigi>=0.7.6->syscorrfw-pkg-BELLEII==0.7.7) (2.0.1)
Requirement already satisfied: smmap<6,>=3.0.1 in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from gitdb<5,>=4.0.1->GitPython>=2.1.11->b2luigi>=0.7.6->syscorrfw-pkg-BELLEII==0.7.7) (5.0.0)
Collecting setuptools
Downloading setuptools-68.2.2-py3-none-any.whl (807 kB)
Collecting lockfile>=0.10
Downloading lockfile-0.12.2-py2.py3-none-any.whl (13 kB)
Requirement already satisfied: docutils in /cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/lib/python3.8/site-packages (from python-daemon->luigi>=3.0.2->b2luigi>=0.7.6->syscorrfw-pkg-BELLEII==0.7.7) (0.17.1)
Building wheels for collected packages: luigi
Building wheel for luigi (setup.py): started
Building wheel for luigi (setup.py): finished with status 'done'
Created wheel for luigi: filename=luigi-3.4.0-py3-none-any.whl size=1085408 sha256=c094a6f625e090cf8dc0b489861c11b6de70337611d5c73656b9f84c26657f96
Stored in directory: /root/.cache/pip/wheels/59/12/a8/3f89186172ab00e8068fc7f589abb28af77305d12c47a2552d
Successfully built luigi
Installing collected packages: setuptools, lockfile, tenacity, python-daemon, retry2, parse, luigi, colorama, pynverse, b2luigi, syscorrfw-pkg-BELLEII
WARNING: The scripts luigi, luigi-deps, luigi-deps-tree, luigi-grep and luigid are installed in '/root/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Running setup.py develop for syscorrfw-pkg-BELLEII
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Successfully installed b2luigi-0.10.1 colorama-0.4.6 lockfile-0.12.2 luigi-3.4.0 parse-1.19.1 pynverse-0.1.4.6 python-daemon-3.0.1 retry2-0.9.5 setuptools-68.2.2 syscorrfw-pkg-BELLEII tenacity-8.2.3
WARNING: You are using pip version 21.3.1; however, version 23.3.1 is available.
You should consider upgrading via the '/cvmfs/belle.cern.ch/ubuntu2004/externals/v02-00-01/Linux_x86_64/common/bin/python3.8 -m pip install --upgrade pip' command.
e[32;1m$ yes | . setup_meerkat.sh;e[0;m
This script will download and build the Meerkat library,
which is required for KDE fitting and data distribution sampling.
This library is not required for other actions of the framework,
such as PID transformation, performance studies, fixed weight computations, etc.
Installing Meerkat lib v1.3.0...
--2023-10-25 09:18:33-- https://meerkat.hepforge.org/downloads/?f=meerkat-1.3.0.tar.gz
Resolving meerkat.hepforge.org (meerkat.hepforge.org)... 129.234.186.186
Connecting to meerkat.hepforge.org (meerkat.hepforge.org)|129.234.186.186|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: 'meerkat-1.3.0.tar.gz'
0K .......... .......... .......... .......... .......... 440K
50K .......... .......... . 306M=0.1s
2023-10-25 09:18:34 (633 KB/s) - 'meerkat-1.3.0.tar.gz' saved [73699]
Making tmp/dependencies/BinnedDensity.d
Making tmp/dependencies/ParametricPhaseSpace.d
Making tmp/dependencies/KernelDensity.d
Making tmp/dependencies/TransposedFactorisedDensity.d
Making tmp/dependencies/OneDimPhaseSpace.d
Making tmp/dependencies/ExtendedDalitzPhaseSpace.d
Making tmp/dependencies/AbsPhaseSpace.d
Making tmp/dependencies/BinnedKernelDensity.d
Making tmp/dependencies/AbsDensity.d
Making tmp/dependencies/DalitzPhaseSpace.d
Making tmp/dependencies/ProductDensity.d
Making tmp/dependencies/PolynomialDensity.d
Making tmp/dependencies/Logger.d
Making tmp/dependencies/DivideDensity.d
Making tmp/dependencies/CombinedPhaseSpace.d
Making tmp/dependencies/IntersectionPhaseSpace.d
Making tmp/dependencies/AdaptiveKernelDensity.d
Making tmp/dependencies/RooMeerkatPdf.d
Making tmp/dependencies/SumDensity.d
Making tmp/dependencies/FactorisedDensity.d
Making tmp/dependencies/FormulaDensity.d
Making tmp/dependencies/HistogramDensity.d
Making tmp/dependencies/UniformDensity.d
Compiling src/UniformDensity.cpp
Compiling src/HistogramDensity.cpp
Compiling src/FormulaDensity.cpp
Compiling src/FactorisedDensity.cpp
Compiling src/SumDensity.cpp
Compiling src/RooMeerkatPdf.cpp
Compiling src/AdaptiveKernelDensity.cpp
Compiling src/IntersectionPhaseSpace.cpp
Compiling src/CombinedPhaseSpace.cpp
Compiling src/DivideDensity.cpp
Compiling src/Logger.cpp
Compiling src/PolynomialDensity.cpp
Compiling src/ProductDensity.cpp
Compiling src/DalitzPhaseSpace.cpp
Compiling src/AbsDensity.cpp
Compiling src/BinnedKernelDensity.cpp
Compiling src/AbsPhaseSpace.cpp
Compiling src/ExtendedDalitzPhaseSpace.cpp
Compiling src/OneDimPhaseSpace.cpp
Compiling src/TransposedFactorisedDensity.cpp
Compiling src/KernelDensity.cpp
Compiling src/ParametricPhaseSpace.cpp
Compiling src/BinnedDensity.cpp
Running rootcling
Compiling tmp/MeerkatCint.cc
Making lib/libMeerkat.so
section_end:1698225554:step_script
e[0Ksection_start:1698225554:upload_artifacts_on_failure
e[0Ke[0Ke[36;1mUploading artifacts for failed jobe[0;me[0;m
e[32;1mUploading artifacts...e[0;m
e[0;33mWARNING: plots: no matching files. Ensure that the artifact path is relative to the working directory (/builds/7xdnDPxA/0/belle2/performance/systematic_corrections_framework)e[0;m
e[31;1mERROR: No files to upload e[0;m
section_end:1698225555:upload_artifacts_on_failure
e[0Ksection_start:1698225555:cleanup_file_variables
e[0Ke[0Ke[36;1mCleaning up project directory and file based variablese[0;me[0;m
section_end:1698225555:cleanup_file_variables
e[0Ke[31;1mERROR: Job failed: exit code 1
e[0;m
It works without the meerkat script, but my tests will fail, obviously.
From the Job log it seems that this step failed, exit code was 1
This is my question, I don’t understand from where this return 1 comes from.
The logs of the make command indicate that it was successful, but the job suddenly fails after it.
I checked the return values locally and I haven’t found anything except 0.
I have tried to silence the return values, but maybe I haven’t done it properly.
Is there a commonly used method to avoid non-zero return values at gitlab pipelines?
What else can cause this behavior?
you can set CI_DEBUG_TRACE: "true"
variable in the job to get more verbose output of whats going on
run-validation:
variables:
CI_DEBUG_TRACE: "true"
...
Thanks. I have a debug logs from the job, but I don’t know what to look for. Reason is still not clear and there are no obvious errors or warnings it seems.
Could you please tell me what to look for there?
Also, using echo $?
I checked the return values of the commands in the failing script and they are all 0’s.
If you can’t determine the reason from job log, it’s time to look at the Runner. You are using your own Runner so you need to look there why the job fails.
Look into Runner logs, look into Docker logs.
Some more troubleshooting Troubleshooting GitLab Runner | GitLab