[REV]Revert code for constraint and revert yml test case.