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