submarine crews are perpetually diverted from combat training for garrison duty , for housekeeping work and for other incidental duties , and this occurs both during construction and testing of a submarine and during patrol duty .