Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

[Backport release-1.33] Determine inttest configs from smoke test name#7012

Merged
twz123 merged 4 commits intok0sproject:release-1.33from
twz123:backport-6174-to-release-1.33
Jan 22, 2026
Merged

[Backport release-1.33] Determine inttest configs from smoke test name#7012
twz123 merged 4 commits intok0sproject:release-1.33from
twz123:backport-6174-to-release-1.33

Conversation

@twz123
Copy link
Member

@twz123 twz123 commented Jan 22, 2026

Instead of manually exporting the required environment variables in the
Go test invocation, export the Make variables directly. This makes the
command line easier to read. As an exception to this rule, introduce the
new variable K0S_INTTEST_TARGET via the command line to make it clear
which target is being executed. This will allow for the removal of some
extra environment variables from the Makefile in the future because
the tests can simply use the value of that variable to determine their
configuration.

Deduce K0S_PATH from the current directory if it is not set. This
eliminates the need to define K0S_PATH in every case and relies on the
fact that the inttests are always executed with the working directory
set to their source directory.

Move the K0S_UPDATE_TO_VERSION definition to the ap-ha3x3 inttest, which
is the only one that needs it.

Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit fb3e54e)
If not specified explicitly, the inttest package to be executed will
be determined by the longest prefix of the target name for which a
directory exists.

Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit 6e780b7)
This allows for removing a lot of config switches from the Makefile.

Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit 2af8dd0)
Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit 49bc26a)
@twz123 twz123 added chore area/smoke-tests backport/release-1.32 PR that needs to be backported/cherrypicked to release-1.32 branch labels Jan 22, 2026
@twz123 twz123 marked this pull request as ready for review January 22, 2026 13:24
@twz123 twz123 requested review from a team as code owners January 22, 2026 13:24
@twz123 twz123 requested review from jnummelin and kke January 22, 2026 13:24
@twz123 twz123 merged commit 54835f1 into k0sproject:release-1.33 Jan 22, 2026
180 of 181 checks passed
@twz123 twz123 deleted the backport-6174-to-release-1.33 branch January 22, 2026 18:48
@k0s-bot
Copy link
Contributor

k0s-bot commented Jan 22, 2026

Successfully created backport PR for release-1.32:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/smoke-tests backport/release-1.32 PR that needs to be backported/cherrypicked to release-1.32 branch chore

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants