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

Stop CMake out of source tests running on 16.04 #5233

Conversation

paul-elliott-arm
Copy link
Member

@paul-elliott-arm paul-elliott-arm commented Nov 25, 2021

Description

Running the out of source CMake test on Ubuntu 16.04 using more than one processor (as the CI does) can create a race condition whereby the build fails to see a generated file, despite that file actually having been generated. This problem appears to go away with 18.04 or newer, so make the out of source tests not supported on Ubuntu 16.04

This is our mitigation for #5223 - Given 16.04 is already out of support, it seemed the simplest option rather than trying to chase down the race condition.

Status

READY

Requires Backporting

NO

Migrations

NO

Todos

  • Tests
  • Changelog updated
  • Backported

Steps to test or reproduce

CMake out of source tests should run clean on CI 100%

Running the out of source CMake test on Ubuntu 16.04 using more than one
processor (as the CI does) can create a race condition whereby the build
fails to see a generated file, despite that file actually having been
generated. This problem appears to go away with 18.04 or newer, so make
the out of source tests not supported on Ubuntu 16.04

Signed-off-by: Paul Elliott <paul.elliott@arm.com>
@paul-elliott-arm paul-elliott-arm self-assigned this Nov 25, 2021
@paul-elliott-arm paul-elliott-arm added bug component-test Test framework and CI scripts fix available needs-ci Needs to pass CI tests needs-review Every commit must be reviewed by at least two team members, needs-reviewer This PR needs someone to pick it up for review size-s Estimated task size: small (~2d) labels Nov 25, 2021
@paul-elliott-arm paul-elliott-arm added needs-backports Backports are missing or are pending review and approval. and removed fix available needs-backports Backports are missing or are pending review and approval. labels Nov 25, 2021
@daverodgman daverodgman self-requested a review November 26, 2021 09:54
@daverodgman daverodgman removed the needs-reviewer This PR needs someone to pick it up for review label Nov 26, 2021
@@ -2676,6 +2676,36 @@ component_test_valgrind () {
fi
}

support_test_cmake_out_of_source () {
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems not to be called anywhere?

Copy link
Contributor

Choose a reason for hiding this comment

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

The code in all.sh automatically calls support_$name if it exists when deciding whether to call component_$name.

@@ -0,0 +1,4 @@
Bugfix
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure a changelog entry is warranted for a CI fix

@gilles-peskine-arm
Copy link
Contributor

The point of this patch was to fix CI on #5155 so it's been included into that PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug component-test Test framework and CI scripts needs-ci Needs to pass CI tests needs-review Every commit must be reviewed by at least two team members, size-s Estimated task size: small (~2d)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants