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

Compilers image tests #45

Merged
merged 6 commits into from
Jun 23, 2020

Conversation

errordeveloper
Copy link
Contributor

@errordeveloper errordeveloper commented Jun 22, 2020

Another follow-up from #43 (ref #5).

@errordeveloper errordeveloper marked this pull request as ready for review June 23, 2020 08:45
Fix a false-positive condition

Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
This will enable including tests inside the image, so that any
downstream images can actually re-run the test.

Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
# Copyright 2017-2020 Authors of Cilium
# SPDX-License-Identifier: Apache-2.0

set -o xtrace
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to leave this here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's being used in all of these scripts right now, these scripts themselves are temporary until #10.

# Copyright 2017-2020 Authors of Cilium
# SPDX-License-Identifier: Apache-2.0

set -o xtrace
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to leave this here?

@@ -105,7 +105,9 @@ run_buildx() {
build_args+=("${root_dir}")
fi
if [ "${do_test}" = "true" ] ; then
docker buildx build --target=test "${build_args[@]}"
if ! docker buildx build --target=test "${build_args[@]}" ; then
Copy link
Member

Choose a reason for hiding this comment

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

Not a change request, but I wonder, does isn't running with errexit set enough to exit on docker buildx failure?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I also thought that, I was suspecting that it could be due to this function being called inside an if-clause (if ! run_buildx ; then). I'd rather not worry about it too much right now, another reason for #10 to happen sooner!

@errordeveloper errordeveloper merged commit d47f6ac into cilium:master Jun 23, 2020
@errordeveloper errordeveloper deleted the compilers-image-tests branch June 23, 2020 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants