Check Packages for Installed Malicious Packages

Build: #68 failed

Job: Check For Known Malicious ManyLinux228 Python 3.8 failed

Build log

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

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