I've only seen sizes of carry ons verified against that frame thing by the gate once. A lot of them failed.
Fortunately it was the gate next to mine because mine probably would have failed too.
I have seen gate agents visually screen the more obvious violations more often. Act like your stuff is small and easy to carry and you will usually be fine.