Transportable pressure vessels for high-pressure gases are routinely inspected and tested as part of the manufacturing process. They are generally marked as evidence of passing the tests, either individually or as part of a batch (some tests are destructive), and certified as meeting the standard of manufacture by the authorised testing agency, making them legal for import and sale. When a cylinder is manufactured, its specification, including manufacturer, working pressure, test pressure, date of manufacture, capacity and weight are stamped on the cylinder.
Most countries require diving cylinders to be checked on a regular basis. This usually consists of an internal visual inspection and a hydrostatic test. The inspection and testing requirements for scuba cylinders may be very different from the requirements for other compressed gas containers due to the more corrosive environment in which they are used. After a cylinder passes the test, the test date, (or the test expiry date in some countries such as Germany), is punched into the shoulder of the cylinder for easy verification at fill time.[note 1] The international standard for the stamp format is ISO 13769, Gas cylinders - Stamp marking.
A hydrostatic test involves pressurising the cylinder to its test pressure (usually 5/3 or 3/2 of the working pressure) and measuring its volume before and after the test. A permanent increase in volume above the tolerated level means the cylinder fails the test and must be permanently removed from service.: sect. 5.7.3
An inspection may include external and internal inspection for damage, corrosion, and correct colour and markings. The failure criteria vary according to the published standards of the relevant authority, but may include inspection for bulges, overheating, dents, gouges, electrical arc scars, pitting, line corrosion, general corrosion, cracks, thread damage, defacing of permanent markings, and colour coding.: sect. 5.7.3 
Gas filling operators may be required to check the cylinder markings and perform an external visual inspection before filling the cylinder and may refuse to fill non-standard or out-of-test cylinders.[note 2]
Standard seamless high pressure aluminium cylinders do not have a limited life. They may be used until they fail test or inspection. Three cylinders from each batch are pulsation hydrostatically tested for 10,000 cycles from 0 to test pressure at 12 cycles per minute. An alternative test approved by the US Department of Transportation is 100,000 cycles from 0 to working pressure. For the batch to pass, there must be no leaks or failures. Bursting pressure when new is about 2.5 times working pressure.
A cylinder is due to be inspected and tested at the first time it is to be filled after the expiry of the interval as specified by the United Nations Recommendations on the Transport of Dangerous Goods, Model Regulations, or as specified by national or international standards applicable in the region of use.
If a cylinder passes the listed procedures, but the condition remains doubtful, further tests can be applied to ensure that the cylinder is fit for use. Cylinders that fail the tests or inspection and cannot be fixed should be rendered unserviceable after notifying the owner of the reason for failure.
Before internal inspection the valve must be removed after depressurising and verifying that the valve is open. Cylinders containing breathing gases do not need special precautions for discharge except that high oxygen fraction gases should not be released in an enclosed space because of the fire hazard. If the valve is blocked or stuck closed it may be necessary to release the pressure by removing the burst disc or drilling into the valve body below the valve seat. These operations require care to avoid injury.
Before inspection the cylinder must be clean and free of loose coatings, corrosion products and other materials which may obscure the surface. Foreign materials may be removed by brushing, controlled shot-blasting, water-jet cleaning chemical cleaning or other non-destructive methods. The method used must not remove a significant amount of cylinder material, and steel cylinders may not be heated above 300°C. Aluminium cylinders are even more restricted in the temperatures permitted, which are specified by the manufacturer.
The cylinder is inspected for dents, cracks, gouges, cuts, bulges, laminations and excessive wear, heat damage, torch or electric arc burns, and corrosion damage. The cylinder is also checked for illegible, incorrect or unauthorised permanent stamp markings, and unauthorised additions or modifications. If the cylinder exceeds the rejection criteria for these items it is unsuitable for further service and will be made permanently unserviceable.
Typical rejection criteria include:
(details to be added)
Unless the cylinder walls are examined by ultrasonic methods, the interior must be visually inspected using sufficient illumination to identify any damage and defects, particularly corrosion. If the inner surface is not clearly visible it should be cleaned by approved method which does not remove a significant amount of wall material. Methods allowed include shot-blasting, water jet cleaning, flailing, steam or hot water jet, rumbling and chemical cleaning . The cylinder must be internally inspected after cleaning.
Typical rejection criteria include:
(details to be added)
When there is uncertainty whether a defect found during visual inspection meets the rejection criteria, additional tests may be applied, such as ultrasonic measurement of pitting wall thickness, or weight checks to establish total weight lost to corrosion. Hardness tests on aluminium cylinders are done on the cylindrical body and must avoid making deep impressions.
While the valve is off, the threads of cylinder and valve must be checked to identify the thread type and condition. The threads of cylinder and valve must be of matching thread specification, clean and full form, undamaged and free of cracks, burrs and other imperfections. Tap marks[note 3] are acceptable and should not be confused with cracks. Other neck surfaces will also be examined to be sure they are free from cracks. In some cases threads may be re-tapped, but if the threads are altered they must be checked with the appropriate thread gauges.
The aluminium alloys used for diving cylinders are 6061 and 6351. 6351 alloy is subject to sustained load cracking and cylinders manufactured of this alloy should be periodically eddy current tested according to national legislation and manufacturer's recommendations. 6351 alloy has been superseded for new manufacture, but many old cylinders are still in service, and are still legal and considered safe if they pass the periodic hydrostatic, visual and eddy current tests required by regulation and as specified by the manufacturer. The number of cylinders that have failed catastrophically is in the order of 50 out of some 50 million manufactured. A larger number have failed the eddy current test and visual inspection of neck threads, or have leaked and been removed from service without harm to anyone.
Ultrasonic inspection may be substituted for the pressure test, which is usually a hydrostatic test and may be either a proof test or a volumetric expansion test, depending on the cylinder design specification. Test pressure is specified in the stamp markings of the cylinder. The results of a correctly performed pressure test are final.
The recommended practice for valve inspection and maintenance includes inspection, and where applicable correction of threads, cleaning of components, replacement of excessively worn and damaged parts, packing and safety devices, lubrication as applicable with approved lubricants for the gas service, checks for correct operation and sealing at intended operating pressure. Checks may be done with the valve fitted to the cylinder after inspection and testing, or before the valve is fitted.
Gauging of threads may be mandatory to ensure the integrity of parallel threads. If the gauge exceeds the maximum gauge limit for taper threads, re-tapping may be considered at the discretion of the competent person.
The interior of the cylinder must be thoroughly dried immediately after cleaning or hydrostatic testing, and the interior inspected to ensure that there is no trace of free water or other contaminants.
Before fitting the valve the thread type must be checked to ensure that a valve with matching thread specification is fitted. Fitting of valves should follow the procedures specified in ISO 13341 Transportable gas cylinders - Fitting of valves to gas cylinders.
After the tests have been satisfactorily completed, a cylinder passing the test will be marked accordingly. Stamp marking will include the registered mark of the inspection facility and the date of testing (month and year).
Identification of the cylinder:
Records of the tests and inspections:
If a cylinder fails inspection or testing and cannot be recovered, the owner must be notified before making the empty cylinder unserviceable by crushing, burning a hole in the shoulder, irregular cutting of the neck or cylinder or bursting using a safe method. If the owner does not give permission they become legally responsible for any consequences.
Technical Committee ISO/TC 58, Gas Cylinders, Subcommittee SC4 (2005). "Gas cylinders - Seamless steel gas cylinders - Periodic inspection and testing" (PDF). ISO 6406:2005(E). Geneva: Onternational Standards Organisation. Retrieved 4 August 2016.CS1 maint: uses authors parameter (link)
Technical Committee ISO/TC 58, Gas cylinders, Subcommittee SC4 (2005). "Gas cylinders - Seamless aluminium-alloy gas cylinders - Periodic inspection and testing". ISO 10461:2005(E). Geneva: International Standards Organisation. Retrieved 5 August 2016.CS1 maint: uses authors parameter (link)