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

Adapt PR and release jobs to enable testing of the Framework repo #170

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

bensze01
Copy link
Contributor

@bensze01 bensze01 commented Jul 3, 2024

This PR enables the testing of the framework repo, by adapting the existing jobs to allow overriding the version of the framework checked out by the CI, as well as enabling the testing of multiple branches of Mbed TLS in a single job.

The framework version is controlled by the newly defined parameters FRAMEWORK_REPO and FRAMEWORK_BRANCH, while MBEDTLS_BRANCH has been extended to allow specifying multiple branches separated by ,.

For automatic PR testing, mbedtls.run_framework_pr_job() is added as an entrypoint, which is called by the Jenkinsfile added by the companion PR Mbed-TLS/mbedtls-framework#33

Tests:

Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
Pass the branch name along the call chain instead. This is in
preparation for testing multiple branches in the same job.

Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
Each branch listed in MBED_TLS_BRANCH (separated by commas) will be
checked out and tested in parallel.

Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
@bensze01 bensze01 force-pushed the dev/bensze01/framework branch 2 times, most recently from 9d3e7ed to 169671d Compare July 3, 2024 17:28
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
IllegalAccessError doesn't match the semantics used here.

Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
@bensze01 bensze01 added size-m Estimated task size: medium (~1w) labels Jul 3, 2024
This fixes checkouts for productions jobs that target the framework
repo.

Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
When analyze_results() was converted to run inside a docker container,
the outer call to instantiate a helper-container-host node was not
removed, resulting in analysis running on a regular container-host, in
addition to the unused outer container.

Restore the intended behaviour by removing the outer call and modifying
gen_jobs.gen_docker_job() to allow overriding the node the docker job is
run on.

Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
This commit also refactors failed_builds and outcome_stashes to be
per-branch values by moving them inside BranchInfo.

Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
It looks like Set.empty is bugged on our Jenkins installation,
evaluating as false even if the set has 0 elements.

Coercion to a boolean works as expected.

Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

2 participants