Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add coverity push script #165

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
c930fe3
Add coverity push script
paul-elliott-arm Apr 25, 2024
a1cd639
Add return types for all functions
paul-elliott-arm May 10, 2024
d98e931
Remove unnecessary function
paul-elliott-arm May 10, 2024
7270881
Change default build step to make -j$(nproc)
paul-elliott-arm May 10, 2024
4c5ddc2
Change no branch handling to none
paul-elliott-arm May 10, 2024
c73f1b9
Fix mispellings of trademark
paul-elliott-arm May 10, 2024
ee04afc
Make comments more PEP257 compliant
paul-elliott-arm May 10, 2024
3c882db
Remove temp file when downloading coverity tools
paul-elliott-arm May 10, 2024
82201a5
Rename misnamed query params
paul-elliott-arm May 13, 2024
5ae850c
Switch over to using subprocess.run()
paul-elliott-arm May 31, 2024
7e95fc9
Run pre-build step in a shell.
paul-elliott-arm May 31, 2024
2310f0c
Add building of generated files to prebuild step.
paul-elliott-arm May 31, 2024
707fe27
Improve temporary tar file creation logic
paul-elliott-arm May 31, 2024
7f56626
Add git submodule update call
paul-elliott-arm Nov 29, 2024
9cd43e5
Fix copypasta with tools directory
paul-elliott-arm Nov 29, 2024
2c8f84e
Fix resolvable error with backup dir
paul-elliott-arm Nov 29, 2024
0adbd0a
Support other operating systems for coverity tools
paul-elliott-arm Nov 29, 2024
55d1723
Add logging of config file backups
paul-elliott-arm Nov 29, 2024
4dc88db
Fix alphabetical ordering of argument options
paul-elliott-arm Nov 29, 2024
77b9f2b
Fix issue whereby config.h was left modified
paul-elliott-arm Nov 29, 2024
ca2d4b4
Fix copypasta
paul-elliott-arm Dec 6, 2024
fa1fbe2
Log both stdout and stderr on CalledProcessError
paul-elliott-arm Dec 6, 2024
c15b488
Add a --no-upload option
paul-elliott-arm Dec 6, 2024
2da0cef
Add recursive flag to submodule update
paul-elliott-arm Dec 19, 2024
dfb02ad
Backup tf-psa-crypto config file as well as mbedtls
paul-elliott-arm Jan 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change default build step to make -j$(nproc)
-j without a number means unlimited, and is likely
a bad idea on limited systems.

Signed-off-by: Paul Elliott <[email protected]>
paul-elliott-arm committed May 13, 2024
commit 7270881bfbcb297f992b22cf08e3a1dbf5e3bc4b
3 changes: 2 additions & 1 deletion coverity/push_coverity_scan.py
Original file line number Diff line number Diff line change
@@ -53,6 +53,7 @@
import hashlib
import logging
import sys
from multiprocessing import cpu_count

import requests

@@ -289,7 +290,7 @@ def main() -> int:
parser.add_argument('-p', '--pre-build-step', help='Command to run pre-build',
default='make clean')
parser.add_argument('-s', '--build-step', help='Command to run to build the project',
default='make -j')
default = 'make -j{}'.format(cpu_count()))
parser.add_argument('-t', '--token', help='Coverity Scan Token')
parser.add_argument('-l', '--log', help='File to log to')
parser.add_argument('-m', '--backupdir', help='Directory to backup tar files to')