Skip to content
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

Open
wants to merge 3 commits into
base: devel-3.x.x
Choose a base branch
from
Open

Conversation

amackworth
Copy link
Collaborator

No description provided.

@@ -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;
Copy link
Collaborator

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");
Copy link
Collaborator

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.

Copy link
Contributor

@celskeggs celskeggs left a 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);
Copy link
Contributor

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.

Copy link
Collaborator Author

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.

Copy link
Contributor

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.

@celskeggs
Copy link
Contributor

The setup for travis-ci was slightly broken. I think it's fixed now - you'll need to push a new commit.

@amackworth
Copy link
Collaborator Author

Should I push an empty commit, or is it possible to directly restart the tests?

@celskeggs
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants