GithubHelp home page GithubHelp logo

shadow-robot / sr-build-tools Goto Github PK

View Code? Open in Web Editor NEW
31.0 31.0 10.0 45.29 MB

Contains build tools and rosinstall files for Shadow Robot's Software.

License: GNU General Public License v2.0

Shell 44.45% Python 43.31% Dockerfile 7.86% C 2.80% C++ 1.58%

sr-build-tools's Introduction

shadow-robot

sr-build-tools's People

Contributors

andriypt avatar azompas avatar beatrizleon avatar benstarmersmith avatar biofotis avatar carebare47 avatar devops-shadowrobot avatar dg-shadow avatar ethanfowler avatar georgiablanco avatar giusebar avatar jamesandrews3 avatar jlaforga avatar markpitchless avatar maxzieba avatar mikramarc avatar shadow-release avatar toivos avatar toliver avatar ugocupcic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sr-build-tools's Issues

trello sync - Cleanup, logging

Clean the sync script ready to be deployed to cron or jenkins.

  • Sort the logging to be less noisey, so happy under cron.
  • Command line arg for where to find the config file.
  • Some basic docs on the sync procedure.
  • Code review.

gitghub-trello-sync - Re-opened tickets

Currently if an issue is closed and the re-opened we will create a new card in trello leaving the old archived card that was linked orphaned. This happens because we only query for open/not-archived issues and cards.
Not a big issue but a bit messy!

Probably don't want to be querying for all tickets on every run, only open issues keeps the working set (and http requests) to a sensible size. One way to fix this would be store the trello card id on the github issue (e.g. stashed in the description), could then use that to query for the archived card direct.

Clean up sync mess (sr_utils)

When a new repo gets added but not added to the trello team on github, the sync keeps adding cards over and over to backlog. sr_utils 1 and 2 have done this. No multi select in trello so need a quick clean up script.

Sync User can not see other github users

The user used for the sync can only see it's self on giithub. The call:

for m in github_org.get_members():

Returns only the sync user. When run as myself (admin user) I see all the org members.

Sync github user can't update issues

The user setup for sync doesn't seem able to update issues, despite having perms to read and write those repo. Error logged:

[2014-02-07 12:20:44,946] ERROR - Card 52f3931266d34a1021421646: 404 {u'documentation_url': u'http://developer.github.com/v3', u'message': u'Not Found'}
[2014-02-07 12:20:45,367] ERROR - Card 52f39c72e185c99b440e9998: 404 {u'documentation_url': u'http://developer.github.com/v3', u'message': u'Not Found'}

Trying to update the labels (issue.edit(...)) triggers this. Works ok when using my login (an admin user).

Developer machines

Machines with ansible setup to install the source code into the users workspace.

Network setup for shared folders so people can work easily against the machine. E.g. share home. Should work for mac and win host machines ie use samba.

Lock file for trello sync

Needs a lock (pid) file so it only one sync can run at a time. Makes it safe to kick from command line with cron active.

Work out best way to run ethercat from a Virtual Box machine

To run virtual machines against the hand or a ronex we need to be able to access it over ethercat. Pretty sure the normal virtual network adapters wont support this (needs a test). It may be possible using a PCI pass through of the network card. If so what is supported hardware needed to make this work.

Add ros_packages to ros_install role.

Add a variable to install additional ROS packages along with the main ros install. e.g.

ros_release: 'hydro'
ros_packages:
  - 'shadow-robot-ethercat'
  - 'shadow-robot'

Would install ros-hydro-shadow-robot and ros-hydro-shadow-robot-ethercat along with the main ros packages.

Will be in ansible/roles/ros_install/tasks/main.yml

Setup private ansible repo

Private repo for internal machine setups. Runs on minaton. We still develop all common roles etc in sr-build-tools, the private anasible will be configured to use a checkout of sr-build-tools and just contains the sensitive details like internal network setups.

Share workspace

Makes it possible to mount it from host for easy development on the vm.

Sync Bug label

If issue is marked with Bug then so should the Trello card.

Make shared_folder more generic

Currently hardcoded to ros_worksapce but should be made to just take a list of folders from config. Like:

shared_folders:
  - ~ros/workspace

Move background and font setting to ros_user role.

Currently the background image and monospace font get set in site playbook for hand-demo-64 (ansible/vagrant_site.yml). Move these options to ros_user role. e.g.

ros_user_background: 'files/images/ShadowRobot-smaller.jpg_1280x1280.jpg'
ros_user_monospace_font: 'Ubunti Mono 11'

Delete the autologin lines from lightdm.conf if autologin is false

basically the opposite of these:

- name: Set autologin user to {{ros_user}}
  when: ros_user_autologin
  lineinfile: dest=/etc/lightdm/lightdm.conf line="autologin-user={{ros_user}}"

- name: Set autologin to true
  when: ros_user_autologin
  lineinfile: dest=/etc/lightdm/lightdm.conf line="autologin-user-timeout=0"

ar_pose install repeatability

In glass bot the install of ar_pose will fail on 2nd run due to rosws set failing for existing entry.

rosws: error: Element {'git': {'local-name': 'ar_tools', 'uri': 'https://github.com/LucidOne/ar_tools.git'}} already exists, did you mean --detached ?

Needs a work around.

Find better way to handle cloning private repos

In glassbot we are using a ssh auth sock pass through trick to access the private repos. When we have internal ansible we should be able to handle this a bit better. e.g. store credentials in a vault and use direct instead of needing loaded keys.

See comments on #48

Done List

Instead of archive move cards to Done list. Then we can see where we are at the end of the week. At start of sprint we check the list and then archive it.

Will also make #8 less of a problem, as a close re-open will work while the closed ticket is on the Done list. Sync should move it back to Current.

Sticky bit for shared workspaces

We create ros workspaces with group ros but need to also set the sticky bit so it works right with multiple users in group ros.

Make RoNeX Machine

  • Make a new machine
  • Add ronex packages
  • Add ronex user
  • Ronex background image
  • Network setup for ethercat and how that works in a vm

Convert hand machine to ansible

Converting the existing shell script built test machine to ansible. Can then form the basis of the other machines we need to create.

trello sync - deploy

Deploy script to cron job on minaton or jenkins job.

  • Setup user on github for automation.
  • Set up user on trello to use for automation.
  • Generate long lasting trello api key and token with this user and add to config.
  • Deploy code.
  • Add wiki pages to internal wiki with details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.