Sounds like vgt actuator. Previous generations of Duramax used engine oil pressure to control the vgt. On these engines the sweep or self test could only happen with the engine running. The l5p uses an electric actuator to control vgt. I'm not sure why it sweeps every time you open the door or hood but the reason for the sweep or self check is to keep the vgt freed up and working.
Sent from my SM-G930P using Tapatalk