MINOR: Add version check on enable-systest-events flag#1298
Conversation
| cmd += " --formatter kafka.tools.LoggingMessageFormatter" | ||
|
|
||
| # enable systest events is only available in 0.10.0 and later | ||
| if node.version >= V_0_10_0_0: |
There was a problem hiding this comment.
I don't think it's an issue for this patch, but I'm realizing that we may not have clearly defined when we bump version numbers pre-release. Here, we're clearly saying that we've already marked V_0_10_0_0, but that's actually a bit weird given that we're still on a dev version, right? Or does this not pass until we actually remove the dev0 suffix?
There was a problem hiding this comment.
V_0_10_0_0 is defined independently of any kafkatest version bump. kafkatest version is the version of the kafkatest module, whereas an instance of KafkaVersion refers to a version of Kafka.
It's true that KafkaVersion inspects the init file to figure out what TRUNK should mean, but it strips any dev* suffix, so if we're in 0.10.0 branch, TRUNK actually equals V_0_10_0_0
|
@granders Good catch. Question about when exactly we do version bumping (and maybe about how exactly the comparison operator works?).
|
…n is large enough
|
@ewencp Thanks for review! here are a few answers: version bumping... I don't think it really matters in this case given how comparison works? (see my previous version-related comments)
Running sanity checks here: Full build here: |
|
@ewencp Sanity checks now pass |
|
@granders thanks for fixing this. |
|
Full build had one failure, but its an existing transient issue. LGTM, thanks @granders! |
Recent patch adding enable-systest-events flag without any version check breaks all uses of versioned console consumer. E.g. upgrade tests, compatibility tests etc. Added a check to only apply the flag if running 0.10.0 or greater. Author: Geoff Anderson <geoff@confluent.io> Reviewers: Ewen Cheslack-Postava <ewen@confluent.io> Closes #1298 from granders/minor-systest-fix-versioned-console-consumer (cherry picked from commit 5c47b9f) Signed-off-by: Ewen Cheslack-Postava <me@ewencp.org>
Recent patch adding enable-systest-events flag without any version check breaks all uses of versioned console consumer. E.g. upgrade tests, compatibility tests etc. Added a check to only apply the flag if running 0.10.0 or greater. Author: Geoff Anderson <geoff@confluent.io> Reviewers: Ewen Cheslack-Postava <ewen@confluent.io> Closes apache#1298 from granders/minor-systest-fix-versioned-console-consumer
Recent patch adding enable-systest-events flag without any version check breaks all uses of versioned console consumer. E.g. upgrade tests, compatibility tests etc.
Added a check to only apply the flag if running 0.10.0 or greater.