Merge "Pick input profile that partially matches with all flags." into main