Skip to content

Conversation

@tlrx
Copy link
Member

@tlrx tlrx commented Nov 7, 2016

This commit ensure that that VirtualBox is available in version 5.1+ in the system before running packaging tests. It also check for Vagrant version is now greater than 1.8.6.

This commit ensure that VirtualBox is available in version 5.1+ in the system before running packaging tests. It also check for Vagrant version is now greater than 1.8.6.
@tlrx tlrx added >test Issues or PRs that are addressing/adding tests review :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts v6.0.0-alpha1 labels Nov 7, 2016
Copy link
Member

@jasontedor jasontedor left a comment

Choose a reason for hiding this comment

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

I left a comment.

standardOutput = new ByteArrayOutputStream()
doLast {
String version = standardOutput.toString().trim()
if ((version ==~ /5\.[1-9]\..+/) == false) {
Copy link
Member

Choose a reason for hiding this comment

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

I think we should do something slightly different here. This will break if a new major release (major version 6) is made, and will also break if there is a minor release in the major release 5 series with minor version 10 or greater (e.g., 5.10). I think that we should parse the version into major/minor components and require that major >= 5 and if major == 5 then minor > 0.

Copy link
Member Author

Choose a reason for hiding this comment

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

Right - there was versions like 5.0.26 in the past.

@tlrx
Copy link
Member Author

tlrx commented Nov 9, 2016

@jasontedor Thanks for the review. I updated the code.

Copy link
Member

@jasontedor jasontedor left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @tlrx.

@tlrx tlrx merged commit 4b94eb5 into elastic:master Nov 10, 2016
@tlrx
Copy link
Member Author

tlrx commented Nov 10, 2016

Thanks @jasontedor & @nik9000 !

@tlrx tlrx removed the review label Nov 10, 2016
@tlrx tlrx deleted the add-virtualbox-version-check branch November 10, 2016 08:11
tlrx added a commit that referenced this pull request Nov 10, 2016
This commit ensure that VirtualBox is available in version 5.1+ in the system before running packaging tests. It also check for Vagrant version is now greater than 1.8.6.

(cherry picked from commit 4b94eb5)
@tlrx
Copy link
Member Author

tlrx commented Nov 10, 2016

5.x: 76a775c

@tlrx tlrx added the v5.1.1 label Nov 10, 2016
jasontedor added a commit that referenced this pull request Nov 11, 2016
* master: (516 commits)
  Avoid angering Log4j in TransportNodesActionTests
  Add trace logging when aquiring and releasing operation locks for replication requests
  Fix handler name on message not fully read
  Remove accidental import.
  Improve log message in TransportNodesAction
  Clean up of Script.
  Update Joda Time to version 2.9.5 (#21468)
  Remove unused ClusterService dependency from SearchPhaseController (#21421)
  Remove max_local_storage_nodes from elasticsearch.yml (#21467)
  Wait for all reindex subtasks before rethrottling
  Correcting a typo-Maan to Man-in README.textile (#21466)
  Fix InternalSearchHit#hasSource to return the proper boolean value (#21441)
  Replace all index date-math examples with the URI encoded form
  Fix typos (#21456)
  Adapt ES_JVM_OPTIONS packaging test to ubuntu-1204
  Add null check in InternalSearchHit#sourceRef to prevent NPE (#21431)
  Add VirtualBox version check (#21370)
  Export ES_JVM_OPTIONS for SysV init
  Skip reindex rethrottle tests with workers
  Make forbidden APIs be quieter about classpath warnings (#21443)
  ...
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts Team:Delivery Meta label for Delivery team >test Issues or PRs that are addressing/adding tests v5.1.1 v6.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants