Check Packages for Installed Malicious Packages

Build: #35 failed

Job: Check For Known Malicious ManyLinux228 Python 3.8 failed

Build log

The build generated 135 lines of output. Download or view full build log.

25-Apr-2024 19:59:56 Build CASA - Cmake Package Audit - Malicious - Check For Known Malicious ManyLinux228 Python 3.8 #35 (CASA-RECPA-CFKMMP3-35) is being prepared for building on agent cbt-el7-7.cv.nrao.edu, bamboo version: 9.2.13
25-Apr-2024 19:59:56 Remote agent on host cbt-el7-7.cv.nrao.edu
25-Apr-2024 19:59:56 Build working directory is /export/home/cbt-el7-7/bamboohome/xml-data/build-dir/CASA-RECPA-CFKMMP3
25-Apr-2024 19:59:56 Executing build CASA - Cmake Package Audit - Malicious - Check For Known Malicious ManyLinux228 Python 3.8 #35 (CASA-RECPA-CFKMMP3-35)
25-Apr-2024 19:59:56 Starting task 'Clean working directory task' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:cleanWorkingDirectoryTask'
25-Apr-2024 19:59:56 Cleaning working directory '/export/home/cbt-el7-7/bamboohome/xml-data/build-dir/CASA-RECPA-CFKMMP3'
25-Apr-2024 19:59:56 Finished task 'Clean working directory task' with result: Success
25-Apr-2024 19:59:56 Running pre-build action: Build Log Labeller Pre Build Action
25-Apr-2024 19:59:56 Running pre-build action: VCS Version Collector
25-Apr-2024 19:59:56 Build CASA - Cmake Package Audit - Malicious - Check For Known Malicious ManyLinux228 Python 3.8 #35 (CASA-RECPA-CFKMMP3-35) started building on agent 'cbt-el7-7.cv.nrao.edu' (Remote agent on host cbt-el7-7.cv.nrao.edu)
25-Apr-2024 19:59:56
Substituting variable: ${bamboo.planRepository.branchName} with master
25-Apr-2024 19:59:56 Starting task 'Check if this is a 6.4.1 ticket' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
25-Apr-2024 19:59:56
Beginning to execute external process for build 'CASA - Cmake Package Audit - Malicious - Check For Known Malicious ManyLinux228 Python 3.8 #35 (CASA-RECPA-CFKMMP3-35)'
... running command line:
/export/home/cbt-el7-7/bamboohome/temp/CASA-RECPA-CFKMMP3-35-ScriptBuildTask-252587844938203876.sh
... in: /export/home/cbt-el7-7/bamboohome/xml-data/build-dir/CASA-RECPA-CFKMMP3
25-Apr-2024 19:59:57   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
25-Apr-2024 19:59:57                                  Dload  Upload   Total   Spent    Left  Speed
25-Apr-2024 19:59:57
25-Apr-2024 19:59:57   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
25-Apr-2024 19:59:57 85 6002k   85 5109k    0     0  11.0M      0 --:--:-- --:--:-- --:--:-- 11.1M
25-Apr-2024 19:59:57 100 6002k  100 6002k    0     0  12.8M      0 --:--:-- --:--:-- --:--:-- 12.9M
25-Apr-2024 19:59:58 [5456] Failed to execute script 'atlutil' due to unhandled exception!
25-Apr-2024 19:59:58 Traceback (most recent call last):
25-Apr-2024 19:59:58   File "atlutil.py", line 200, in <module>
25-Apr-2024 19:59:58   File "atlutil.py", line 165, in has_fix_version
25-Apr-2024 19:59:58 KeyError: 'fields'
25-Apr-2024 19:59:58 Finished task 'Check if this is a 6.4.1 ticket' with result: Success
25-Apr-2024 19:59:58 Starting task 'Inject is_641' of type 'com.atlassian.bamboo.plugins.bamboo-variable-inject-plugin:inject'
25-Apr-2024 19:59:58 Injected variable bamboo.inject.is_641=False in LOCAL scope
25-Apr-2024 19:59:58 Finished task 'Inject is_641' with result: Success
25-Apr-2024 19:59:58 Starting task 'Download casalith' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:artifactdownloadertask'
25-Apr-2024 19:59:58 Preparing to download plan result CASA-CMBC-75 artifact: Required shared artifact Http Compression On : [ManyLinux228 Python 3.8 Tar 2], patterns: [*.xz] anchored at: [source/wheels]
25-Apr-2024 20:00:38 Artifact [ManyLinux228 Python 3.8 Tar 2] downloaded successfully in 40.67 s to dockershare/
25-Apr-2024 20:00:38 Finished task 'Download casalith' with result: Success
25-Apr-2024 20:00:38
Substituting variable: ${bamboo.working.directory} with /export/home/cbt-el7-7/bamboohome/xml-data/build-dir/CASA-RECPA-CFKMMP3
25-Apr-2024 20:00:38 Starting task 'Docker' of type 'com.atlassian.bamboo.plugins.bamboo-docker-plugin:task.docker.cli'
25-Apr-2024 20:00:38 Running image name (casa-docker.nrao.edu:5000/casa-test-rocky-8.5:3)
25-Apr-2024 20:00:38
Beginning to execute external process for build 'CASA - Cmake Package Audit - Malicious - Check For Known Malicious ManyLinux228 Python 3.8 #35 (CASA-RECPA-CFKMMP3-35)'
... running command line:
/bin/docker run --volume /opt/casa/data/:/opt/casa/data --volume /export/home/cbt-el7-7/bamboohome/xml-data/build-dir/CASA-RECPA-CFKMMP3/dockershare:/dockershare --detach --privileged --name test-container casa-docker.nrao.edu:5000/casa-test-rocky-8.5:3 tail -f /dev/null
... in: /export/home/cbt-el7-7/bamboohome/xml-data/build-dir/CASA-RECPA-CFKMMP3
25-Apr-2024 20:00:40 f484776c6cc26e498f968e6568ca58dd83a515c3229fef15b25de87ebd07a22c
25-Apr-2024 20:00:41 Finished task 'Docker' with result: Success
25-Apr-2024 20:00:41
Substituting variable: ${bamboo.planRepository.branchName} with master
25-Apr-2024 20:00:41 Starting task 'Run Audit' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
25-Apr-2024 20:00:41
Beginning to execute external process for build 'CASA - Cmake Package Audit - Malicious - Check For Known Malicious ManyLinux228 Python 3.8 #35 (CASA-RECPA-CFKMMP3-35)'
... running command line:
/export/home/cbt-el7-7/bamboohome/temp/CASA-RECPA-CFKMMP3-35-ScriptBuildTask-1925661243365602147.sh
... in: /export/home/cbt-el7-7/bamboohome/xml-data/build-dir/CASA-RECPA-CFKMMP3
25-Apr-2024 20:00:41 branch: master
25-Apr-2024 20:00:41 /export/home/cbt-el7-7/bamboohome/xml-data/build-dir/CASA-RECPA-CFKMMP3
25-Apr-2024 20:00:41 datapath=[ "/opt/casa/data/master","/opt/casa/data/casatestdata"]
25-Apr-2024 20:00:41 measurespath="/opt/casa/data/master"
25-Apr-2024 20:00:41 measures_auto_update=False
25-Apr-2024 20:00:41 data_auto_update=False
25-Apr-2024 20:00:42 total 1253400
25-Apr-2024 20:00:42 -rw-r--r-- 1 9285 15001 1283473436 Apr 26 00:00 casa-6.6.4-18-py3.8.el8.tar.xz
25-Apr-2024 20:00:43 Cloning into 'casa-build-utils'...
25-Apr-2024 20:00:43 Branch 'CAS-14256' set up to track remote branch 'CAS-14256' from 'origin'.
25-Apr-2024 20:00:43 Switched to a new branch 'CAS-14256'
25-Apr-2024 20:00:44 datapath=[ "/opt/casa/data/master","/opt/casa/data/casatestdata"]
25-Apr-2024 20:00:44 measurespath="/opt/casa/data/master"
25-Apr-2024 20:00:44 measures_auto_update=False
25-Apr-2024 20:00:44 data_auto_update=False
25-Apr-2024 20:00:46 Looking in indexes: https://casa-pip.nrao.edu:443/repository/pypi-group/simple
25-Apr-2024 20:00:46 Collecting requests
25-Apr-2024 20:00:46   Downloading https://casa-pip.nrao.edu:443/repository/pypi-group/packages/requests/2.23.0/requests-2.23.0-py2.py3-none-any.whl (58 kB)
25-Apr-2024 20:00:46      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.4/58.4 KB 6.6 MB/s eta 0:00:00
25-Apr-2024 20:00:46 Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
25-Apr-2024 20:00:46   Downloading https://casa-pip.nrao.edu:443/repository/pypi-group/packages/urllib3/1.25.9/urllib3-1.25.9-py2.py3-none-any.whl (126 kB)
25-Apr-2024 20:00:46      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 126.7/126.7 KB 2.8 MB/s eta 0:00:00
25-Apr-2024 20:00:46 Collecting chardet<4,>=3.0.2
25-Apr-2024 20:00:47   Downloading https://casa-pip.nrao.edu:443/repository/pypi-group/packages/chardet/3.0.4/chardet-3.0.4-py2.py3-none-any.whl (133 kB)
25-Apr-2024 20:00:47      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.4/133.4 KB 2.0 MB/s eta 0:00:00
25-Apr-2024 20:00:47 Collecting certifi>=2017.4.17
25-Apr-2024 20:00:47   Downloading https://casa-pip.nrao.edu:443/repository/pypi-group/packages/certifi/2020.12.5/certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
25-Apr-2024 20:00:47      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 147.5/147.5 KB 17.3 MB/s eta 0:00:00
25-Apr-2024 20:00:47 Collecting idna<3,>=2.5
25-Apr-2024 20:00:47   Downloading https://casa-pip.nrao.edu:443/repository/pypi-group/packages/idna/2.9/idna-2.9-py2.py3-none-any.whl (58 kB)
25-Apr-2024 20:00:47      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.4/58.4 KB 8.1 MB/s eta 0:00:00
25-Apr-2024 20:00:47 Installing collected packages: chardet, certifi, urllib3, idna, requests
25-Apr-2024 20:00:47 Successfully installed certifi-2020.12.5 chardet-3.0.4 idna-2.9 requests-2.23.0 urllib3-1.25.9
25-Apr-2024 20:00:47 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
25-Apr-2024 20:02:04 Namespace(package='/dockershare/casa-6.6.4-18-py3.8.el8.tar.xz', verbose=True, outputdir='/home/casatest/', work_dir=None, list_malicious=False, json_to_xml=None)
25-Apr-2024 20:02:04 Traceback (most recent call last):
25-Apr-2024 20:02:04 System:  Linux
25-Apr-2024 20:02:04   File "/home/casatest/casa-build-utils/test/malicious_pypi_pkgs_checker.py", line 282, in <module>
25-Apr-2024 20:02:04 Unpacking tarball: /dockershare/casa-6.6.4-18-py3.8.el8.tar.xz to /home/casatest/
25-Apr-2024 20:02:04     run(args.package, args.work_dir, args.outputdir, args.verbose)
25-Apr-2024 20:02:04 Outputdir contents:/home/casatest/
25-Apr-2024 20:02:04   File "/home/casatest/casa-build-utils/test/malicious_pypi_pkgs_checker.py", line 117, in run
25-Apr-2024 20:02:04 .casa
25-Apr-2024 20:02:04     py_minor_version = subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=False).decode("utf-8").strip()
25-Apr-2024 20:02:04 casa-6.6.4-18-py3.8.el8
25-Apr-2024 20:02:04   File "/usr/local/lib/python3.10/subprocess.py", line 420, in check_output
25-Apr-2024 20:02:04 installpath: casa-6.6.4-18-py3.8.el8
25-Apr-2024 20:02:04 casa-build-utils
25-Apr-2024 20:02:04 installpath: casa-build-utils
25-Apr-2024 20:02:04 .config
25-Apr-2024 20:02:04     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
25-Apr-2024 20:02:04   File "/usr/local/lib/python3.10/subprocess.py", line 501, in run
25-Apr-2024 20:02:04     with Popen(*popenargs, **kwargs) as process:
25-Apr-2024 20:02:04   File "/usr/local/lib/python3.10/subprocess.py", line 966, in __init__
25-Apr-2024 20:02:04     self._execute_child(args, executable, preexec_fn, close_fds,
25-Apr-2024 20:02:04   File "/usr/local/lib/python3.10/subprocess.py", line 1842, in _execute_child
25-Apr-2024 20:02:04     raise child_exception_type(errno_num, err_msg, err_filename)
25-Apr-2024 20:02:04 FileNotFoundError: [Errno 2] No such file or directory: '/home/casatest//casa-build-utils/bin/python3'
25-Apr-2024 20:02:05 mv: cannot stat '/home/casatest/casa-build-utils/test/output_malicious.xml': No such file or directory
25-Apr-2024 20:02:07 total 1253400
25-Apr-2024 20:02:07 -rw-r--r-- 1 casaci 15001 1283473436 Apr 26 00:00 casa-6.6.4-18-py3.8.el8.tar.xz
25-Apr-2024 20:02:07 Finished task 'Run Audit' with result: Success
25-Apr-2024 20:02:07 Starting task 'Parse test results' of type 'com.atlassian.bamboo.plugins.testresultparser:task.testresultparser.junit'
25-Apr-2024 20:02:07 Parsing test results under /export/home/cbt-el7-7/bamboohome/xml-data/build-dir/CASA-RECPA-CFKMMP3...
25-Apr-2024 20:02:07 Failing task since test cases were expected but none were found.
25-Apr-2024 20:02:07 Finished task 'Parse test results' with result: Failed
25-Apr-2024 20:02:07 Starting task 'Cleanup' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
25-Apr-2024 20:02:07
Beginning to execute external process for build 'CASA - Cmake Package Audit - Malicious - Check For Known Malicious ManyLinux228 Python 3.8 #35 (CASA-RECPA-CFKMMP3-35)'
... running command line:
/export/home/cbt-el7-7/bamboohome/temp/CASA-RECPA-CFKMMP3-35-ScriptBuildTask-8898718532664748668.sh
... in: /export/home/cbt-el7-7/bamboohome/xml-data/build-dir/CASA-RECPA-CFKMMP3
25-Apr-2024 20:02:07 Starting cleanup
25-Apr-2024 20:02:18 test-container
25-Apr-2024 20:02:19 test-container
25-Apr-2024 20:02:19 Cleanup complete
25-Apr-2024 20:02:19 Finished task 'Cleanup' with result: Success
25-Apr-2024 20:02:19 Running post build plugin 'Docker Container Cleanup'
25-Apr-2024 20:02:19
Beginning to execute external process for build 'CASA - Cmake Package Audit - Malicious - Check For Known Malicious ManyLinux228 Python 3.8 #35 (CASA-RECPA-CFKMMP3-35)'
... running command line:
/bin/docker rm -f test-container
... in: /export/home/cbt-el7-7/bamboohome/xml-data/build-dir/CASA-RECPA-CFKMMP3
25-Apr-2024 20:02:19 Error response from daemon: No such container: test-container
25-Apr-2024 20:02:19 Running post build plugin 'NCover Results Collector'
25-Apr-2024 20:02:19 Running post build plugin 'Build Results Label Collector'
25-Apr-2024 20:02:19 Running post build plugin 'Clover Results Collector'
25-Apr-2024 20:02:19 Running post build plugin 'npm Cache Cleanup'
25-Apr-2024 20:02:19 Running post build plugin 'Artifact Copier'
25-Apr-2024 20:02:19 Finalising the build...
25-Apr-2024 20:02:19 Stopping timer.
25-Apr-2024 20:02:19 Build CASA-RECPA-CFKMMP3-35 completed.
25-Apr-2024 20:02:20 Running on server: post build plugin 'Build Hanging Detection Configuration'
25-Apr-2024 20:02:20 Running on server: post build plugin 'NCover Results Collector'
25-Apr-2024 20:02:20 Running on server: post build plugin 'Build Labeller'
25-Apr-2024 20:02:20 Running on server: post build plugin 'Clover Delta Calculator'
25-Apr-2024 20:02:20 Running on server: post build plugin 'Maven Dependencies Postprocessor'
25-Apr-2024 20:02:20 All post build plugins have finished
25-Apr-2024 20:02:20 Generating build results summary...
25-Apr-2024 20:02:20 Saving build results to disk...
25-Apr-2024 20:02:20 Store variable context...
25-Apr-2024 20:02:20 Finished building CASA-RECPA-CFKMMP3-35.