The present invention relates to compounds of formula I useful as inhibitors of protein kinase. The invention also provides pharmaceutically acceptable compositions comprising said compounds and methods of using the compositions in the treatment of various diseases, conditions, or disorders. The invention also provides processes for preparing compounds of the inventions.