Skip to content

Conversation

@rjernst
Copy link
Member

@rjernst rjernst commented Mar 27, 2015

The current version is normally a snapshot while in development.
However, when the release process changes the snapshot flag to false,
this causes the static bwc tests to fail because they cannot
find an index for the current version. Instead, this change
skips the current version, because there is no need to test
a verion's bwc against itself.

closes #10292

@rjernst rjernst added >test Issues or PRs that are addressing/adding tests v2.0.0-beta1 v1.6.0 v1.5.1 labels Mar 27, 2015
Copy link
Contributor

Choose a reason for hiding this comment

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

can we have a comment as to why we do this?

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we should now have a method

public boolean skipVersion(Version) {
  return a // foo
            || b // bar
            || c; // baz
}

seems simpler?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think a function is overkill, having the logic in the loop is nice and direct. I added comments.

@bleskes
Copy link
Contributor

bleskes commented Mar 27, 2015

LGTM. Left one minor comment.

@s1monw s1monw self-assigned this Apr 2, 2015
The current version is normally a snapshot while in development.
However, when the release process changes the snapshot flag to false,
this causes the static bwc tests to fail because they cannot
find an index for the current version.  Instead, this change
skips the current version, because there is no need to test
a verion's bwc against itself.

closes elastic#10292
closes elastic#10293
@rjernst rjernst force-pushed the fix/static-bwc-skip-current branch from cb94f80 to 96fa466 Compare April 4, 2015 02:26
@rjernst rjernst merged commit 96fa466 into elastic:master Apr 4, 2015
rjernst added a commit that referenced this pull request Apr 4, 2015
The current version is normally a snapshot while in development.
However, when the release process changes the snapshot flag to false,
this causes the static bwc tests to fail because they cannot
find an index for the current version.  Instead, this change
skips the current version, because there is no need to test
a verion's bwc against itself.

closes #10292
closes #10293

Conflicts:
	src/test/java/org/elasticsearch/bwcompat/OldIndexBackwardsCompatibilityTests.java
rjernst added a commit that referenced this pull request Apr 4, 2015
The current version is normally a snapshot while in development.
However, when the release process changes the snapshot flag to false,
this causes the static bwc tests to fail because they cannot
find an index for the current version.  Instead, this change
skips the current version, because there is no need to test
a verion's bwc against itself.

closes #10292
closes #10293

Conflicts:
	src/test/java/org/elasticsearch/bwcompat/OldIndexBackwardsCompatibilityTests.java
@rjernst rjernst deleted the fix/static-bwc-skip-current branch April 4, 2015 04:57
mute pushed a commit to mute/elasticsearch that referenced this pull request Jul 29, 2015
The current version is normally a snapshot while in development.
However, when the release process changes the snapshot flag to false,
this causes the static bwc tests to fail because they cannot
find an index for the current version.  Instead, this change
skips the current version, because there is no need to test
a verion's bwc against itself.

closes elastic#10292
closes elastic#10293

Conflicts:
	src/test/java/org/elasticsearch/bwcompat/OldIndexBackwardsCompatibilityTests.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>test Issues or PRs that are addressing/adding tests v1.5.1 v1.6.0 v2.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests fail when building ES

3 participants