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

Replace integration_tests build tag with INTEGRATION_TESTS env #24925

Merged
merged 5 commits into from Apr 19, 2023

Conversation

ti-mo
Copy link
Contributor

@ti-mo ti-mo commented Apr 17, 2023

Similar to #20769, remove the integration_tests build tag and gate integration tests using the INTEGRATION_TESTS env instead.

This makes sure all code can be built with a single go build or go test, without being aware of the existence of the build tag. Editor tooling will resume to function without additional configuration, and linters will see the code once again.

Omitted enabling integration tests in some examples if it wasn't relevant to what the example was trying to showcase.

Replace integration_tests build tag with INTEGRATION_TESTS env

cc @oblazek

@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Apr 17, 2023
@ti-mo ti-mo added the release-note/ci This PR makes changes to the CI. label Apr 17, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Apr 17, 2023
@ti-mo
Copy link
Contributor Author

ti-mo commented Apr 17, 2023

/test

@ti-mo ti-mo force-pushed the tb/integration-tests-build-tag branch from 702224b to 2309922 Compare April 18, 2023 08:46
@ti-mo ti-mo changed the title Remove integration_tests build tag in favor of INTEGRATION_TESTS env Replace integration_tests build tag with INTEGRATION_TESTS env Apr 18, 2023
@ti-mo
Copy link
Contributor Author

ti-mo commented Apr 18, 2023

/test

Following the pattern of privileged tests, support using the INTEGRATION_TESTS
environment variable for enabling integration tests instead of build tags.

Signed-off-by: Timo Beckers <timo@isovalent.com>
Similar to cilium#20769, remove the integration_tests build tag and
gate integration tests using the INTEGRATION_TESTS env instead.

This makes sure all code can be built with a single `go build` or `go test`,
without being aware of the existence of the build tag. Editor tooling will
resume to function without additional configuration, and linters will see
the code once again.

Signed-off-by: Timo Beckers <timo@isovalent.com>
Omitted enabling integration tests in some examples if it wasn't relevant
to what the example was trying to showcase.

Signed-off-by: Timo Beckers <timo@isovalent.com>
Linters would previously not see these errors unless they were run with the
integration_tests build tag. Now the tag has been removed, these files have
become visible again.

Signed-off-by: Timo Beckers <timo@isovalent.com>
… tag

Signed-off-by: Timo Beckers <timo@isovalent.com>
@ti-mo ti-mo force-pushed the tb/integration-tests-build-tag branch from 2309922 to 73fae19 Compare April 18, 2023 11:24
@ti-mo
Copy link
Contributor Author

ti-mo commented Apr 18, 2023

/test

@ti-mo ti-mo marked this pull request as ready for review April 18, 2023 11:24
@ti-mo ti-mo requested review from a team as code owners April 18, 2023 11:24
@ti-mo ti-mo added area/CI Continuous Integration testing issue or flake ci/hyperjump labels Apr 18, 2023
Copy link
Contributor

@zacharysarah zacharysarah left a comment

Choose a reason for hiding this comment

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

LGTM from a docs perspective.

@ti-mo ti-mo merged commit 72a32c7 into cilium:main Apr 19, 2023
57 checks passed
@ti-mo ti-mo deleted the tb/integration-tests-build-tag branch April 19, 2023 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake ci/hyperjump release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants