Home | History | Annotate | Download | only in site_utils

Lines Matching full:board

9 board and pool, and determines whether each DUT is working or
13 usage: lab_inventory.py [ options ] [ board ... ]
20 --board-notify <address>[,<address>]
21 Send the "board status" e-mail to all the specified e-mail
29 When generating the "board status" e-mail, included a list of
41 <board> arguments:
243 """Maintains a set of `HostJobHistory` objects for a board.
246 board. The collection maintains a count of working DUTs, a
296 """Return a list of all working DUTs for the board.
298 Go through all HostJobHistory objects in the board's pools,
323 """Return a list of all broken DUTs for the board.
325 Go through all HostJobHistory objects in the board's pools,
349 """Return a list of all idle DUTs for the board.
351 Go through all HostJobHistory objects in the board's pools,
408 The collection is indexed by board. Indexing returns the
409 _BoardCounts object associated with the board.
456 for board in boardlist:
457 board_label = constants.Labels.BOARD_PREFIX + board
473 # board: label. In some (insufficiently) rare cases, the
475 # with a pool: but no board: label. We explicitly exclude
480 initval = { board: _BoardCounts() for board in boards }
491 Operationally, saying a board
492 board will be included in the "board" and "repair
494 the board's inventory then lab techs will be asked to fix
497 For purposes of implementation, a board is "managed" if it
508 for board, counts in self.items():
515 self._managed_boards[pool].add(board)
518 self._managed_boards[pool].add(board)
572 `buffer_counts` is a dictionary mapping board names to the
573 size of the board's spares buffer.
580 * Worst case buffer count for any board (higher is better).
595 # that records the buffer count for each board after repair.
596 # The new list of counts discards the board names, as they don't
635 board with the smallest spares buffer will be recommended. If
636 the worst spares buffer number is shared by more than one board,
647 for board in inventory.get_managed_boards():
648 logging.debug('Listing failed DUTs for %s', board)
649 counts = inventory[board]
651 board_buffer_counts[board] = counts.get_spares_buffer()
686 line_fmt % ( 'Hostname', 'Board', 'Servo?', 'Logs URL')]
699 """Generate the "board inventory" e-mail message.
701 The board inventory is a list by board summarizing the number
717 logging.debug('Creating board inventory')
724 for board in inventory.get_managed_boards():
725 counts = inventory[board]
726 logging.debug('Counting %2d DUTS for board %s',
727 counts.get_total(), board)
730 # Board Avail Bad Idle Good Spare Total
732 element = (board,
762 'Full board inventory:\n',
764 'Board', 'Avail', 'Bad', 'Idle', 'Good',
784 The pool inventory is a list by pool and board summarizing the
801 '%sStatus for pool:%s, by board:' % (newline, pool))
804 'Board', 'Bad', 'Idle', 'Good', 'Total'))
806 for board, counts in inventory.items():
808 counts.get_total(pool), board, pool)
816 data_list.append((board, broken, idle, working, total))
838 The idle inventory is a host list with corresponding pool and board,
852 message.append('%-30s %-20s %s' % ('Hostname', 'Board', 'Pool'))
855 for board, counts in inventory.items():
857 counts.get_total(pool), board, pool)
858 data_list.extend([(dut.host.hostname, board, pool)
924 Join comma separated e-mail addresses for `--board-notify` and
947 '--board-notify or --pool-notify\n')
992 parser.add_argument('--board-notify', action='append',
994 help='Generate board inventory message, '
1010 metavar='BOARD',
1062 """Gather board counts while providing interactive feedback.
1090 # of a board's HostJobHistory objects to query the database
1114 logging.debug('Will include board inventory')
1137 'DUT board inventory %s' % timestamp,