Skip to content
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

Conversation

@ChiefGokhlayehBosch
Copy link
Contributor

@ChiefGokhlayehBosch ChiefGokhlayehBosch commented Sep 21, 2020

This PR combines #159 and #105, as well as expanding on the two, by adding the necessary CI/CD configuration to run integration tests on decentralized Jenkins agents.

A guide on how to set up new agents has been added to the hugo doc. There you'll also find an overview on how it's intended to work.

Docker Hub images have been uploaded. I made them multi-arch images, meaning a Raspberry-Pi 3 (ARM 32-bit) can pull them straight from the hub. The agent image is not published to Docker Hub, as it almost always requires JLink to be built-in. Instead it can be built locally. I added a disclaimer to the agent's Dockerfile, printing the terms of use and asking the user to accept (or decline) the agreement via build-args during image creation.

To report build status back to GitHub, agents require an access token with repo:status-flag set. Updating the commit status, can be done without reverse proxy, meaning an agent may reside behind a NAT or corporate firewall, with one-way access to the internet.

Code-wise core/testing and the simple integration test in core/essentials remain basically untouched from what was there in #159 and #105 (some superficial touch-ups so clang-tidy is happy and bugfixes in the UART integration test).

Closes #159 #105

khalifima and others added 28 commits September 17, 2020 11:32
Co-authored-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Co-authored-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
sh 'cmake --build builddir-integration --target flash'

sh 'rm -rf testing/integration/test-coordinator/kiso-testing'
sh 'git clone --depth 1 --branch prototype/integrate-kiso-demo https://github.com/ChiefGokhlayehBosch/kiso-testing.git testing/integration/test-coordinator/kiso-testing'
Copy link
Contributor Author

@ChiefGokhlayehBosch ChiefGokhlayehBosch Sep 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be changed as soon as the fixes I made to kiso-testing are merged back into eclipse/kiso-testing

  • Merge kiso-testing fixes back to mainline.

Signed-off-by: ChiefGokhlayehBosch <fixed-term.andreas.baulig@bosch.com>
@ChiefGokhlayehBosch ChiefGokhlayehBosch force-pushed the feature/#17-add-integration-test-framework branch from dcd7790 to 29c78ac Compare September 22, 2020 09:45
@ChiefGokhlayehBosch
Copy link
Contributor Author

ChiefGokhlayehBosch commented Sep 25, 2020

After discussion with @sebastianpfischer, it makes more sense to remove the test-entry lookup from the embedded side and revert these changes on kiso-testing side. Each test-app only ever contains a single test-entry. Assigning a ID to those might be neat for debugging purposes, but it doesn't make sense to have a lookup-mechanism for it. The relevant bits in the CCMsg structure shall be marked reserved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants