[V3 Audio] Harden Lavalink boot sequence #1498

Merged
tekulvw merged 7 commits from V3/audio/harden into V3/develop 2018-04-16 00:01:57 +02:00
tekulvw commented 2018-04-05 04:01:11 +02:00 (Migrated from github.com)

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

This PR does a lot...

  • Ensures that java 1.8+ is installed
    • If 1.8, ensures a compatibility flag is passed to the lavalink launch command. This should fix some lingering issues with lavalink boot looping e.g. #1462.
  • Downloads the lavalink jar from our releases page (sorry)
    • This has to happen so we can keep the lavalink version static to ensure compatibility.
  • Completely redoes version handling so we only have to modify it in one place redbot/core/__init__.py
### Type - [ ] Bugfix - [x] Enhancement - [ ] New feature ### Description of the changes This PR does a lot... * Ensures that java 1.8+ is installed * If 1.8, ensures a compatibility flag is passed to the lavalink launch command. This should fix some lingering issues with lavalink boot looping e.g. #1462. * Downloads the lavalink jar from our releases page (sorry) * This has to happen so we can keep the lavalink version static to ensure compatibility. * Completely redoes version handling so we only have to modify it in one place `redbot/core/__init__.py`
Twentysix26 (Migrated from github.com) reviewed 2018-04-05 04:01:11 +02:00
mikeshardmind (Migrated from github.com) reviewed 2018-04-05 04:50:50 +02:00
mikeshardmind (Migrated from github.com) left a comment

Seems to have an issue with version info comparison

Seems to have an issue with version info comparison
@ -1,11 +1,37 @@
import pkg_resources
from .config import Config
mikeshardmind (Migrated from github.com) commented 2018-04-05 04:49:59 +02:00

This should compare as

return (self.major, self.minor, self.micro, my_index, self.serial) < (other.major, other.minor, other.micro, other_index, other.serial)

The way you have it here with nested or would have 3.0.1 be < 3.1.0

This should compare as ```py return (self.major, self.minor, self.micro, my_index, self.serial) < (other.major, other.minor, other.micro, other_index, other.serial) ``` The way you have it here with nested or would have 3.0.1 be < 3.1.0
tekulvw (Migrated from github.com) reviewed 2018-04-06 01:05:21 +02:00
@ -1,11 +1,37 @@
import pkg_resources
from .config import Config
tekulvw (Migrated from github.com) commented 2018-04-06 01:05:21 +02:00

3.0.1 is less than 3.1.0?

3.0.1 is less than 3.1.0?
mikeshardmind (Migrated from github.com) reviewed 2018-04-06 01:14:23 +02:00
@ -1,11 +1,37 @@
import pkg_resources
from .config import Config
mikeshardmind (Migrated from github.com) commented 2018-04-06 01:14:23 +02:00

my mistake, I meant that both of these version comparisons evaluate true by the above:

3.0.1 < 3.1.0
3.1.0 < 3.0.1

my mistake, I meant that both of these version comparisons evaluate true by the above: 3.0.1 < 3.1.0 3.1.0 < 3.0.1
palmtree5 (Migrated from github.com) approved these changes 2018-04-16 00:00:02 +02:00
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!1498
No description provided.