lock the board #8

Closed
opened 2019-04-20 11:06:15 +08:00 by sb10q · 6 comments
Owner

There can be multiple instances of extended-tests running, and they can conflict for the board.
With the previous buildbot (which didn't use rpi) we used flock to solve board access exclusivity problems.

There can be multiple instances of ``extended-tests`` running, and they can conflict for the board. With the previous buildbot (which didn't use rpi) we used ``flock`` to solve board access exclusivity problems.
Contributor

The lockfile will probably have to reside in a directory within nix.sandboxPaths. Any preferred location, or in /opt?

The lockfile will probably have to reside in a directory within `nix.sandboxPaths`. Any preferred location, or in `/opt`?
Author
Owner

Or it could reside on the Raspberry Pi. That's more complicated, but then we have one central place that manages the board.
Human users (and not just Hydra) want to access the boards too, and there should be a good mechanism to prevent conflicts.

Or it could reside on the Raspberry Pi. That's more complicated, but then we have one central place that manages the board. Human users (and not just Hydra) want to access the boards too, and there should be a good mechanism to prevent conflicts.
Author
Owner

There is also some information in ARTIQ DEVELOPER_NOTES.rst that needs attention.

There is also some information in ARTIQ DEVELOPER_NOTES.rst that needs attention.
Contributor

There is also some information in ARTIQ DEVELOPER_NOTES.rst that needs attention.

Regarding the lockfile path? Does that /var/lib/artiq/boards path exist on the RPi?

> There is also some information in ARTIQ DEVELOPER_NOTES.rst that needs attention. Regarding the lockfile path? Does that `/var/lib/artiq/boards` path exist on the RPi?
Author
Owner
https://github.com/m-labs/artiq/commit/f330e285fb584c00ead3b47c9ee93b8b728f746a
sb10q closed this issue 2019-11-18 15:27:19 +08:00
Author
Owner

I just meant it needed to be consistent. I don't insist on the /var/lib/artiq/boards path.

I just meant it needed to be consistent. I don't insist on the ``/var/lib/artiq/boards`` path.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
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: M-Labs/nix-scripts#8
No description provided.