2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-30 21:53:34 +08:00
artiq/DEVELOPER_NOTES.rst

21 lines
1.0 KiB
ReStructuredText
Raw Normal View History

2017-10-30 18:03:28 +08:00
Sharing development boards
==========================
To avoid conflicts for development boards on the server, while using a board you must hold the corresponding lock file present in the ``/tmp`` folder of the machine to which the board is connected. Holding the lock file grants you exclusive access to the board.
2017-10-30 18:03:28 +08:00
For example, to lock the KC705 until ENTER is pressed:
2017-10-30 18:03:28 +08:00
::
ssh rpi-1.m-labs.hk "flock /tmp/board_lock-kc705-1 -c 'echo locked; read; echo unlocked'"
2017-10-31 22:53:39 +08:00
2017-10-30 18:37:12 +08:00
If the board is already locked by another user, the ``flock`` commands above will wait for the lock to be released.
2017-10-30 18:03:28 +08:00
To determine which user is locking a board, use a command such as:
2018-01-19 15:59:23 +08:00
::
ssh rpi-1.m-labs.hk "fuser -v /tmp/board_lock-kc705-1"
2018-01-19 15:59:23 +08:00
2017-10-30 18:03:28 +08:00
Deleting git branches
=====================
Never use ``git push origin :branch`` nor ``git push origin --delete branch``, as this can delete code that others have pushed without warning. Instead, always delete branches using the GitHub web interface that lets you check better if the branch you are deleting has been fully merged.