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

Set upload data size explicitly #69

Closed
wants to merge 1,288 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1288 commits
Select commit Hold shift + click to select a range
2cb76c4
Merge pull request #4 from cajun-rat/fsck-ready
pattivacek Jun 16, 2021
a1f4b7e
Disable linting to fix build
cajun-rat Jul 9, 2021
556fb31
Merge pull request #5 from cajun-rat/fix-lint-error
pattivacek Jul 10, 2021
a19f3ca
Bump 'expires' in test code to the future
cajun-rat Jul 9, 2021
f6eb62d
Merge pull request #6 from cajun-rat/expires-test-failure
pattivacek Jul 12, 2021
7d2aa27
Use default credentials.zip to fix more tests
cajun-rat Jul 12, 2021
a882b9f
Add a missing 'explicit' ctor
cajun-rat Jul 12, 2021
819c82c
Merge pull request #7 from cajun-rat/tidy/tests
pattivacek Jul 12, 2021
7343842
Make CommandQueue non-movable and non-copyable
cajun-rat Jul 20, 2021
39ad2b9
Speed up the entire test run by reducing timeouts in t_uptane_network
cajun-rat Jul 20, 2021
b214787
Merge pull request #10 from cajun-rat/faster-tests
pattivacek Jul 21, 2021
7b07197
Merge pull request #9 from cajun-rat/command-queue-non-copyable
pattivacek Jul 21, 2021
9de0698
Bump GoogleTest to release-1.11.0
cajun-rat Aug 2, 2021
e78f1a1
Merge pull request #11 from cajun-rat/bump-google-test
pattivacek Aug 3, 2021
28b2701
aktualizr-info: Check for Image Root metadata.
pattivacek Aug 6, 2021
9d15b0b
Merge pull request #12 from uptane/fix/aktualizr-info-no-director-met…
pattivacek Aug 7, 2021
2833f01
Improve some error messages.
pattivacek Aug 10, 2021
20281ec
Fix docker namespace used in github CI.
pattivacek Aug 11, 2021
0dd570d
Update some URLs to point at the Uptane namespace.
pattivacek Aug 13, 2021
981fe30
Merge pull request #14 from uptane/docker-ci-namespace
pattivacek Aug 27, 2021
55e5658
Fix some typos, remove an unused variable.
pattivacek Sep 2, 2021
9091371
aktualizr-secondary: Retry downloads just like the Primary.
pattivacek Sep 2, 2021
6946273
Merge pull request #15 from uptane/secondary-download-retries
pattivacek Sep 2, 2021
08928e2
Remove an unused cmake option.
pattivacek Sep 2, 2021
4e24ad3
Forward-declare an ASN.1 struct to simplify include dependencies.
pattivacek Sep 2, 2021
6985266
Use properly prefixed install destinations.
pattivacek Sep 2, 2021
6075c29
Add pkgconfig for libaktualizr.
pattivacek Sep 2, 2021
5575d67
Merge pull request #16 from uptane/install-cleanup
pattivacek Sep 3, 2021
1aa1fe4
Fix broken links in aktualizr docs (#1783)
ystefinko Sep 28, 2021
9ea33f2
Fix other 404 error for broken URLs in docs
ystefinko Sep 28, 2021
7814384
Merge pull request #17 from uptane/fix-links
pattivacek Sep 28, 2021
209676c
Fix 503 error in atomic URl (#1790)
ystefinko Sep 29, 2021
215a368
Merge pull request #18 from uptane/docs/more-404s
pattivacek Sep 29, 2021
c63cf98
Minor header cleanup.
pattivacek Oct 1, 2021
524179b
Merge pull request #19 from uptane/header-cleanup
pattivacek Oct 1, 2021
3b227a7
Add stricter testing to reregistration tests
cajun-rat Oct 3, 2021
0bf28b5
Add test cases to cover when it shouldn't re-register
cajun-rat Oct 3, 2021
7e78cc0
Add checks for the number of time device_registration is called
cajun-rat Oct 3, 2021
b7c8369
Merge pull request #20 from cajun-rat/clarify-registration-requirements
pattivacek Oct 4, 2021
33c27ab
[FIO toup] sig_handler: prefer atomic_uint instead of atomic<bool>
ricardosalveti Oct 29, 2019
c9847a3
[FIO toup] sig_handler: fix build warning
ldts Mar 15, 2021
e935610
[fio toup] support additional headers in 'download'
mike-sul May 25, 2020
2b321ff
httpclient: add support for unix sockets
ldts Mar 25, 2021
6a5d217
bootloader: allow client to provide the bootloader
ldts Apr 19, 2021
a3669ca
bootloader: remove include dependency with unique_ptr
ldts Apr 20, 2021
ae8c67b
[fio extras] pkcs11: allow external p11 engine
mike-sul May 6, 2021
cec1a14
[fio extras] pacman: extra headers for repo pull requests
mike-sul Aug 18, 2021
49e5596
[fio extras] pacman: support alternative remote
mike-sul Aug 18, 2021
97aeaf6
[fio extras] pacman: assert target type prior to pull
mike-sul Aug 30, 2021
99948e6
sig_handler: Improve signal checking logic.
pattivacek Oct 4, 2021
6e55066
OSTree extra headers: fix clang-tidy complaint about emptiness check.
pattivacek Oct 4, 2021
fc65037
Tidy up CMakeLists.txt
cajun-rat Oct 4, 2021
a215db1
Merge pull request #21 from uptane/foundries-patches
pattivacek Oct 5, 2021
6b35866
Merge pull request #22 from cajun-rat/tidy-cmake
pattivacek Oct 5, 2021
d13395f
Add nop11 test from gitlab CI to github actions.
pattivacek Oct 6, 2021
bbbc55d
Merge pull request #24 from uptane/more-tests-in-ci
pattivacek Oct 12, 2021
399bbd5
Remove [storage] type = "sqlite" everywhere
cajun-rat Oct 11, 2021
67710e8
Refactor initialization process
cajun-rat Oct 17, 2021
b186f4f
Merge pull request #25 from cajun-rat/init-refactor
pattivacek Oct 19, 2021
d7ce27c
aktualizr-secondary: Refactor storage usage.
pattivacek Oct 5, 2021
219e5f0
Support TUF-only verification in aktualizr-secondary.
pattivacek Oct 1, 2021
1b676ed
Refactor SecondaryTestNegative to also cover TUF cases.
pattivacek Oct 5, 2021
9b9da3f
Test TUF Target version comparison logic.
pattivacek Oct 6, 2021
8773c08
Fix subtle bugs around metadata loading.
pattivacek Oct 7, 2021
c5fdd7a
Support TUF-only IP/POSIX Secondaries on the Primary side.
pattivacek Oct 7, 2021
0d36179
Parameterize more tests to cover TUF verification.
pattivacek Oct 8, 2021
4c7cf70
Add a missing test case and improve comments.
pattivacek Oct 11, 2021
bcbcb76
ipsecondary_test.py: Add TUF test cases.
pattivacek Oct 11, 2021
af5a200
ipsecondary_test.py: Separate OSTree tests into another file.
pattivacek Oct 11, 2021
62bbc83
Allow case-insensitivity for VerificationType.
pattivacek Oct 19, 2021
4fb05e6
Merge pull request #23 from uptane/secondary-tuf
pattivacek Oct 20, 2021
125d03b
Explictly use python3 in tests
cajun-rat Oct 24, 2021
a68aaed
Reduce size of SotaUptaneClient's public interface
cajun-rat Oct 24, 2021
4e80749
Merge pull request #27 from cajun-rat/python3
pattivacek Oct 25, 2021
c289e77
Fix URL of the tuf test vectors submodule
mike-sul Oct 26, 2021
f3be4c9
Merge pull request #30 from mike-sul/fix/tuf-submodule-url
pattivacek Oct 26, 2021
5bfb9b3
Unify on ToString.
pattivacek Oct 29, 2021
05823ca
Fix type that apparently doesn't matter.
pattivacek Oct 29, 2021
6342974
metadata_fetch_test: Update to use uptane_generator_lib.
pattivacek Oct 27, 2021
27ff078
Merge pull request #31 from uptane/cleanup-ToString
pattivacek Nov 1, 2021
60e15a9
Merge pull request #28 from cajun-rat/offline-sota-uptane-client-stan…
pattivacek Nov 1, 2021
4becf00
uptane_generator repo_test: verify signatures in all tests.
pattivacek Oct 27, 2021
de89102
uptane_generator: Add Root rotation including tests.
pattivacek Oct 27, 2021
8d3ea17
ManagedSecondary: support Root rotation.
pattivacek Oct 27, 2021
b04b732
uptane_generator: Add custom_version option to image command.
pattivacek Nov 1, 2021
f974c34
POSIX Secondary Root rotation implementation, with tests.
pattivacek Oct 29, 2021
c97a45e
Make Aktualizr explicitly non-moveable
cajun-rat Nov 1, 2021
6032500
Set custom hardware information via an explicit call
cajun-rat Nov 1, 2021
fb0163c
Merge pull request #33 from cajun-rat/custom_hwinfo
pattivacek Nov 2, 2021
b9fa8c7
Merge pull request #32 from uptane/secondary-rotate-root
pattivacek Nov 2, 2021
a1cf2f9
CMakeLists: Remove deprecation warning for jsoncpp
doanac Nov 2, 2021
48ba984
Merge pull request #34 from doanac/jsoncpp-warning
pattivacek Nov 2, 2021
3f1cd73
Move aktualizr-secondary's Metadata class to Uptane namespace.
pattivacek Nov 2, 2021
c0ba9aa
aktualizr_secondary: Don't store Root metadata if verification fails.
pattivacek Nov 2, 2021
833814b
ManagedSecondary: implement proper metadata verification.
pattivacek Nov 2, 2021
f0db5d6
delegation_test: Remove targets for the Secondary.
pattivacek Nov 2, 2021
4a7e37e
Bump tuf-test-vectors to latest.
pattivacek Nov 2, 2021
d795e14
Install libaktualizr headers correctly when included as a submodule.
pattivacek Sep 21, 2021
fb5eec7
Merge pull request #36 from uptane/install-fix
pattivacek Nov 4, 2021
70478f6
Merge pull request #35 from uptane/virtual-secondary-verification
pattivacek Nov 5, 2021
9830e12
ostreemanager: Improve logging of loading sysroot.
pattivacek Oct 18, 2021
fe35051
Add booted enum to ostree config to support easier testing.
pattivacek Oct 14, 2021
b6bb0f5
Merge pull request #26 from uptane/ostree-non-booted
pattivacek Nov 5, 2021
bbd19c3
Don't repeat default ctors
cajun-rat Nov 14, 2021
30385d6
Remove un-implemented sslCtxFunction declaration
cajun-rat Nov 14, 2021
d1b1d0a
Move VirtualSecondaryConfig::Type to top
cajun-rat Nov 14, 2021
c5d64d1
Explicitly override linter
cajun-rat Nov 14, 2021
4d047cc
Make sota tools dependent just on libostree
mike-sul Nov 17, 2021
fd779e6
Merge pull request #39 from uptane/sota-tools-build-config
pattivacek Nov 22, 2021
8946fe1
Merge pull request #37 from cajun-rat/clang-tidy-fixes
pattivacek Nov 22, 2021
6526414
Minor cleanup stuff.
pattivacek Nov 15, 2021
1866be1
Fix function signatures for deleted functions.
pattivacek Nov 15, 2021
912274d
Stop skipping headers with clang-tidy.
pattivacek Nov 15, 2021
f6f3342
Fixes from running clang-tidy on the headers.
pattivacek Oct 20, 2021
fc26069
Guard test with BUILD_SOTA_TOOLS appropriately.
pattivacek Nov 16, 2021
00dd74f
Fix a clang-tidy issue and specify some others.
pattivacek Nov 22, 2021
9b9cef3
Merge pull request #38 from uptane/clang-tidy-headers
pattivacek Nov 24, 2021
405665d
Fixes from clang-tidy-11. Mostly false positives.
pattivacek Nov 22, 2021
9e9ac7d
Remove NOLINT from a few lines that apparently didn't need it.
pattivacek Nov 22, 2021
04487e3
Fixes for clang-tidy-12. All false positives.
pattivacek Nov 22, 2021
92316f0
Merge pull request #41 from uptane/clang-tidy-11
pattivacek Nov 24, 2021
85c8cb9
Fix flakey "test_aktualizr_kill" test
cajun-rat Nov 28, 2021
ee0d9a8
Merge pull request #43 from cajun-rat/fix-flakey-kill-test
pattivacek Nov 29, 2021
b230b4e
Changed link to distroboot docs (#1794)
monro11 Nov 24, 2021
e3abf64
Merge pull request #44 from uptane/ats-docs-fix
pattivacek Nov 29, 2021
900d7b6
Tidy up OSTree tests a little
cajun-rat Nov 28, 2021
7cdf9b4
Report correct OSTree hash when currently booted target is absent
cajun-rat Nov 28, 2021
0c19bf5
Revert "Uncomment test depending on a feature implemented months ago."
cajun-rat Nov 29, 2021
b0777d9
Check return value of recv(). Fix test_ip_secondary_rotation
cajun-rat Nov 29, 2021
a4ef9a8
Merge pull request #42 from cajun-rat/ostree-target
pattivacek Nov 30, 2021
3a9ce21
Merge pull request #46 from cajun-rat/fix-flaky-tests
pattivacek Dec 6, 2021
8115588
Fix comments about OSTree HTTP redirects.
pattivacek Dec 6, 2021
c79ecfd
uptane-generator: Allow adding custom metadata for all images.
pattivacek Dec 3, 2021
1cb271f
uptane-generator: url is now an optional for addImage().
pattivacek Dec 3, 2021
b836281
aktualizr_fullostree_test: Update to use uptane_generator_lib directly.
pattivacek Dec 3, 2021
db5a329
ipuptanesecondary.cc: Improve consistency of log formatting.
pattivacek Dec 3, 2021
be2600f
aktualizr-secondary: Better logging with unrecognized messages.
pattivacek Dec 3, 2021
7a7ec2a
Merge pull request #47 from uptane/uptane-gen-image-custom
pattivacek Dec 6, 2021
0b49e03
Support custom fetch URIs for OSTree targets
cajun-rat Dec 8, 2021
b47504d
Merge pull request #48 from cajun-rat/ostree-custom-uri
tkfu Dec 14, 2021
e5f720d
Don't fail metadata check if IP Secondaries don't support Root versio…
pattivacek Jan 6, 2022
7fcb10f
Move operator<<() implementations out of header
cajun-rat Jan 3, 2022
d0bd4a7
Tidy up a few typos and add nicer log messages
cajun-rat Jan 9, 2022
89b9c4f
Rework metadata_expiration_test to have a more realistic 'reboot'
cajun-rat Jan 9, 2022
ba4431c
Fix copy-paste bug in import process from filesystem
cajun-rat Jan 9, 2022
16566c6
Merge pull request #50 from uptane/fix-ipsecondary-root-version
pattivacek Jan 10, 2022
46025d1
Merge pull request #52 from cajun-rat/import-bug
pattivacek Jan 10, 2022
f30b3ce
Delay parts of provisioning that require online access
cajun-rat Jan 18, 2022
7e1c9aa
Merge pull request #51 from cajun-rat/provisioning
pattivacek Jan 21, 2022
6fc8e72
Upgrade to clang-format-11 (and friends)
cajun-rat Jan 22, 2022
68a3d3f
Merge pull request #54 from cajun-rat/clang-format-11
pattivacek Jan 24, 2022
ab8c7c7
explicit single argument ctor for HttpFake
cajun-rat Jan 24, 2022
4c1c3f0
Don't EXIT_SUCCESS if Aktualizr::RunForever() throws an exception
cajun-rat Jan 30, 2022
9d97437
Import sotauptaneclient.h as "primary/sotauptaneclient.h"
cajun-rat Jan 30, 2022
a28317a
Move TargetCompare into the implementation of sotauptaneclient
cajun-rat Jan 30, 2022
994f256
Allow SotaUptaneClient to initialize offline
cajun-rat Jan 24, 2022
5f5ed76
Merge pull request #56 from cajun-rat/offline-prov
cajun-rat Feb 6, 2022
9d3ee3a
[fio extras]: allow updating meta if the same ver
mike-sul Jan 27, 2022
388a50e
[fio extras]: add 'length' and 'hashes' to snapshot
mike-sul Jan 28, 2022
2562ec1
Minor fix to make clang-tidy happy.
pattivacek Feb 9, 2022
eeb933c
Rethrow the original exception instead of slicing it.
pattivacek Feb 9, 2022
637d1f1
Merge pull request #57 from uptane/same-version-different-content
pattivacek Feb 9, 2022
06c5a63
aktualizr-info: Add options to print Secondary ECU keys and all key IDs.
pattivacek Feb 11, 2022
f73c68e
Merge pull request #58 from uptane/aktualizr-info-keys
pattivacek Feb 21, 2022
d64fcb8
Remove dead code
cajun-rat Feb 8, 2022
9a29877
Remove STORAGE_TYPE option from CMakeLists and tests
cajun-rat Feb 22, 2022
718bd87
Better handling of existing paths in uptane-generator
cajun-rat Feb 22, 2022
3b8fd67
Import initial root.json from the filesystem
cajun-rat Feb 8, 2022
4249e9f
Merge pull request #59 from cajun-rat/import-root-keys
cajun-rat Feb 23, 2022
813c1a6
Add test for ApiQueue
cajun-rat Jan 24, 2022
91daac9
Tidy up: std::move tasks in Aktualizr
cajun-rat Jan 24, 2022
6daaa09
Rewrite ApiQueue as an explicit implementation
cajun-rat Jan 24, 2022
6f75976
Merge pull request #55 from cajun-rat/api-queue-refactor
cajun-rat Feb 23, 2022
068ea35
[fio extras]: httpclient: follow redirects by default
mike-sul Feb 28, 2022
1b6e9ae
http: Remove redundant curl options.
pattivacek Mar 1, 2022
9e14d6a
Merge pull request #60 from uptane/follow-redirects
pattivacek Mar 1, 2022
d2ab5e5
Add test for extra keys in root.json
cajun-rat Jul 12, 2021
df868c6
Merge pull request #61 from cajun-rat/extra-keys-root-json
pattivacek Mar 7, 2022
6740885
Fix easy shellcheck problems.
pattivacek Mar 24, 2022
c8e3ac8
More shellcheck fixes.
pattivacek Mar 24, 2022
17e71e0
Add Github Actions job to run shellcheck in CI.
pattivacek Mar 24, 2022
987b52d
More shellcheck fixes, this time with v0.8.0.
pattivacek Mar 24, 2022
e84be42
Fix flakey aktualizr_kill test
cajun-rat Mar 25, 2022
305e321
Merge pull request #62 from uptane/shellcheck-fixes
pattivacek Mar 29, 2022
b6d6065
Merge pull request #64 from cajun-rat/fix-aktualizr-kill
pattivacek Mar 29, 2022
e8f7ce9
Disable broken p11 tests until someone can sort them out.
pattivacek Mar 24, 2022
a7983c5
Merge pull request #63 from uptane/disable-broken-p11-tests
pattivacek Mar 29, 2022
5c9ba5d
Revert "Disable broken p11 tests until someone can sort them out."
mike-sul Mar 30, 2022
3cb7e2a
scripts: Fix the script to run tests in docker
mike-sul Mar 30, 2022
caf558b
docker: Create a home directory of the test user
mike-sul Mar 30, 2022
cd373e6
secondary: Init structure to make clang-tidy happy
mike-sul Mar 30, 2022
7700175
Update codecov URLs.
pattivacek Apr 1, 2022
7ac53f6
Merge pull request #67 from uptane/fix-codecov-badge
pattivacek Apr 1, 2022
81ab71d
crypto: Make the p11 engine singleton within a test suite
mike-sul Apr 4, 2022
5e6e4ae
tests: Suppress a memory leak in libcrypto
mike-sul Apr 5, 2022
4345dee
Merge pull request #68 from uptane/hsm-test-failure-fix
pattivacek Apr 5, 2022
dcbe347
Fix build breakage caused by git CVE-2022-24765 fixes
cajun-rat Apr 22, 2022
2a00664
Merge pull request #72 from cajun-rat/build-fix2
pattivacek Apr 25, 2022
bf0494d
Speed up compiles with Include What You Use
cajun-rat Apr 20, 2022
bcde05d
Add CMake command to run shellcheck.
pattivacek Mar 29, 2022
ef323b0
Append '.sh' to shell scripts used for testing.
pattivacek Mar 29, 2022
3da96e6
deleted not relevant url
May 24, 2022
07937a7
tuf-test-vectors: Test update if metadata version is the same
mike-sul Apr 6, 2022
b5706ac
Merge pull request #75 from uptane/ats-doc-update
pattivacek May 25, 2022
9d9142e
Merge pull request #65 from uptane/cmake-shellcheck
pattivacek May 25, 2022
a57b250
Merge pull request #69 from uptane/add-tuf-test-same-metadata-version
pattivacek May 25, 2022
567b12b
Fix build with gcc-12
shr-project May 25, 2022
eced390
Merge pull request #76 from shr-project/jansa/gcc-12
pattivacek May 25, 2022
846edc0
Attempt to fix int conversion error found on ARM.
pattivacek May 31, 2022
f1002f4
Added default path for pkcs11 for arm.
Hadatko May 30, 2022
7594cd5
Merge pull request #79 from uptane/feature/AddDefaultPKCS11ArmPath
pattivacek May 31, 2022
fa12aaa
Merge pull request #78 from uptane/fix/77/arm-int64_t
pattivacek May 31, 2022
e028674
changed not relevant url
Jun 3, 2022
1f855fe
Merge pull request #81 from uptane/fix-U-Boot-url-master
pattivacek Jun 3, 2022
7b015f9
Rename struct stat to 'stat_buf' from 'st'
cajun-rat Jun 13, 2022
b7b3b28
Only write ManagedSecondary keys once
cajun-rat Jun 13, 2022
67596b0
Merge pull request #82 from cajun-rat/bug/storekeys
pattivacek Jun 14, 2022
1a44c2a
Minor fixes to build correctly on MacOS
tkfu Jul 19, 2022
2de3b69
Merge pull request #85 from uptane/fix/macos-build
cajun-rat Jul 19, 2022
9b8a74d
[fio extras] Update default config values
mike-sul Sep 18, 2020
878bfdd
[fio extras] bootloader: add support to fio verified boot
mike-sul Sep 18, 2020
3bfaea0
[fio extras] garage-sign: download from FIO's storage
mike-sul Jan 13, 2021
cb5054c
[fio extras] bootloader: fiovb: also manage upgrade_available
ricardosalveti Feb 5, 2021
60aa28e
[fio extras] storage: make storage TUF aware
ldts Mar 9, 2021
b8e25f6
[fio extras] aktualizr_get: set default storage (TUF)
ldts Mar 11, 2021
d783397
[fio extras]: packagemanager: add installNotify method
ldts Apr 19, 2021
48f307b
[fio extras]: httpclient: follow redirects by default
mike-sul Feb 28, 2022
b4ff185
[fio extras]: Expose method to update root meta
mike-sul Jul 18, 2022
168ca4f
[fio extras]: Extract business category from cert
mike-sul Jul 18, 2022
98ee051
[fio extras]: Make clang-format-11 happy
mike-sul Jul 21, 2022
ea212db
[fio extras] clang: suppress errors produced by boost
mike-sul Oct 13, 2020
5d0a0b5
[fio toup]: Optionally limit event number to fetch
mike-sul Aug 19, 2022
97057bb
[fio toup]: Limit event number sent in a single request
mike-sul Aug 19, 2022
60e0ff4
[fio toup]: Send smaller payload or drop if 413
mike-sul Aug 22, 2022
1daf2d5
[fio toup] Catch exceptions while reading events from DB
mike-sul Aug 31, 2022
272809b
[fio toup] Catch exceptions while reading events from DB
mike-sul Aug 31, 2022
703809c
[fio toup] crypto: make aktualizr find pkcs11 token by label
mwasilew Oct 13, 2022
0e22dcf
[fio toup] crypto: update tests
mwasilew Oct 13, 2022
59c2d96
[fio toup]: Add ability to get response headers
mike-sul Nov 18, 2022
08761b7
[fio toup]: Fix issue with pkcs11 pin
mwasilew Nov 8, 2022
c287aea
[fio toup] clang: Skip modernize no discard check
mike-sul Mar 20, 2023
4e7f5be
[fio toup]: ostreemanager: DO finalization correctly
mike-sul Jun 27, 2023
deace11
[fio extras] Adjust test_config after fio changes
detsch Aug 3, 2023
24e929d
[fio toup] tests: Make p12 credentials compatible with default OpenSSL 3
detsch Aug 7, 2023
8f77bee
aktualizr: fix build error 'uint8_t' does not name a type
DengkeDu Jul 12, 2023
1d5e867
[fio toup] Fix mechanism that controls if new timestamp should be stored
detsch Aug 24, 2023
a788940
[fio toup] Add test for verifying if metadata is stored during update
detsch Aug 24, 2023
f0dd993
[fio extras] Reduce severity of log messages during an update
detsch Aug 10, 2023
ac7af30
[fio extras] tests: Verify log messages on image repo hash mismatches
detsch Aug 22, 2023
b5430e8
[fio extras] Add new class to allow TLS connections sharing
detsch Sep 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
115 changes: 30 additions & 85 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,102 +1,59 @@
---
Checks: 'clang-analyzer-*, performance-*,readability-*,-readability-else-after-return,-readability-identifier-naming,-readability-container-size-empty,-readability-redundant-declaration,modernize-*,-modernize-avoid-bind,-modernize-loop-convert,-modernize-use-using,-modernize-deprecated-headers, llvm-namespace-comment,cppcoreguidelines-pro-*,-cppcoreguidelines-pro-type-reinterpret-cast,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-pro-type-const-cast,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-bounds-constant-array-index,cert-*,-cert-err58-cpp,-cert-env33-c,-cert-err09-cpp,-cert-err60-cpp,-cert-err61-cpp, -cert-err61-cpp, bugprone-*, google-*,-google-runtime-references,-google-runtime-member-string-references, -google-explicit-constructor, -google-readability-todo, misc-*, -misc-unused-parameters, -misc-macro-parentheses, -misc-throw-by-value-catch-by-reference, -misc-suspicious-enum-usage'
Checks: >-
boost-*,
bugprone-*,
cert-*,-cert-err58-cpp,-cert-env33-c,-cert-err60-cpp,
clang-analyzer-*,
cppcoreguidelines-*,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-init-variables,-cppcoreguidelines-owning-memory,-cppcoreguidelines-non-private-member-variables-in-classes,-cppcoreguidelines-macro-usage,
cppcoreguidelines-pro-*,-cppcoreguidelines-pro-type-reinterpret-cast,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-pro-type-const-cast,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
google-*,-google-runtime-references,-google-readability-todo,
hicpp-*,-hicpp-no-array-decay,-hicpp-no-assembler,-hicpp-signed-bitwise,-hicpp-vararg,
llvm-namespace-comment,
misc-*,-misc-non-private-member-variables-in-classes,
modernize-*,-modernize-avoid-bind,-modernize-loop-convert,-modernize-use-trailing-return-type,
performance-*,
readability-*,-readability-else-after-return,-readability-identifier-naming,-readability-magic-numbers,-readability-function-cognitive-complexity,
-modernize-use-nodiscard,

WarningsAsErrors: '*'
AnalyzeTemporaryDtors: false
CheckOptions:
CheckOptions:
- key: cert-dcl59-cpp.HeaderFileExtensions
value: h,hh,hpp,hxx
value: h
- key: cert-err09-cpp.CheckThrowTemporaries
value: '1'
- key: cert-err61-cpp.CheckThrowTemporaries
value: '1'
- key: cert-oop11-cpp.IncludeStyle
value: llvm
- key: cppcoreguidelines-pro-bounds-constant-array-index.GslHeader
value: ''
- key: cppcoreguidelines-pro-bounds-constant-array-index.IncludeStyle
value: '0'
- key: cppcoreguidelines-pro-type-member-init.IgnoreArrays
value: '0'
- key: google-build-namespaces.HeaderFileExtensions
value: h,hh,hpp,hxx
value: h
- key: google-global-names-in-headers.HeaderFileExtensions
value: h
- key: google-readability-braces-around-statements.ShortStatementLines
value: '1'
- key: google-readability-function-size.BranchThreshold
value: '4294967295'
value: '100'
- key: google-readability-function-size.LineThreshold
value: '4294967295'
value: '1000'
- key: google-readability-function-size.StatementThreshold
value: '800'
- key: google-readability-namespace-comments.ShortNamespaceLines
value: '10'
- key: google-readability-namespace-comments.SpacesBeforeComments
value: '2'
- key: google-runtime-int.SignedTypePrefix
value: int
- key: google-runtime-int.TypeSuffix
value: ''
- key: google-runtime-int.UnsignedTypePrefix
value: uint
- key: google-runtime-references.WhiteListTypes
value: ''
- key: llvm-header-guard.HeaderFileExtensions
value: ',h,hh,hpp,hxx'
value: h
- key: llvm-namespace-comment.ShortNamespaceLines
value: '1'
value: '10'
- key: llvm-namespace-comment.SpacesBeforeComments
value: '1'
- key: misc-argument-comment.StrictMode
value: '0'
- key: misc-assert-side-effect.AssertMacros
value: assert
- key: misc-assert-side-effect.CheckFunctionCalls
value: '0'
- key: misc-dangling-handle.HandleClasses
value: 'std::basic_string_view;std::experimental::basic_string_view'
value: '2'
- key: misc-definitions-in-headers.HeaderFileExtensions
value: ',h,hh,hpp,hxx'
value: h
- key: misc-definitions-in-headers.UseHeaderFileExtension
value: '1'
- key: misc-misplaced-widening-cast.CheckImplicitCasts
value: '1'
- key: misc-move-constructor-init.IncludeStyle
value: llvm
- key: misc-sizeof-expression.WarnOnSizeOfCompareToConstant
value: '1'
- key: misc-sizeof-expression.WarnOnSizeOfConstant
value: '1'
- key: misc-sizeof-expression.WarnOnSizeOfThis
value: '1'
- key: misc-string-constructor.LargeLengthThreshold
value: '8388608'
- key: misc-string-constructor.WarnOnLargeLength
value: '1'
- key: misc-suspicious-enum-usage.StrictMode
value: '0'
- key: misc-suspicious-missing-comma.MaxConcatenatedTokens
value: '5'
- key: misc-suspicious-missing-comma.RatioThreshold
value: '0.200000'
- key: misc-suspicious-missing-comma.SizeThreshold
value: '5'
- key: misc-suspicious-string-compare.StringCompareLikeFunctions
value: ''
- key: misc-suspicious-string-compare.WarnOnImplicitComparison
value: '1'
- key: misc-suspicious-string-compare.WarnOnLogicalNotComparison
value: '0'
- key: misc-throw-by-value-catch-by-reference.CheckThrowTemporaries
value: '1'
- key: modernize-loop-convert.MaxCopySize
value: '16'
- key: modernize-loop-convert.MinConfidence
value: reasonable
- key: modernize-loop-convert.NamingStyle
value: CamelCase
- key: modernize-replace-auto-ptr.IncludeStyle
value: llvm
- key: modernize-use-auto.RemoveStars
value: '0'
- key: modernize-use-default-member-init.UseAssignment
Expand All @@ -105,26 +62,14 @@ CheckOptions:
value: '::std::vector;::std::list;::std::deque'
- key: modernize-use-emplace.SmartPointers
value: '::std::shared_ptr;::std::unique_ptr;::std::auto_ptr;::std::weak_ptr'
- key: modernize-use-nullptr.NullMacros
value: 'NULL'
- key: modernize-use-transparent-functors.SafeMode
value: '0'
- key: performance-faster-string-find.StringLikeClasses
value: 'std::basic_string'
- key: performance-for-range-copy.WarnOnAllAutoCopies
value: '0'
- key: performance-inefficient-string-concatenation.StrictMode
value: '0'
- key: performance-type-promotion-in-math-fn.IncludeStyle
value: llvm
- key: performance-unnecessary-value-param.IncludeStyle
value: llvm
- key: readability-braces-around-statements.ShortStatementLines
value: '0'
value: '1'
- key: readability-function-size.BranchThreshold
value: '4294967295'
value: '100'
- key: readability-function-size.LineThreshold
value: '4294967295'
value: '1000'
- key: readability-function-size.StatementThreshold
value: '800'
- key: readability-identifier-naming.AbstractClassCase
Expand Down Expand Up @@ -393,9 +338,9 @@ CheckOptions:
value: ''
- key: readability-identifier-naming.VirtualMethodSuffix
value: ''
- key: readability-implicit-bool-cast.AllowConditionalIntegerCasts
- key: readability-implicit-bool-conversion.AllowConditionalIntegerCasts
value: '0'
- key: readability-implicit-bool-cast.AllowConditionalPointerCasts
- key: readability-implicit-bool-conversion.AllowConditionalPointerCasts
value: '0'
- key: readability-simplify-boolean-expr.ChainedConditionalAssignment
value: '0'
Expand Down
124 changes: 124 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
name: Aktualizr CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
jobs:
coverage:
name: Coverage on Ubuntu Bionic
runs-on: ubuntu-latest
env:
DOCKER_TAG: docker.pkg.github.com/uptane/aktualizr/aktualizr-ci:bionic-master
DOCKERFILE: docker/Dockerfile.ubuntu.bionic
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
DARGS: >-
-eCCACHE_DIR
-eCODECOV_TOKEN
-eTEST_CMAKE_BUILD_TYPE=Valgrind
-eTEST_WITH_COVERAGE=1
-eTEST_WITH_P11=1
-eTEST_WITH_FAULT_INJECTION=1
-eTEST_TESTSUITE_EXCLUDE=credentials
-eTEST_SOTA_PACKED_CREDENTIALS=dummy-credentials
steps:
- uses: actions/checkout@master
with:
submodules: recursive
- run: git fetch --prune --unshallow
- name: Docker login
if: github.token
run: echo ${{ github.token }} | docker login docker.pkg.github.com -u uptane --password-stdin
- name: Docker build
run: |
docker pull "$DOCKER_TAG" || true
docker build --cache-from "$DOCKER_TAG" --pull -t "$DOCKER_TAG" -f "$DOCKERFILE" .
- uses: actions/[email protected]
with:
path: ${{ github.workspace }}/.ccache
key: ubuntu-bionic-${{ github.run_id }}
restore-keys: |
ubuntu-bionic-${{ github.run_id }}
ubuntu-bionic-
- name: Test
run: docker run -v "$PWD:$PWD" -w "$PWD" $DARGS -t "$DOCKER_TAG" ./scripts/test.sh

nop11:
name: Tests without p11 support on Ubuntu Bionic
runs-on: ubuntu-latest
env:
DOCKER_TAG: docker.pkg.github.com/uptane/aktualizr/aktualizr-ci:bionic-master
DOCKERFILE: docker/Dockerfile.ubuntu.bionic
DARGS: >-
-eCCACHE_DIR
-eTEST_CMAKE_BUILD_TYPE=Debug
-eTEST_WITH_P11=0
-eTEST_WITH_TESTSUITE=0
steps:
- uses: actions/checkout@master
with:
submodules: recursive
- run: git fetch --prune --unshallow
- name: Docker login
if: github.token
run: echo ${{ github.token }} | docker login docker.pkg.github.com -u uptane --password-stdin
- name: Docker build
run: |
docker pull "$DOCKER_TAG" || true
docker build --cache-from "$DOCKER_TAG" --pull -t "$DOCKER_TAG" -f "$DOCKERFILE" .
- uses: actions/[email protected]
with:
path: ${{ github.workspace }}/.ccache
key: ubuntu-bionic-${{ github.run_id }}
restore-keys: |
ubuntu-bionic-${{ github.run_id }}
ubuntu-bionic-
- name: Test
run: docker run -v "$PWD:$PWD" -w "$PWD" $DARGS -t "$DOCKER_TAG" ./scripts/test.sh

static-checks:
name: Static checks on Ubuntu Focal
runs-on: ubuntu-latest
env:
DOCKER_TAG: docker.pkg.github.com/uptane/aktualizr/aktualizr-ci:ubuntu-focal-master
DOCKERFILE: docker/Dockerfile.ubuntu.focal
DARGS: >-
-eCCACHE_DIR
-eTEST_CC=clang
-eTEST_CMAKE_BUILD_TYPE=Valgrind
-eTEST_TESTSUITE_ONLY=crypto
-eTEST_WITH_STATICTESTS=1
-eTEST_WITH_DOCS=1
steps:
- uses: actions/checkout@master
with:
submodules: recursive
- run: git fetch --prune --unshallow
- name: Docker login
if: github.token
run: echo ${{ github.token }} | docker login docker.pkg.github.com -u uptane --password-stdin
- name: Docker build
run: |
docker pull "$DOCKER_TAG" || true
docker build --cache-from "$DOCKER_TAG" --pull -t "$DOCKER_TAG" -f "$DOCKERFILE" .
- uses: actions/[email protected]
with:
path: ${{ github.workspace }}/.ccache
key: ubuntu-focal-${{ github.run_id }}
restore-keys: |
ubuntu-focal-${{ github.run_id }}
ubuntu-focal-
- name: Test
run: docker run -v "$PWD:$PWD" -w "$PWD" $DARGS -t "$DOCKER_TAG" ./scripts/test.sh

shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
ignore_paths: third_party
36 changes: 36 additions & 0 deletions .github/workflows/update-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Aktualizr CI docker images update
on:
push:
branches: [ master ]
jobs:
update-bionic:
name: Update Ubuntu Bionic Image
runs-on: ubuntu-latest
env:
DOCKER_TAG: docker.pkg.github.com/uptane/aktualizr/aktualizr-ci:bionic-master
DOCKERFILE: docker/Dockerfile.ubuntu.bionic
steps:
- uses: actions/checkout@master
- name: Docker login
run: echo ${{ github.token }} | docker login docker.pkg.github.com -u uptane --password-stdin
- name: Docker build and push
run: |
docker pull "$DOCKER_TAG" || true
docker build --cache-from "$DOCKER_TAG" --pull -t "$DOCKER_TAG" -f "$DOCKERFILE" .
docker push "$DOCKER_TAG"

update-ubuntu-focal:
name: Update Ubuntu Focal Image
runs-on: ubuntu-latest
env:
DOCKER_TAG: docker.pkg.github.com/uptane/aktualizr/aktualizr-ci:ubuntu-focal-master
DOCKERFILE: docker/Dockerfile.ubuntu.focal
steps:
- uses: actions/checkout@master
- name: Docker login
run: echo ${{ github.token }} | docker login docker.pkg.github.com -u uptane --password-stdin
- name: Docker build and push
run: |
docker pull "$DOCKER_TAG" || true
docker build --cache-from "$DOCKER_TAG" --pull -t "$DOCKER_TAG" -f "$DOCKERFILE" .
docker push "$DOCKER_TAG"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ __pycache__/
# QT Creator
CMakeLists.txt.user
/docs/ota-client-guide/modules/ROOT/pages/_junk
*.code-workspace
.vscode/launch.json
11 changes: 4 additions & 7 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
[submodule "tests/tuf-test-vectors"]
path = tests/tuf-test-vectors
url = https://github.com/advancedtelematic/tuf-test-vectors/
[submodule "third_party/isotp-c"]
path = third_party/isotp-c
url = https://github.com/advancedtelematic/isotp-c.git
[submodule "third_party/HdrHistogram_c"]
path = third_party/HdrHistogram_c
url = https://github.com/HdrHistogram/HdrHistogram_c
url = https://github.com/advancedtelematic/tuf-test-vectors.git
[submodule "third_party/googletest"]
path = third_party/googletest
url = https://github.com/google/googletest.git
[submodule "third_party/jsoncpp"]
path = third_party/jsoncpp
url = https://github.com/open-source-parsers/jsoncpp
9 changes: 5 additions & 4 deletions .ort.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
excludes:
paths:
- pattern: "partial/extern/**"
reason: "TEST_TOOL_OF"
comment: "This directory contains external dependencies only used by examples which are not distributed."
- pattern: "tests/**"
reason: "TEST_TOOL_OF"
comment: "This directory contains tests which are not distributed."
- pattern: "third_party/googletest/**"
reason: "TEST_TOOL_OF"
comment: "This directory contains tests which are not distributed."
comment: "This directory contains support code for tests which are not distributed."
- pattern: "third_party/junit/ctest2junit.xsl"
reason: "TEST_TOOL_OF"
comment: "This file contains support code for tests which are not distributed."
- pattern: "thirdparty.spdx"
reason: "TEST_TOOL_OF"
comment: "This file contains metadata which are not distributed."

Loading