Skip to content

CI: Validate compilation without buildtags#3164

Merged
thaJeztah merged 1 commit intoopencontainers:masterfrom
kinvolk:rata/make-no-buildtags
Aug 17, 2021
Merged

CI: Validate compilation without buildtags#3164
thaJeztah merged 1 commit intoopencontainers:masterfrom
kinvolk:rata/make-no-buildtags

Conversation

@rata
Copy link
Copy Markdown
Member

@rata rata commented Aug 16, 2021

Today we support the seccomp build tag only that is used by default.
However, we are not testing that compiling without any build tag works.

I found the CI didn't catch this when working on #2682, that the CI was
green but compilation without build tags was broken.

We test compilation without build tags only, compilation with the only
build tag supported is done extensively in other actions.

Signed-off-by: Rodrigo Campos rodrigo@kinvolk.io

Today we support the seccomp build tag only that is used by default.
However, we are not testing that compiling without any build tag works.

I found the CI didn't catch this when working on opencontainers#2682, that the CI was
green but compilation without build tags was broken.

We test compilation without build tags only, compilation with the only
build tag supported is done extensively in other actions.

Signed-off-by: Rodrigo Campos <rodrigo@kinvolk.io>
@rata
Copy link
Copy Markdown
Member Author

rata commented Aug 16, 2021

Please note that the action added is included in the checks for this PR, so you can easily see how it would look like

Copy link
Copy Markdown
Contributor

@kolyshkin kolyshkin left a comment

Choose a reason for hiding this comment

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

Theoretically, we can add BUILDTAGS as another matrix dimension in test.yml. Practically, there will be too much jobs, so this small addition is better.

LGTM

@thaJeztah
Copy link
Copy Markdown
Member

Theoretically, we can add BUILDTAGS as another matrix dimension in test.yml

Yes, I was thinking if we needed other configurations, but we can always look at that if needed.

@thaJeztah
Copy link
Copy Markdown
Member

We should also consider changing to noseccomp (as the default is / should be "enabled")

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah merged commit e53e97a into opencontainers:master Aug 17, 2021
@rata rata deleted the rata/make-no-buildtags branch August 19, 2021 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants