-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed static IP deploy to roboRIO. #184
base: devel-3.x.x
Are you sure you want to change the base?
Conversation
@@ -217,7 +217,8 @@ public void downloadAndStart(Artifact result) throws IOException { | |||
private static final String DEFAULT_PASSWORD = ""; | |||
private static final String DEFAULT_ADMIN_USERNAME = "admin"; | |||
private static final String DEFAULT_ADMIN_PASSWORD = ""; | |||
|
|||
private static final int FALLBACK_HOST = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this 19
} | ||
if (rio == null) { | ||
rio = byNameOrIP("10." + (team_number / 100) + "." + (team_number % 100) + ".2"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The IP string is used multiple times; use a separate variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please confirm that 172.22.11.19 works, or change it back to 172.22.11.2. See comment.
DepRoboRIO rio = byNameOrIP("roboRIO-" + team_number + "-FRC.local"); | ||
if (rio == null) { | ||
rio = byNameOrIP("172.22.11.2"); | ||
rio = byNameOrIP("172.22.11." + FALLBACK_HOST); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is correct, unless something's changed. This is a static address specified separately from the ethernet configuration that we do manually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Robot code was failing to deploy entirely for Amber since she didn't have support for the mDNS address, and this was the exact change we needed to fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line about changing the 172.22.11.*
? okay.
The setup for travis-ci was slightly broken. I think it's fixed now - you'll need to push a new commit. |
Should I push an empty commit, or is it possible to directly restart the tests? |
It would have been possible if it had made it to travis first, but since it hasn't, you'll need to push a new commit. You can either modify the last one, add a stub commit, or squash the three commits together. |
No description provided.