aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2023-01-10feat: upgrade to VPP 22.10v22.10-rc0Mauro Sardara1-2/+2
Change-Id: I556bd8c44f0ff7a631a0df34b498ffd7952fcf4a Signed-off-by: Mauro Sardara <msardara@cisco.com>
2022-10-17fix(sonar): Nodejs LTS updateLuca Muscariello1-1/+1
Ref: HICN-814 Signed-off-by: Luca Muscariello <muscariello@ieee.org> Change-Id: I3da9837c9e42d9b509dfb863c0f01302fe39aa97
2022-10-12test: instrument functional tests with more logsMauro Sardara1-2/+14
Also: - Do not tun tests with privileged containers HICN-806 - Refactor robot test files and config.sh Currently some logs are missing from the robot output of the functional tests. This patch adds them. Ticket: HICN-805 Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I9893eb356a4dd12f4bc6347b8fe02e358c9bf737
2022-09-21ci: add commit checkMauro Sardara1-0/+11
Check the format of commit is conventional commit compliant Ticket: HICN-791 Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I56b0884c1bb84ef29adc55a5f07eafb3763eff43
2022-09-14ci: correctly generate tests reportsMauro Sardara3-19/+29
Do not use make test to run the tests after the build, as it overwrites the report file for each single unit tests. Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: Icdc55b31c1e36b213f977b76f8518ac16c393afc
2022-09-13ci: group all unit test reports under same folderMauro Sardara1-3/+16
Ref: HICN-872 Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I29f34e15e3cc4e04d50de937568a4e4e76a33f33
2022-09-12fix(download_artifacts): use latest URLs from list retrieved from gerritMauro Sardara1-2/+5
Ref: HICN-781 Change-Id: Iaeaa57bb97599772611506444fcf806f17f7b9b0 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2022-08-30ci(sonar): add test coverage in sonar cloudMauro Sardara1-3/+44
Ref: HICN-749 Change-Id: I1523b548df9254949d164b995d24c0210252809f Signed-off-by: Mauro Sardara <msardara@cisco.com>
2022-08-29ci(sonar): build with coverage informationMauro Sardara1-6/+7
Also: - Install clang-11 as default compiler with make deps Ref: HICN-752 Change-Id: Id6faf99ddd9c43a1c5804b8ace8df9dad27b82e6 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2022-08-19ci(functions.sh): fallback to full image build if artifacts cannot be retrievedMauro Sardara1-5/+14
Ref: HICN-743 Change-Id: I9690f541e985fa6cde65bb892f0b8a7787fd2e93 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2022-08-17ci(functional-tests): add functional tests scriptsMauro Sardara3-18/+79
- Add scripts/functional-tests.sh script - Add `download_artifacts` functions, allowing to retrieve artifacts of a gerrit patch - Robot: redirect output of topology build to files, thus preventing robot from hanging - Share folders between host and containers with the :z flag - Use sudo to install executable in docker-compose scripts, as the user of the docker is not root anymore - Makefile: decouple installation and build Ref: HICN-732 Change-Id: Ib945cf7bd0ee331e33270cf1005dfebd085862eb Signed-off-by: Mauro Sardara <msardara@cisco.com>
2022-08-12Merge "ci: add initial support to build against VPP master"Luca Muscariello1-0/+3
2022-08-12ci: add initial support to build against VPP masterMauro Sardara1-0/+3
Ref: HICN-742 Change-Id: Ifdf3597846fdfe0ba91516e9c0bf4e2a9ed2f1a3 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2022-08-12ci(sonarqube): force job to fail if any command failsMauro Sardara2-0/+4
Ref: HICN-741 Change-Id: Ib789432e5419d70188836f5391997067e2e9e8c3 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2022-08-12ci(sonarscan): fixes for sonar buildMauro Sardara1-0/+3
- Configure safe directories for git Ref: HICN-741 Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I2c9da853f57ca4576fb4ad35c3ca81de575c7c65 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2022-08-12ci(sonarscan): fixes for sonar buildMauro Sardara3-2/+8
- Add submodule init before running the docker compose up command - Mount workspace with the :z flag to modify the selinux label of the directory - Build docker image with amd64 architecture, as sonar build wrapper only exists for x64 Ref: HICN-741 Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I3cc3e285ce216eec9795011f67758df590dc6fec Signed-off-by: Mauro Sardara <msardara@cisco.com>
2022-08-12feat: fix sonarcloud buildLuca Muscariello2-1/+6
Signed-off-by: Luca Muscariello <muscariello@ieee.org> Change-Id: I569ede7040d0f1e168af87a67e31d494fd11bc77
2022-08-11ci(sonarscan): fix typoMauro Sardara1-1/+1
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: Ibadcc7b1a79ef92149b032becc800f1ed8ba00c5
2022-08-11ci: install docker-compose as part of sonarcloud scanMauro Sardara1-0/+3
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I2216084a415abbb874dfa49051ca3ca0fcb7c41d
2022-08-11ci: call docker-compose in sonarcloud triggerMauro Sardara3-26/+42
Ref: HICN-739 Change-Id: I33c4948f6f7a1a27a30051da4a1bdbfc6de90951 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2022-08-10Merge "ci: add functional tests to verification/merge jobs"Luca Muscariello3-3/+24
2022-08-10Merge "feat: Sonarcloud"Luca Muscariello3-0/+59
2022-08-10feat: SonarcloudLuca Muscariello3-0/+59
Signed-off-by: Luca Muscariello <muscariello@ieee.org> Change-Id: I2da6c9dfa1d05968555e8f43176de6a0ab37892e
2022-08-09ci: add functional tests to verification/merge jobsMauro Sardara3-3/+24
Ref: ICN-732 Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: Iabfce26c446c502dc1d8f50da0d607791ce392e9
2022-08-08ci: add checkstyle to verify jobsMauro Sardara1-2/+91
Ref: HICN-731 Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I34f7abc5949ed02f7926a72ea54a2014ed255d6d
2022-04-01ci(scripts/install-vpp.sh): improve install-vpp.sh scriptMauro Sardara1-9/+27
Ref: HICN-720 Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I6586573da1e415b596bad8e6d3e77dba38de8147
2022-03-31feat: boostrap hicn 22.02Luca Muscariello4-126/+77
The current patch provides several new features, improvements, bug fixes and also complete rewrite of entire components. - lib The hicn packet parser has been improved with a new packet format fully based on UDP. The TCP header is still temporarily supported but the UDP header will replace completely the new hicn packet format. Improvements have been made to make sure every packet parsing operation is made via this library. The current new header can be used as header between the payload and the UDP header or as trailer in the UDP surplus area to be tested when UDP options will start to be used. - hicn-light The portable packet forwarder has been completely rewritten from scratch with the twofold objective to improve performance and code size but also to drop dependencies such as libparc which is now removed by the current implementation. - hicn control the control library is the agent that is used to program the packet forwarders via their binary API. This component has benefited from significant improvements in terms of interaction model which is now event driven and more robust to failures. - VPP plugin has been updated to support VPP 22.02 - transport Major improvement have been made to the RTC protocol, to the support of IO modules and to the security sub system. Signed manifests are the default data authenticity and integrity framework. Confidentiality can be enabled by sharing the encryption key to the prod/cons layer. The library has been tested with group key based applications such as broadcast/multicast and real-time on-line meetings with trusted server keys or MLS. - testing Unit testing has been introduced using GoogleTest. One third of the code base is covered by unit testing with priority on critical features. Functional testing has also been introduce using Docker, linux bridging and Robot Framework to define test with Less Code techniques to facilitate the extension of the coverage. Co-authored-by: Mauro Sardara <msardara@cisco.com> Co-authored-by: Jordan Augé <jordan.auge+fdio@cisco.com> Co-authored-by: Michele Papalini <micpapal@cisco.com> Co-authored-by: Angelo Mantellini <manangel@cisco.com> Co-authored-by: Jacques Samain <jsamain@cisco.com> Co-authored-by: Olivier Roques <oroques+fdio@cisco.com> Co-authored-by: Enrico Loparco <eloparco@cisco.com> Co-authored-by: Giulio Grassi <gigrassi@cisco.com> Change-Id: I75d0ef70f86d921e3ef503c99271216ff583c215 Signed-off-by: Luca Muscariello <muscariello@ieee.org> Signed-off-by: Mauro Sardara <msardara@cisco.com>
2021-07-20HICN-716 Upgrade to VPP 21.06Mauro Sardara1-1/+1
Also: - Format hicn-plugin code Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I0f4626fdeaf0fc5ae1f43904ca006b092e3e9d5f
2021-07-16[HICN-714] Update build scriptsv21.06-rc0Mauro Sardara2-54/+25
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: Ica3b4f66087446551230a3742fd7bd4db87a4a7e Signed-off-by: Mauro Sardara <msardara@cisco.com>
2021-04-15[HICN-690] Transport Library Major RefactoryLuca Muscariello2-32/+11
The current patch provides a major refactory of the transportlibrary. A summary of the different components that underwent major modifications is reported below. - Transport protocol updates The hierarchy of classes has been optimized to have common transport services across different transport protocols. This can allow to customize a transport protocol with new features. - A new real-time communication protocol The RTC protocol has been optimized in terms of algorithms to reduce consumer-producer synchronization latency. - A novel socket API The API has been reworked to be easier to consumer but also to have a more efficient integration in L4 proxies. - Several performance improvements A large number of performance improvements have been included in particular to make the entire stack zero-copy and optimize cache miss. - New memory buffer framework Memory management has been reworked entirely to provide a more efficient infra with a richer API. Buffers are now allocated in blocks and a single buffer holds the memory for (1) the shared_ptr control block, (2) the metadata of the packet (e.g. name, pointer to other buffers if buffer is chained and relevant offsets), and (3) the packet itself, as it is sent/received over the network. - A new slab allocator Dynamic memory allocation is now managed by a novel slab allocator that is optimised for packet processing and connection management. Memory is organized in pools of blocks all of the same size which are used during the processing of outgoing/incoming packets. When a memory block Is allocated is always taken from a global pool and when it is deallocated is returned to the pool, thus avoiding the cost of any heap allocation in the data path. - New transport connectors Consumer and producer end-points can communication either using an hicn packet forwarder or with direct connector based on shared memories or sockets. The usage of transport connectors typically for unit and funcitonal testing but may have additional usage. - Support for FEC/ECC for transport services FEC/ECC via reed solomon is supported by default and made available to transport services as a modular component. Reed solomon block codes is a default FEC model that can be replaced in a modular way by many other codes including RLNC not avaiable in this distribution. The current FEC framework support variable size padding and efficiently makes use of the infra memory buffers to avoid additiona copies. - Secure transport framework for signature computation and verification Crypto support is nativelty used in hICN for integrity and authenticity. Novel support that includes RTC has been implemented and made modular and reusable acrosso different transport protocols. - TLS - Transport layer security over hicn Point to point confidentiality is provided by integrating TLS on top of hICN reliable and non-reliable transport. The integration is common and makes a different use of the TLS record. - MLS - Messaging layer security over hicn MLS integration on top of hICN is made by using the MLSPP implemetation open sourced by Cisco. We have included instrumentation tools to deploy performance and functional tests of groups of end-points. - Android support The overall code has been heavily tested in Android environments and has received heavy lifting to better run natively in recent Android OS. Co-authored-by: Mauro Sardara <msardara@cisco.com> Co-authored-by: Michele Papalini <micpapal@cisco.com> Co-authored-by: Olivier Roques <oroques+fdio@cisco.com> Co-authored-by: Giulio Grassi <gigrassi@cisco.com> Change-Id: If477ba2fa686e6f47bdf96307ac60938766aef69 Signed-off-by: Luca Muscariello <muscariello@ieee.org>
2021-03-25[HICN-688] Include packethicn in hicn buildMarco Trinelli2-5/+20
Add license headers Add dependencies Fix build for Ubuntu 18.04 Move doc Signed-off-by: Marco Trinelli <marcotrinelli@gmail.com> Change-Id: Ie92268d2d3a47c47746107ac6f9c34b21949671c
2021-02-11HICN-685 Fix package script for centos8Mauro Sardara1-2/+2
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I4a683dc37e6669d51e001604c41221efb26fb0de
2021-02-11HICN-685 Fix package script for centos8Mauro Sardara1-0/+3
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I9973034088879b23cc0de6116d65c3a70272a706
2021-02-11HICN-685 Fix package script for centos8Mauro Sardara1-14/+2
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I84c0461d5a7869b38a676f3a02a53080e32d271c
2021-02-05[HICN-681] Remove compilation warning in ubuntu 20.04 jobs.Mauro Sardara1-11/+7
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: Id9666941d2a84d5deb75716a410abe9305923531 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2020-11-19[HICN-653] Add hicn repo to build scriptMauro Sardara1-0/+4
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I3133931e1531af34756d009aef509976f3f7b29b
2020-11-06[HICN-654] Fix versioning.Mauro Sardara2-37/+48
- Add rc0 tag for release candidate packages pushed in hicn repo - Fix version for centos and aarch64 packages Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I0b04d8164690635c19a0d429fb383268b9d3318e
2020-11-06[HICN-653] Cleanup build scripts.Mauro Sardara3-333/+207
Main changes: - Next VPP version is now counted 4 months (instead of 3) from the current one - CMake will now use Ninja as generator - Build functions are gathered under build/functions.sh and they are shared instead of being duplicated in build-extras and build-packages - Various bug fixes for dependencies and versioning. Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I3f482d2c87847a465019dd0992ee9375c88bb412 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2020-10-20[HICN-649] Fix build script.Mauro Sardara1-3/+3
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: Id1db8b5b2aba94f3a4a2ab14088a4ac8e6e25851
2020-10-02[HICN-643] Fix scripts for publishing release.Mauro Sardara1-2/+1
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: If01c46dcf8981385e544c9cc6c31ce1efe3c2d96
2020-05-28[HICN-617] Prepare hicn-plugin for VPP 20.05 release.Mauro Sardara2-6/+6
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I701379bf0f088cad4a94209664de16e7bfe76f5e Signed-off-by: Mauro Sardara <msardara@cisco.com>
2020-05-14[HICN-611] Remove unused fields on libhicnlibraryAngelo Mantellini1-7/+1
Signed-off-by: Angelo Mantellini <angelo.mantellini@cisco.com> Change-Id: Ia3a929c4734b660a8feb03d1656d2ff3e35de991 Signed-off-by: Angelo Mantellini <angelo.mantellini@cisco.com>
2020-05-06[HICN-606] Added doxygen documentationAlberto Compagno1-1/+1
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: If2bf7f4f310adf6adbbb9ea29eafcb2a0ee40d54
2020-02-24[HICN-532] Add docs target in build-package scriptMauro Sardara1-13/+42
Change-Id: I143509be32a3897880e02f55856a4ca1b2522269 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2020-02-21[HICN-2] Added P2P confidential communication on hICNAlberto Compagno1-1/+1
P2P confidential communications exploit the TLS 1.3 protocol to let a consumer to establish a secure communication on an hICN name. Currently we don't support the consumer authentication (mutual authentication in TLS) and the 0-rtt session establishment. Change-Id: I2be073847c08a17f28c837d444081920c5e57a07 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Signed-off-by: Olivier Roques <oroques+fdio@cisco.com> Signed-off-by: Mauro Sardara <msardara@cisco.com>
2020-02-18[HICN-510] Adding collectd plugins to get telemetry from vpp and hicn-pluginAlberto Compagno1-0/+26
Change-Id: Idb322dc712b52301c66c5256ad8d1a6a65b503b9 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2020-02-18[HICN-527] Do not create Unspecified DEB/RPM package anymore.Mauro Sardara1-1/+1
Change-Id: Id79b3885ca02b24a4c480ec10a0b2a1330ff8604 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2020-02-12[HICN-512] documentation bundle using sphinxLuca Muscariello1-1/+24
Change-Id: I1dcbca50f7406ef2714683547b6bb32463e1baf8 Signed-off-by: Luca Muscariello <muscariello@ieee.org>
2020-01-30[HICN-445] Update to vpp 20.01Alberto Compagno2-8/+24
Change-Id: I19a442080b6ca8b0477a8f92f161282288c395ee Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-12-12[HICN-449] Correct dependencies of DEB/RPM package for sysrepo.Mauro Sardara1-2/+2
Change-Id: Ie3f7f700617d99e7e56431afbb1b877e6cb366f9 Signed-off-by: Mauro Sardara <msardara@cisco.com>