This is caused by MC-154092 and MC-148600
Expected behavior:
The alarm pigman should alert the pigman who does not have line of sight to the player that the player is there.
Actual behavior:
The alerted pigman ignores the anger because he cannot see the player.
See: https://i.imgur.com/oXgcqNp.png